Article View: comp.text.tex
Article #10218Stephen Bellantoni? annotation.sty? Tom Hofmann?
From: Joseph Gil
Date: Wed, 12 Jun 1991 15:45
Date: Wed, 12 Jun 1991 15:45
76 lines
3492 bytes
3492 bytes
Hi,
I am using a fine LaTeX style file which I think can be
exteremly useful for anyone writing Journal and Conference
versions of the same paper. This file is enclosed below.
As a programmer, I believe the services provided by this
macro package are so elementary they should have been
supplied with TeX. However, Don thinks otherwise.
There are some problems: a) \begin{Someting} ... \end{Something}
when it is exluded would not work in the \title command of LaTeX.
instead error messages are produced.
b) changing the page dimension inside an environment has no
effect.
I tried reading the source, but even after a lot of wading through
the TeX book, it still looks like ancient sansscript (...) to me.
The file has only the name but not the address of the author.
Can you help in locating, or in solving the problem?
Yossi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Version control macros. These let you define environments whose contents
% will be optionally added to or deleted from the text when you run LaTeX.
% Usage: place either of the following near the start of your file:
% \includeversion{NAME}
% \excludeversion{NAME}
% Here, "NAME" is any name you choose. The first one indicates that text
% between \begin{NAME} and \end{NAME} will be processed in the normal way.
% The second indicates that text between \begin{NAME} and \end{NAME} will
% be totally deleted.
% You can define environments for as many versions as you want.
% A ``comment'' environment has already been pre-defined for you with
% \excludeversion{comment}; you can override this using \includeversion.
%
% Example:
% \includeversion{abridged}\excludeversion{unabridged}
% Text for the
% \begin{abridged}
% short
% \end{abridged}
% \begin{unabridged}
% long and really longwinded, opaque and boring
% \end{unabridged}
% version of the paper. Punctuation works correctly\begin{unabridged}
% because sphack is used\end{unabridged}.
% \begin{comment} This is deleted by default. \end{comment}
%
% Stephen Bellantoni 1990, loosely based on "annotation.sty" by Tom Hofmann.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begingroup
\catcode`@=11\relax%
\catcode`{=12\relax\catcode`}=12\relax%
\catcode`(=1\relax \catcode`)=2\relax%
\gdef\includeversion#1(%
\expandafter\gdef\csname #1\endcsname%
()%
\expandafter\gdef\csname end#1\endcsname%
()%
)%
\gdef\excludeversion#1(%
\expandafter\gdef\csname #1\endcsname%
(\@bsphack\catcode`{=12\relax\catcode`}=12\relax\csname #1@NOTE\endcsname)%
\long\expandafter\gdef\csname #1@NOTE\endcsname ##1\end{#1}%
(\csname #1END@NOTE\endcsname)%
\expandafter\gdef\csname #1END@NOTE\endcsname%
(\@esphack\end(#1))%
)%
\endgroup
\excludeversion{comment}
Technical Details
Message-ID:
<1991Jun12.154547.27433@cs.ubc.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!mips!atha!aunro!alberta!ubc-cs!yogiReferences:
<1991Jun11.173250.7337@applga.aa.cad.slb.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!mips!atha!aunro!alberta!ubc-cs!yogi From: yogi@cs.ubc.ca (Joseph Gil) Newsgroups: comp.text.tex Subject: Stephen Bellantoni? annotation.sty? Tom Hofmann? Summary: any one knows them? Message-ID: <1991Jun12.154547.27433@cs.ubc.ca> Date: 12 Jun 91 15:45:47 GMT Article-I.D.: cs.1991Jun12.154547.27433 References: <1991Jun11.173250.7337@applga.aa.cad.slb.com> Sender: usenet@cs.ubc.ca (Usenet News) Distribution: all Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 76