From: John Kohl Date: Thu, 20 Sep 1990 13:54:10 +0000 (+0000) Subject: added marginpar stuff (slightly broken) X-Git-Tag: krb5-1.0-alpha2~276 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f868f5286750a5dee46bfd6dc7902ab1e82dee24;p=krb5.git added marginpar stuff (slightly broken) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1135 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/doc/api/functions.sty b/doc/api/functions.sty index dcccfb542..3d04f34a7 100644 --- a/doc/api/functions.sty +++ b/doc/api/functions.sty @@ -9,17 +9,21 @@ \fi \let\funcfont=\bf \newcount\argc@ount +\reversemarginpar +\setlength{\marginparsep}{3pt} +%\setlength{\marginparwidth}{1in} % % funcdecl is used as \begin{funcdecl}{funcname}{return type}{firstline} % % see fixunder.sty for comments on why the \underrealtrue & \underrealfalse % stuff is here. \newenvironment{funcdecl}[3]{\underrealtrue\index{#1}\underrealfalse% +\gdef\funcn@me{#1} \argc@ount=0\begin{tabbing} #2 \\ {\bf #1}(\= \+ #3% }{) -\end{tabbing} +\end{tabbing}\marginpar{{\sloppy \funcn@me}} } \newcommand{\docomm@}{\ifnum\argc@ount >0, \\\fi} \newcommand{\funcvoid}{\argc@ount=0} diff --git a/doc/implement/functions.sty b/doc/implement/functions.sty index dcccfb542..3d04f34a7 100644 --- a/doc/implement/functions.sty +++ b/doc/implement/functions.sty @@ -9,17 +9,21 @@ \fi \let\funcfont=\bf \newcount\argc@ount +\reversemarginpar +\setlength{\marginparsep}{3pt} +%\setlength{\marginparwidth}{1in} % % funcdecl is used as \begin{funcdecl}{funcname}{return type}{firstline} % % see fixunder.sty for comments on why the \underrealtrue & \underrealfalse % stuff is here. \newenvironment{funcdecl}[3]{\underrealtrue\index{#1}\underrealfalse% +\gdef\funcn@me{#1} \argc@ount=0\begin{tabbing} #2 \\ {\bf #1}(\= \+ #3% }{) -\end{tabbing} +\end{tabbing}\marginpar{{\sloppy \funcn@me}} } \newcommand{\docomm@}{\ifnum\argc@ount >0, \\\fi} \newcommand{\funcvoid}{\argc@ount=0}