home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
useful
/
dist
/
text
/
tex
/
pastex
/
macros
/
latex
/
verbatim
/
verbatim.doc
< prev
next >
Wrap
Text File
|
1992-01-20
|
58KB
|
1,493 lines
\def\fileversion{v1.4i}
\def\filedate{92/01/20}
\def\docdate{91/12/18}
%% \CheckSum{446}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
%
%\iffalse % this is a METACOMMENT !
%
%
%% Style-option `verbatim' to use with LaTeX v2.09
%% Copyright (C) 1989, 1990, 1991 by Rainer Sch\"opf, all rights reserved.
%
% Copying of this file is authorized only if either
% (1) you make absolutely no changes to your copy, including name, or
% (2) if you do make changes, you name it something other than
% verbatim.doc.
% This restriction helps ensure that all styles developed here
% remain identical.
%
%
% Error reports please to: R. Sch\"opf
% Konrad-Zuse-Zentrum
% f\"ur Informationstechnik Berlin
% Heilbronner Str.\ 10
% D-1000 Berlin 31
% Federal Republic of Germany
% Email: <SCHOEPF@SC.ZIB-Berlin.DE>
%
%
%\fi
%
% \changes{v1.4g}{91/11/21}{Several improvements in the documentation.}
% \changes{v1.4f}{91/08/05}{Corrected bug in documentation.
% Found by Bernd Raichle.}
% \changes{v1.4e}{91/07/24}{Avoid reading this file twice.}
% \changes{v1.4d}{91/04/24}{`penalty`interlinepenalty added to
% definition of `par in `@verbatim.
% Necessary to avoid page breaks in
% the scope of a `samepage declaration.}
% \changes{v1.4c}{90/10/18}{Added `leavevmode to definition of
% backquote macro.}
% \changes{v1.4b}{90/07/14}{Converted nearly all `verb's to \|...\|.}
% \changes{v1.4a}{90/04/04}{Added a number of percent characters
% to suppress blank space at the end of some code lines.}
% \changes{v1.4}{90/03/07}{`verb rewritten.}
%
% \changes{v1.3a}{90/02/04}{Removed {\tt verbatimwrite} environment
% from the code. Now only shown as an example.}
%
% \changes{v1.2g}{90/02/01}{Revised documentation.}
% \changes{v1.2e}{90/01/15}{Added `every@verbatim hook.}
% \changes{v1.2d}{89/11/29}{Use token register `@temptokena instead
% of macro `@tempb.}
% \changes{v1.2d}{89/11/29}{Use token register `verbatim@line instead
% of macro `@tempd.}
% \changes{v1.2b}{89/10/25}{`verbatimfile renamed to `verbatiminput.
% Suggested by Reinhard Wonneberger.}
%
% \changes{v1.1}{89/10/09}{Made the code more modular (as suggested by
% Chris Rowley): introduced
% `verbatim@addtoline, etc. Added
% `verbatimwrite environment.}
%
% \changes{v1.0e}{89/07/17}{Fixed bug in `verbatimfile (*-form
% handling, discovered by Dirk Kreimer).}
% \changes{v1.0d}{89/05/16}{Revised documentation, fixed silly bug
% in `verbatim@@@.}
% \changes{v1.0c}{89/05/12}{Added redefinition of `@sverb, change
% in end-of-line handling.}
% \changes{v1.0b}{89/05/09}{Change in `verbatim@rescan.}
% \changes{v1.0a}{89/05/07}{Change in `verbatim@@testend.}
%
%
% \DoNotIndex{\ ,\!,\C,\[,\\,\],\^,\`,\{,\},\~}
% \DoNotIndex{\@M,\@empty,\@flushglue,\@gobble,\@ifstar,\@ifundefined}
% \DoNotIndex{\@namedef,\@spaces,\@tempa,\@tempb,\@tempc,\@tempd}
% \DoNotIndex{\@temptokena,\@totalleftmargin,\@warning,\active}
% \DoNotIndex{\aftergroup,\begingroup,\catcode,\char,\csname,\def,\do}
% \DoNotIndex{\docdate,\dospecials,\edef,\else,\endcsname,\endgroup}
% \DoNotIndex{\endtrivlist,\expandafter,\fi,\filedate,\fileversion}
% \DoNotIndex{\frenchspacing,\futurelet,\gdef,\if,\ifcat}
% \DoNotIndex{\ifx,\immediate,\item,\kern,\lccode,\leftskip,\let}
% \DoNotIndex{\lowercase,\next,\noexpand,\parfillskip,\parindent}
% \DoNotIndex{\parskip,\penalty,\relax,\rightskip,\space,\string,\the}
% \DoNotIndex{\toks@,\trivlist,\tt,\typeout,\vskip,\write,\z@}
%
%
% \title{A New Implementation of \LaTeX{}'s \\ {\tt verbatim}
% and {\tt verbatim*} Environments\thanks{%
% This file has version number \fileversion{} dated \filedate.
% The documentation was last revised on \docdate.
% }}
%
% \author{Rainer Sch\"opf$\,$\thanks{ Many thanks to Chris Rowley
% from The Open University, UK, for looking this over,
% making a lot of useful suggestions, and discovering bugs.
% And many thanks to all the beta testers who tried this
% style file out.}\\
% Konrad-Zuse-Zentrum\\
% f\"ur Informationstechnik Berlin\\
% Heilbronner Str.\ 10\\
% W-1000 Berlin 31\\
% Federal Republic of Germany\\
% Internet: {\tt SCHOEPF@SC.ZIB-Berlin.DE}}
%
%
% \date{August 5, 1991}
%
% \markboth{Verbatim style option, version \fileversion, as of \filedate}
% {Verbatim style option, version \fileversion, as of \filedate}
%
% \maketitle
%
% \begin{abstract}
% This style option reimplements the \LaTeX{} {\tt verbatim} and
% {\tt verbatim*} environments.
% In addition it provides a {\tt comment} environment
% that skips any commands or text between
% |\begin{comment}|
% and the next |\end{comment}|.
% It also contains a redefinition of \LaTeX's |\verb| command
% to better detect the omission of the closing delimiter.
% \end{abstract}
%
% \section{Usage notes}
%
% \let\docDescribeMacro\DescribeMacro
% \let\docDescribeEnv\DescribeEnv
% \def\DescribeMacro#1{}
% \def\DescribeEnv#1{}
% \LaTeX's {\tt verbatim} and {\tt verbatim*} environments
% have a few features that may give rise to problems. These are:
% \begin{itemize}
% \item
% Since \TeX{} has to read all the text between the
% |\begin{verbatim}| and the |\end{verbatim}| before it can output
% anything, long verbatim listings may overflow \TeX's memory.
% \item
% Due to the method used to detect the closing |\end{verbatim}|
% (i.e.\ macro parameter delimiting) you cannot leave spaces
% between the |\end| token and |{verbatim}|.
% \end{itemize}
% Whereas the last of these points can be considered
% only a minor nuisance the other one is a real limitation.
%
%
% \DescribeEnv{verbatim}
% \DescribeEnv{verbatim*}
% This style file contains a reimplementation of the {\tt verbatim}
% and {\tt verbatim*} environments which overcomes these restrictions.
% There is, however, one incompatibility between the old and the
% new implementations of these environments: the old version
% would treat text on the same line as the |\end{verbatim}|
% command as if it were on a line by itself.
% {\bf This new version will simply ignore it.}\footnote{This is
% the price one has to pay for the removal of the old
% {\tt verbatim} environment's size limitations.}
% It will, however, issue a warning message of the form
% \begin{verbatim}
%LaTeX warning: Characters dropped
% after \end{verbatim*}!
%\end{verbatim}
% This is not a real problem since this text can easily be put
% on the next line without affecting the output.
%
% This new implementation also solves the second problem mentioned
% above: it is possible to leave spaces (but {\em not\/} end of line)
% between the |\end| and the |{verbatim}| or |{verbatim*}|:
% \begin{verbatim}
%\begin {verbatim*}
% test
% test
%\end {verbatim*}
%\end{verbatim}
%
% \DescribeEnv{comment}
% Additionally we introduce a {\tt comment} environment, with the
% effect that the text between