General ⇒ Conditional Statements in Latex
-
stantestco
- Posts: 8
- Joined: Tue Jul 21, 2009 12:13 pm
Conditional Statements in Latex
if
\ifdef DRAFT \else
%%% do some PSTricks stuff in here
\fi
and then I'm able to set DRAFT=1 in some other file, ie a style file.
Thanks!!!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Conditional Statements in Latex
Code: Select all
\ifthenelse{ }
{
}
{
}Conditional Statements in Latex
Code: Select all
\usepackage{etoolbox}
\newtoggle{DRAFT}
...
\iftoggle{DRAFT}{yes}{no}