Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!atha!aunro!alberta!ubc-cs!yogi From: yogi@cs.ubc.ca (Joseph Gil) Newsgroups: comp.text.tex Subject: version.sty: use comment in \title{}? Message-ID: <1991Jun8.041136.1244@cs.ubc.ca> Date: 8 Jun 91 04:11:36 GMT Sender: usenet@cs.ubc.ca (Usenet News) Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 90 Hi TeXnetters, I am having trouble in using \begin{comment} some comment \end{comment} inside the \title{} and \author{} commands of LaTeX. I tried looking in your code, and I am afraid my limited knowledge of TeX is not sufficient for understanding it. Any help will be greatly appreciated Thanks Yossi %Path: ubc-cs!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!munnari.oz.au!brolga!psych!grunt!strasser %From: strasser@psych.psy.uq.oz.au (Michael Strasser) %Newsgroups: comp.text.tex %Subject: Re: Invisible TeX Code? %Message-ID: %Date: 12 May 91 11:45:59 GMT %References: <1991May2.220425.4786@ready.eng.ready.com> %Sender: news@grunt.psy.uq.oz.au (Grunt's News) %Organization: Psychology Dept, University of Queensland, AUSTRALIA %Lines: 69 %walden@ready.eng.ready.com (Eugene Walden) writes: %> Is there a way to issue a command in TeX that will prevent TeX from %>producing output to the .dvi file? Here is my reason for asking-- I am %I can recommend `version.sty', which I collected from some ftp site %somewhere. I've just checked sun.soe.clarkson.edu and ymir.claremont.edu, %---- %Mike Strasser %Psychology Dept. %University of Queensland. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 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} %-- %Mike Strasser %Psychology Dept %The University of Queensland