[texhax] Ignoring some texts

Uwe Lueck uwe.lueck at web.de
Sat Jul 18 12:00:56 CEST 2009

wono at math.itb.ac.id schrieb am 18.07.2009 07:38:43:
> I have the tex file.
> ... text before
> \begin{solution}
> some texts
> \end{solution}
> text following ...
> How can I change the definition of "solution" environment such that the
> text inside environment doesn't display in the dvi file.
> But in other parts I will use it

I guess you want to have a list of exercises and their solutions, and you want to have a printout *without* solutions and one *with* the solutions. 

My versions.sty has been used for this. In the document preamble, you mark environments to be included or to be excluded. 

The UK TeX FAQ discusses many other packages for related tasks: 


Hope it helps 

-- Uwe. 

More information about the texhax mailing list