[OS X TeX] `hide' environment

Peter Lichtner lichtner at lanl.gov
Mon Jul 25 23:19:39 CEST 2005


There is:

\begin{comment}
...
\end{comment}

Entry name:
     comment
Caption:
     Selectively include/excludes portions of text.
Author:
     Eijkhout, Victor
Abstract:
     Selectively include/exclude pieces of text, allowing the user to  
define new, separately controlled, comment versions. All text between  
\comment ... \endcomment or \begin{comment} ... \end{comment} is  
discarded. The opening and closing commands should appear on a line  
of their own. No starting spaces, nothing after it. This environment  
should work with arbitrary amounts of comment, and the comment can be  
arbitrary text.

Other 'comment' environments are defined and selected/deselected with  
\includecomment{versiona} and \excludecoment{versionb} These  
environments are used as \versiona ... \endversiona or \begin 
{versiona} ... \end{versiona} with the opening and closing commands  
again on a line of their own.


...Peter

On Jul 25, 2005, at 3:10 PM, Morten Høgholm wrote:

> On Mon, 25 Jul 2005 23:04:07 +0200, David Oliver  
> <daoliver at SWVA.net> wrote:
>
>
>> It's sometimes convenient to comment out whole paragraphs or  
>> sections of a document in the way % comments out the remainder of  
>> a line. Does anyone know if there exists anything like a "hide"  
>> environment such that
>> \begin{hide}
>> ...material...
>> \end{hide}
>> comments out ...material...?
>>
>
> <http://www.tex.ac.uk/cgi-bin/texfaq2html?label=conditional>
> -- 
> Morten
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>
>

<><><><><><><><><><><><><><><><><><><><><>
Peter C. Lichtner (lichtner at lanl.gov)
LANL EES-6: MS D469
(505) 667-3420 (o)
(505) 665-3285 (fax)
Los Alamos National Laboratory
SM-30 Bikini Atoll Road
Los Alamos, NM 87545
<><><><><><><><><><><><><><><><><><><><><>


--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list