If you want to use condition to control your texts, better to use \ifthenelse.
Usage in pre-docu:
\usepackage{ifthen}
\newboolean{yourBoolVar}
\setboolean{yourBoolVar}{boolval} % boolvar=true or false
Usage in main body:
\ifthenelse {\boolean{yourBoolVar}}
{if true, go this code} {if false, go this}
Saturday, June 23, 2007
Latex: how to use conditional compilation
Labels:
condition,
ifthen,
ifthenelse,
latex,
newboolean,
package,
setboolean
Subscribe to:
Post Comments (Atom)
3 comments:
Thanks for that.
yup thanks for that
Now I can compile for a paper
or book
Thank you for this post. It's simple and helpful. :-)
Post a Comment