home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
useful
/
text
/
tex
/
pastex
/
macros
/
misc
/
doc.sty
< prev
next >
Wrap
Text File
|
1994-05-20
|
29KB
|
742 lines
%%
%% This is file `doc.sty', generated
%% on <1994/5/20> with the docstrip utility (2.0r).
%%
%% The original source files were:
%%
%% doc.doc (with options: `style,multicol')
%%
%% Copyright (C) 1989-1992 by Frank Mittelbach. All rights reserved.
%%
%% This file is part of the doc package.
%%
%% IMPORTANT NOTICE:
%%
%% You are not allowed to change this file. You may however copy
%% this file to a file with a different name and then change the
%% copy if you obey the restrictions on file changes described in
%% readme.mz.
%%
%% You are NOT ALLOWED to distribute this file alone. You are NOT
%% ALLOWED to take money for the distribution or use of this file
%% (or a changed version) except for a nominal charge for copying
%% etc.
%%
%% You are allowed to distribute this file under the condition that
%% it is distributed together with all files mentioned in
%% readme.mz0.
%%
%% If you receive only some of these files from someone, complain!
%%
%% However, if these files are distributed by established suppliers
%% as part of a complete TeX distribution, and the structure of the
%% distribution would make it difficult to distribute the whole set
%% of files, *those parties* are allowed to distribute only some of
%% the files provided that it is made clear that the user will get
%% a complete distribution-set upon request to that supplier (not
%% me). Notice that this permission is not granted to the end
%% user.
%%
%%
%% For error reports in case of UNCHANGED versions see readme.mz
%%
%%
\def\fileversion{v1.7k}
\def\filedate{92/08/24}
\def\docdate {92/08/28}
%% \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 \~}
%%
%% Copyright (C) 1989-1992 Frank Mittelbach, all rights reserved.
%%% \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 \~}
%%%
\@ifundefined{macro@cnt}{}{\endinput} \typeout{Style-Option: `doc'
\fileversion \@spaces\space\space <\filedate> (FMi)} \typeout{English
Documentation \@spaces\@spaces\space <\docdate> (DLo, FMi, RMCS)}
\catcode`\^^A=14
\def\macrocode{\macro@code
\frenchspacing \@vobeyspaces
\xmacro@code}
\def\macro@code{%
\topsep \MacrocodeTopsep
\@beginparpenalty \predisplaypenalty
\trivlist \parskip \z@ \item[]%
\macro@font
\leftskip\@totalleftmargin \advance\leftskip\MacroIndent
\rightskip\z@ \parindent\z@ \parfillskip\@flushglue
\blank@linefalse \def\par{\ifblank@line
\leavevmode\fi
\blank@linetrue\@@par
\penalty\interlinepenalty}
\obeylines \let\do\@makeother \catcode`\`\active \@noligs \dospecials
\global\@newlistfalse
\global\@minipagefalse
\ifcodeline@index
\everypar{\global\advance\c@CodelineNo\@ne
\llap{\theCodelineNo\ \hskip\@totalleftmargin}%
\check@module}%
\else \everypar{\check@module}%
\fi
\init@crossref}
\newif\ifblank@line
\def\endmacrocode{%
\ifpm@module \endgroup \pm@modulefalse \fi
\everypar{}%
\global\@inlabelfalse
\endtrivlist
\close@crossref}
\@ifundefined{MacroFont}{%
\ifx\undefined\selectfont
\def\MacroFont{\small\tt}\else
\def\MacroFont{\math@fontsfalse\reset@font\small\tt}\fi
}{}
\@ifundefined{AltMacroFont}{%
\ifx\undefined\selectfont
\def\AltMacroFont{\small\tt}\else
\def\AltMacroFont{\math@fontsfalse\small\reset@font\it\tt}\fi
}{}
\let\macro@font=\MacroFont
\def\check@module{%
\ifcheck@modules
\ifpm@module \endgroup \pm@modulefalse \fi
\expandafter\futurelet\expandafter\next\expandafter\ch@percent
\fi}
\newif\ifpm@module
\def\DontCheckModules{\check@modulesfalse}
\def\CheckModules{\check@modulestrue}
\newif\ifcheck@modules \check@modulestrue
\def\ch@percent{%
\if \percentchar\next
\expandafter\check@angle
\fi}
\def\check@angle#1{\futurelet\next\ch@angle}
\def\ch@angle{\if<\next
\expandafter\ch@plus@etc
\else \percentchar \fi}
\def\ch@plus@etc<{\futurelet\next\check@plus@etc}
\def\check@plus@etc{%
\if +\next
\let\next\pm@module
\else\if -\next
\let\next\pm@module
\else\if *\next
\let\next\star@module
\else\if /\next
\let\next\slash@module
\else
\let\next\pm@module
\fi\fi\fi\fi
\next}
\def\pm@module#1>{\pm@moduletrue
\Module{#1}\begingroup
\advance\guard@level\@ne
\ifnum\guard@level>\c@StandardModuleDepth\AltMacroFont\fi
}
\def\star@module#1>{%
\Module{#1}%
\global \advance \guard@level\@ne
\ifnum \guard@level>\c@StandardModuleDepth
\global\let\macro@font=\AltMacroFont \macro@font
\fi}
\def\slash@module#1>{%
\Module{#1}%
\global \advance \guard@level\m@ne
\ifnum \guard@level=\c@StandardModuleDepth
\global\let\macro@font\MacroFont \macro@font
\fi
}
\newcounter{StandardModuleDepth}
\newcount \guard@level
\@ifundefined{Module}{%
\ifx\undefined\selectfont
\def\Module#1{{\mod@math@codes$\fam\sffam\langle #1\rangle$}}
\else
\expandafter\ifx\csname ds@oldlfont\endcsname\relax
\def\Module#1{{\mod@math@codes$\langle\sfmath{#1}\rangle$}}
\else
\def\Module#1{{\mod@math@codes$\langle{\sfmath #1}\rangle$}}
\fi
\fi}{}
\def\mod@math@codes{\mathcode`\|="226A \mathcode`\&="2026}
\ifx\selectfont\undefined
\else
\ifx\sfmath\undefined
\newmathalphabet*{\sfmath}{\sfdefault}{m}{n}\fi
\fi
\newskip\MacrocodeTopsep \MacrocodeTopsep = 3pt plus 1.2pt minus 1pt
\newdimen\MacroIndent
\settowidth\MacroIndent{\rm\scriptsize 00\ }
\@namedef{macrocode*}{\macro@code\sxmacro@code}
\expandafter\let\csname endmacrocode*\endcsname = \endmacrocode
\catcode`\!=\catcode`\% ^^A In this section there must not be
^^A any exclamation marks.
^^A
\begingroup
\catcode`\|=\z@ \catcode`\[=\@ne \catcode`\]=\tw@
\catcode`\{=12 \catcode`\}=12
\catcode`\%=12 \catcode`\ =\active \catcode`\\=\active
!% \end{macrocode*}
! Next follows the actual definition of \verb+\macro@code+;
! notice the
! use of the new escape character. We manage to get the argument
! surrounded by the string \verb+\end{macrocode}+, but at the end
! however, in spite of the actual characters used during the
! definition of
! this macro, \verb+\end+ with the argument \verb+{macrocode}+
! will be executed, to ensure a balanced environment.
! \begin{macrocode*}
|gdef|xmacro@code#1% \end{macrocode}[#1|end[macrocode]]
!% \end{macrocode*}
! \begin{macro}{\sxmac