[OS X TeX] conditional text

Alain Schremmer Schremmer.Alain at gmail.com
Fri Feb 2 18:53:18 EST 2007


I would like to have multi-paragraphs optional text in a file, namely 
text that I can comment/uncomment with a \boolean{Optional} at the top 
of the file.

I thought of creating a newenvironment like

    \newenvironment{OptionalText}%
    {\ifthenelse{\boolean{Optional}}{}{\renewcommand{\par}{\%}}
    {\ifthenelse{\boolean{Optional}}{}{\par}}

but I have not been able to carry this out.

Is it at all doable since this is essentially amounts to what folding is 
about?

Hopeful regards
--schremmer



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list