<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: LaTeX programming: how to implement conditionals</title>
	<atom:link href="http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/feed/" rel="self" type="application/rss+xml" />
	<link>http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/</link>
	<description>Because FLOSS is handy, isn&#039;t it?</description>
	<lastBuildDate>Mon, 21 May 2012 06:39:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joost</title>
		<link>http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/comment-page-1/#comment-76290</link>
		<dc:creator>Joost</dc:creator>
		<pubDate>Tue, 30 Nov 2010 21:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=219#comment-76290</guid>
		<description>Really helpful, thank you. However I was having issues with the scopes of the variables. In a command, setting a conditions-variable will only take effect in that scope, not outside. It was quite hard to find the solution to this, however it is really easy:

---------------------------------------------------------------------------------------------------------

\newif\ifismonday\ismondaytrue
\newcommand{\whatever}{
    \global\ismondayfalse % Set \ifismonday to false, in the global scope
}
\whatever
% \ifismonday has properly been set tot false, even outside the command</description>
		<content:encoded><![CDATA[<p>Really helpful, thank you. However I was having issues with the scopes of the variables. In a command, setting a conditions-variable will only take effect in that scope, not outside. It was quite hard to find the solution to this, however it is really easy:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>\newif\ifismonday\ismondaytrue<br />
\newcommand{\whatever}{<br />
    \global\ismondayfalse % Set \ifismonday to false, in the global scope<br />
}<br />
\whatever<br />
% \ifismonday has properly been set tot false, even outside the command</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: isilanes</title>
		<link>http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/comment-page-1/#comment-33883</link>
		<dc:creator>isilanes</dc:creator>
		<pubDate>Fri, 17 Apr 2009 06:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=219#comment-33883</guid>
		<description>Thanks AprilCoolsDay!

It is comments like yours that add real value to a blog.</description>
		<content:encoded><![CDATA[<p>Thanks AprilCoolsDay!</p>
<p>It is comments like yours that add real value to a blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AprilCoolsDay</title>
		<link>http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/comment-page-1/#comment-33843</link>
		<dc:creator>AprilCoolsDay</dc:creator>
		<pubDate>Thu, 16 Apr 2009 16:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=219#comment-33843</guid>
		<description>For people who prefer latex-like coding instead of tex-like coding, ifthen package is there.

\documentclass{article}
\usepackage{ifthen}
\newboolean{sunday}
\setboolean{sunday}{true}
\begin{document}
\ifthenelse {\boolean{sunday}}
{This is sunday} {this is no sunday}
\end{document}</description>
		<content:encoded><![CDATA[<p>For people who prefer latex-like coding instead of tex-like coding, ifthen package is there.</p>
<p>\documentclass{article}<br />
\usepackage{ifthen}<br />
\newboolean{sunday}<br />
\setboolean{sunday}{true}<br />
\begin{document}<br />
\ifthenelse {\boolean{sunday}}<br />
{This is sunday} {this is no sunday}<br />
\end{document}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christopherolah</title>
		<link>http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/comment-page-1/#comment-30975</link>
		<dc:creator>christopherolah</dc:creator>
		<pubDate>Thu, 19 Feb 2009 21:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=219#comment-30975</guid>
		<description>Just left this reply at your old blog... now I&#039;m leaving it here

As you said, floating points are difficult to handle in LaTeX. Thankfully, there are packages that make it easy: fltpoint - The package provides simple floating point operations can be found a long with other packages useful for LaTeX programing in the  &lt;a href=&quot;http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html#calculating&quot; rel=&quot;nofollow&quot;&gt;CTAN calculating section&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Just left this reply at your old blog&#8230; now I&#8217;m leaving it here</p>
<p>As you said, floating points are difficult to handle in LaTeX. Thankfully, there are packages that make it easy: fltpoint &#8211; The package provides simple floating point operations can be found a long with other packages useful for LaTeX programing in the  <a href="http://www.ctan.org/tex-archive/help/Catalogue/bytopic.html#calculating" rel="nofollow">CTAN calculating section</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LaTeX programming: how to implement conditionals &#171; handyfloss</title>
		<link>http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/comment-page-1/#comment-5177</link>
		<dc:creator>LaTeX programming: how to implement conditionals &#171; handyfloss</dc:creator>
		<pubDate>Sat, 13 Sep 2008 13:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=219#comment-5177</guid>
		<description>[...] Entry available at: http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Entry available at: <a href="http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/" rel="nofollow">http://handyfloss.net/2007.08/latex-programming-how-to-implement-conditionals/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

