| 1 |
% $Id: cweb-doc.sty,v 1.3 1995/08/25 19:07:54 schrod Exp $ |
| 2 |
%---------------------------------------------------------------------- |
| 3 |
|
| 4 |
% |
| 5 |
% tags for the documentation of cweb class |
| 6 |
% |
| 7 |
|
| 8 |
|
| 9 |
\ProvidesPackage{cweb-doc} |
| 10 |
|
| 11 |
|
| 12 |
% |
| 13 |
% Used packages |
| 14 |
% |
| 15 |
|
| 16 |
\begingroup |
| 17 |
\let\begingroup=\endinput |
| 18 |
\input{cweb.cls} % get style revision |
| 19 |
\global\let\cweb@loaded=\cweb@loaded |
| 20 |
\endgroup |
| 21 |
\providecommand*\cweb@loaded{$StyleRevision$} % bootstrap |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
% |
| 26 |
% Configuration of RCS fields |
| 27 |
% |
| 28 |
|
| 29 |
% keywords in style are prefixed by `Style', in documentation by `Doc'. |
| 30 |
\let\RcsHandleStyleDate=\RcsHandleDate % transform StyleDate value |
| 31 |
\let\RcsHandleDocDate=\RcsHandleDate % transform DocDate field |
| 32 |
|
| 33 |
% the revision of cweb.cls is needed by the documentation |
| 34 |
\def\RcsEmptyValue{$\langle$unknown$\rangle$} |
| 35 |
\expandafter\RCS \cweb@loaded % creates \RCSStyleRevision |
| 36 |
\def\RcsEmptyValue{} |
| 37 |
|
| 38 |
% author name |
| 39 |
\rcsAuthor{schrod}{Joachim Schrod} |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
% |
| 44 |
% new environments |
| 45 |
% |
| 46 |
|
| 47 |
\font\manfnt=manfnt % with the dangerous bend sign |
| 48 |
\chardef\bend="7F % I like the non-S curve ;-) |
| 49 |
\newenvironment{fixme}{% |
| 50 |
\trivlist |
| 51 |
\hangindent 2em |
| 52 |
\hangafter -2 |
| 53 |
\item[\hbox to 0pt{\hss \manfnt \bend}]% |
| 54 |
\ignorespaces |
| 55 |
}{% |
| 56 |
\endtrivlist |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
\newenvironment{cseqtab}{% |
| 61 |
\quote |
| 62 |
\obeycr |
| 63 |
\tabular{lrl}% |
| 64 |
\@gobblecr % eat following newline |
| 65 |
}{% |
| 66 |
\endtabular |
| 67 |
\endquote |
| 68 |
} |
| 69 |
|
| 70 |
|
| 71 |
\newenvironment{options}{% |
| 72 |
\list{}{% |
| 73 |
\labelwidth\z@ |
| 74 |
\itemindent -.5\leftmargin |
| 75 |
\labelsep 1em |
| 76 |
\def\makelabel##1{% |
| 77 |
\hspace\labelsep |
| 78 |
\normalfont\ttfamily ##1% |
| 79 |
}% |
| 80 |
}% |
| 81 |
}{% |
| 82 |
\endlist |
| 83 |
} |
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
% |
| 88 |
% new tags |
| 89 |
% |
| 90 |
|
| 91 |
% logos |
| 92 |
\def\cweb{\texttt{CWEB}} |
| 93 |
\def\ctangle{\texttt{CTANGLE}} |
| 94 |
\def\cweave{\texttt{CWEAVE}} |
| 95 |
|
| 96 |
% other |
| 97 |
\renewcommand*\arg[1]{\textsl{Arg.~#1}:} % I don't use the arg operator |
| 98 |
|
| 99 |
\def\<#1>{\textit{#1}} % syntactic category |
| 100 |
|
| 101 |
\newcommand\cls[1]{\textsf{#1}} % LaTeX classes |
| 102 |
\newcommand\pkg[1]{\textsf{#1}} % LaTeX packages |
| 103 |
|
| 104 |
|
| 105 |
% |
| 106 |
% change of LaTeX parameters, for layout etc. |
| 107 |
% |
| 108 |
|
| 109 |
% underfull hboxes are not such a problem in program documentation |
| 110 |
|
| 111 |
\hbadness=4000 |
| 112 |
|
| 113 |
|
| 114 |
% figure |
| 115 |
|
| 116 |
\def\textfraction{0.1} % must be at least 10% text on page |
| 117 |
\def\topfraction{0.9} % rest may be top insertion |
| 118 |
\def\floatpagefraction{0.8} % float pages only if the float is larger than 80% |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
\endinput |
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 128 |
Local Variables: |
| 129 |
mode: LaTeX |
| 130 |
TeX-brace-indent-level: 4 |
| 131 |
indent-tabs-mode: t |
| 132 |
TeX-auto-untabify: nil |
| 133 |
End: |