1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
% -*-LaTeX-*-
% <BEEBE.TR2TEX>TROFFMAN.STY.6, 24-Feb-87 09:53:53, Edit by BEEBE
% These macros are intended to be referenced by a LaTeX
% \documentstyle[troffman]{article}
% command. You can insert an 11pt or 12pt option if you like larger
% type--sizes set here are computed from the LaTeX point size setting.
% Size values have been chosen to closely match Unix manual page
% documents, which are actually too wide and too high for good
% typographic taste and readability.
%% Troffman customisation
%% Added by J.P.Chancelier 21-avril-1993
\hbadness=10000 % do not want underfull box messages--there are
% usually lots in man pages
\hfuzz=\maxdimen % no overfull box messages either
\newcommand{\bs}{$\backslash$}
\def\under{\underline}
\def\dotdot{\ddot}
\def\nwl{\hfill\break} % similar to LaTex's \newline but does not
% complain if there is no line to break
\def\ind#1{\par\everypar{\hangindent=#1\hangafter=0\hskip-\parindent}}
\def\tmpind#1{\par\hskip#1}
\newenvironment{SEPcntr}{\begin{center}}{\end{center}}
\def\cntr#1{\begin{SEPcntr} #1 \end{SEPcntr}}
% displayed text, indented, justification off
\def\displaybegin{\par\begingroup\medskip\narrower\narrower\noindent
\obeylines\obeyspaces}
\def\displayend{\endgroup\smallskip\noindent}
% fill and nofill
\def\nofill{\par\begingroup\noindent\obeylines
\frenchspacing\@vobeyspaces\linepenalty1000}
{\catcode`\ =\active\gdef\@vobeyspaces{\catcode`\ \active \let \@xobeysp}}
\def\@xobeysp{\leavevmode{} }
\def\fill{\endgroup\noindent}
% define a boxing macro
\def\boxit#1{\vbox{\hrule\hbox{\vrule\kern10pt\vbox{\medskip\kern5pt#1\bigskip
\kern5pt}\kern10pt\vrule}\hrule}}
% try this TPlist environment
\newcommand{\TPlistlabel}[1]{\mbox{#1}\hfil}
\newenvironment{TPlist}[1]{
\begin{list}{}
{
\let\makelabel\TPlistlabel
\settowidth{\labelwidth}{#1mm}
\setlength{\leftmargin}{\parmargin} % all paragraphs have this much
\addtolength{\leftmargin}{\labelwidth} % space for label
}
}{
\end{list}}
%% Begin a new doc
\def\phead#1#2#3#4#5{%
\renewcommand{\@oddhead}{\underline{\hbox to \textwidth{#1 \hfill #5}}}
\renewcommand{\@oddfoot}{\mbox{\hbox to \textwidth{#4\hfill #3\hfill \rm\thepage}}}
\renewcommand{\@evenfoot}{\@oddfoot}%
\renewcommand{\@evenhead}{\@oddhead}%
}
\setcounter{secnumdepth}{3}
% multi-line left-justified subheading
\def\Sdoc#1#2{
\typeout{[\noexpand#1]} % maybe temporary, but nice for progress report
%\smallskip\noindent\fbox{\hbox to \textwidth{#1 \hfill #2}}
\subsection{{\tt #1} \hfill {\sl #2}}
\index{\noexpand#1}
}
% Headings for .SH
%\def\Shead#1{\noindent\paragraph{\small\uppercase{#1}~:}}
\def\Shead#1{\smallskip\par\noindent{\small\bf{\uppercase{#1}~:}}}
% For stuff to ignore
\def\ignore#1{}
%% Changing the default description Mode
\def\descriptionlabel#1{\hspace\labelsep\verb?#1?}
\def\description{\list{}{
\labelwidth\z@ \itemindent-\leftmargin
\itemsep=-\parsep
\let\makelabel\descriptionlabel}}
\let\undertext=\underline
\def\trait{\begin{flushleft}\mbox{\hbox to \textwidth{\hrulefill}}
\end{flushleft}}
|