# A flag to switch between simple and full mode [duplicate]

Possible Duplicate:
How to write hidden notes in a LaTeX file?
Conditional typesetting / build

Is it possible to add a flag (variable) in my .tex file, so that I can switch among two modes: a light version and a full version?

The text which is supposed to be displayed in full mode could be wrapped in an environment:

... flag ...
\begin{fullmode}
...
\end{fullmode}


So when flag is 0, the text wrapped in fullmode is hidden in the pdf file generated; while flag is 1, the text wrapped in fullmode is displayed ...

Does anyone know how to realize that?

-

## marked as duplicate by egreg, Harish Kumar, Marco Daniel, diabonas, Claudio FiandrinoSep 30 '12 at 14:42

You can use the versions package and use the commands \includeversion{fullmode} or \excludeversions{fullmode} in the preamble as your flag.