From f868f5286750a5dee46bfd6dc7902ab1e82dee24 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 20 Sep 1990 13:54:10 +0000 Subject: [PATCH] added marginpar stuff (slightly broken) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1135 dc483132-0cff-0310-8789-dd5450dbe970 --- doc/api/functions.sty | 6 +++++- doc/implement/functions.sty | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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} -- 2.26.2