My document consists (among other things) of blocks that look like this:
\begin{Solution}{6.7.8,1.2.3}
...
\end{Solution}
or
\begin{Solution}{,1.2.3}
...
\end{Solution}
I would like to define the Solution environment so that, upon setting a switch, the contents of the block is included as is (with LaTeX processing, of course), or is omitted completely if the last digit (the "3" above) is even. In addition, the inserted text, if it is inserted, should be labeled with the full string ("1.2.3") in the above example. I don't know TeX well enough to even know where to start. Anyone willing to help?
Solutionenvironment? Does it always contain just a single comma? What do the numbers represent? The more information you give, the easier it is to help. – TH. Sep 13 '10 at 10:14