🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #11676

/dev/null as LaTeX environemt: How???

#11676
From: Uwe Lammers
Date: Wed, 01 Sep 1999 00:00
36 lines
1865 bytes
Hi experts,

I can immodestly claim to be quite an experienced TeX user but have not
been able to come up with a satisfactory solution to the following problem:
I want to write a new LaTeX environment which simply ignores everything
that stands between \begin{null} ... \end{null}
[in case you are interested: this is to optionally blank out portions of a
document]. E.g.:

This is some text to appear ...
\begin{null}
Everything in this environment should not appear in the output
 ...
\end{null}

This is more text to appear ...

\begin{null}
to be ignored
\end{null}
...

The environment is not restricted to contain text only but can
indeed hold tables, figures, etc. 

In Knuth's TeXbook, p. 401 there is a trick which seems to do it:

\newenvironment{null}{\output={\setbox0=\box255\deadcycles=0}}%
{\output={}}

but it actually only works for completed pages, i.e., if the
contents of the environment fills a page partially this will appear
in any case.

Any help greatly appreciated
Uwe Lammers (ulammers@astro.estec.esa.nl)
Technical Details
Message-ID: <37CD30B9.346D1AE5@astro.estec.esa.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,6ea37bb09b2e2750,start
X-Google-Attributes: gidf9e16,public
X-Google-Thread: f5731,6ea37bb09b2e2750,start
X-Google-Attributes: gidf5731,public
X-Google-Thread: 158e15,6ea37bb09b2e2750,start
X-Google-Attributes: gid158e15,public
X-Google-Thread: 10ee61,6ea37bb09b2e2750,start
X-Google-Attributes: gid10ee61,public
From: Uwe Lammers <ulammers@astro.estec.esa.nl>
Subject: /dev/null as LaTeX environemt: How???
Date: 1999/09/01
Message-ID: <37CD30B9.346D1AE5@astro.estec.esa.nl>
X-Deja-AN: 519740015
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-2
Organization: ESA/ESTEC/SAX
Mime-Version: 1.0
Newsgroups: comp.text.tex,fj.comp.texhax,fr.comp.text.tex,de.comp.tex