Changes made during my work at INRIA, belonging to the manual release 0.2:

o  Numbering for \defintion ... removed.
  o  \CCalternateThreeColumn defaults to \CCtrue now.
  o  \precond starts a new paragraph.
  o  \CCunderscore is modified to move the underscore up to the baseline
     while using the \it style. (Works with LaTeX2e, works not with \tt style.)
  o  A couple of \nopagebreak commands forbid a pagebreak between operations
     and their comments.
  o  The bracket operator is now formatted in \rm, no longer in \it.
This commit is contained in:
Lutz Kettner 1995-10-23 10:15:33 +00:00
parent 91c2f31b02
commit 7c9316facb
1 changed files with 23 additions and 17 deletions

View File

@ -11,7 +11,7 @@
\cs\CCdate$Date$ \cs\CCdate$Date$
} }
\tracingmacros=1 %\tracingmacros=1
% +-------------------------------------------------------------------------- % +--------------------------------------------------------------------------
% | Dimensions (from the LEDA Manual): % | Dimensions (from the LEDA Manual):
@ -37,7 +37,7 @@
% redefine this macro to be \CCtrue to switch the alternative % redefine this macro to be \CCtrue to switch the alternative
% three column formatting on. % three column formatting on.
\def\CCalternateThreeColumn{\CCfalse} \def\CCalternateThreeColumn{\CCtrue}
\newdimen\CCWindent \newdimen\CCWindent
\newdimen\CCWfirst \newdimen\CCWfirst
@ -106,6 +106,7 @@
\def\R{\mbox{$\mathbb R$}} %% zusammen mit usepackage{amssymb} \def\R{\mbox{$\mathbb R$}} %% zusammen mit usepackage{amssymb}
\def\N{\mbox{$\mathbb N$}} %% zusammen mit usepackage{amssymb} \def\N{\mbox{$\mathbb N$}} %% zusammen mit usepackage{amssymb}
\def\Z{\mbox{$\mathbb Z$}} %% zusammen mit usepackage{amssymb} \def\Z{\mbox{$\mathbb Z$}} %% zusammen mit usepackage{amssymb}
\def\E{\mbox{$\mathbb E$}} %% zusammen mit usepackage{amssymb}
\newcommand{\leda}{{\sc Leda}} \newcommand{\leda}{{\sc Leda}}
\newcommand{\cgal}{{\sc Cgal}} \newcommand{\cgal}{{\sc Cgal}}
@ -125,26 +126,26 @@
\label{#1}} \label{#1}}
\def\definition {\bigskip\pagebreak[1] \def\definition {\bigskip\pagebreak[1]
{\bf 1. Definition} {\bf Definition}
\par\nopagebreak } \par\nopagebreak }
\def\creation {\bigskip\pagebreak[1] \def\creation {\bigskip\pagebreak[1]
{\bf 2. Creation} {\bf Creation}
\par\nopagebreak } \par\nopagebreak }
\def\operations {\bigskip\pagebreak[1] \def\operations {\bigskip\pagebreak[1]
{\bf 3. Operations} {\bf Operations}
\par\nopagebreak } \par\nopagebreak }
\def\implementation {\bigskip\pagebreak[1] \def\implementation {\bigskip\pagebreak[1]
{\bf 4. Implementation} {\bf Implementation}
\par\nopagebreak } \par\nopagebreak }
\def\example {\bigskip\pagebreak[1] \def\example {\bigskip\pagebreak[1]
{\bf 5. Example} {\bf Example}
\par\nopagebreak } \par\nopagebreak }
\def\precond {{\it Precondition}: } \def\precond {\par{\it Precondition}: }
% +-------------------------------------------------------------------------- % +--------------------------------------------------------------------------
@ -391,7 +392,8 @@
\gdef\CCopenangle {\CCendfont {\tt <}} \gdef\CCopenangle {\CCendfont {\tt <}}
\gdef\CCcloseangle {\CCendfont {\tt >}} \gdef\CCcloseangle {\CCendfont {\tt >}}
\gdef\CCampersand {\CCendfont {\tt \&}} \gdef\CCampersand {\CCendfont {\tt \&}}
\gdef\CCunderscore {\_} % \gdef\CCunderscore {\raisebox{-.05ex}{\_}\kern.05em}
\gdef\CCunderscore {\kern.05em\raisebox{.5ex}{\_}\kern-.1em}
\gdef\CChat {{\large $\;\,\hat{}\,\,$}} \gdef\CChat {{\large $\;\,\hat{}\,\,$}}
\gdef\CCtilde {{\lower.3ex \hbox{\large$\,\tilde{}\,$}}} \gdef\CCtilde {{\lower.3ex \hbox{\large$\,\tilde{}\,$}}}
@ -680,7 +682,7 @@
\hspace*{\CCWindent}% \hspace*{\CCWindent}%
\ifdim\CCWfirst>0pt % check for constructors \ifdim\CCWfirst>0pt % check for constructors
\ifdim\wd\returntypebox>\CCWfirst \ifdim\wd\returntypebox>\CCWfirst
\unhbox\returntypebox\CCreturnskip \unhbox\returntypebox\nopagebreak\CCreturnskip
\else \else
\parbox[t]{\CCWfirst}{\sloppy \parbox[t]{\CCWfirst}{\sloppy
\unhbox\returntypebox}% \unhbox\returntypebox}%
@ -699,11 +701,13 @@
\global\advance\CCWparam \CCWfirst \global\advance\CCWparam \CCWfirst
\global\advance\CCWparam \CCWbetween \global\advance\CCWparam \CCWbetween
\fi \fi
\def\CCextendedFormat{\\\hspace*{\CCWparam}}% \def\CCextendedFormat{\nopagebreak\\
\hspace*{\CCWparam}}%
{\CCfont\unhbox\callnamebox #1 }% {\CCfont\unhbox\callnamebox #1 }%
\else \else
% Switches ext. format ON. % Switches ext. format ON.
\def\CCextendedFormat{\\\hspace*{\CCWparam}}% \def\CCextendedFormat{\nopagebreak\\
\hspace*{\CCWparam}}%
{\CCfont \unhbox\callnamebox #1}% {\CCfont \unhbox\callnamebox #1}%
\CCextendedFormat \CCextendedFormat
\fi \fi
@ -713,7 +717,7 @@
\fi \fi
#3}\hfill #3}\hfill
\isEmpty{#4}\ifnum\CCbool=\CCfalse \isEmpty{#4}\ifnum\CCbool=\CCfalse
\CCmiddleskip \nopagebreak\CCmiddleskip
\parbox[t]{\CCWcomment}{\sloppy #4}\hfill \parbox[t]{\CCWcomment}{\sloppy #4}\hfill
\fi \fi
\def\CCextendedFormat{\ }% Switches ext. format OFF. \def\CCextendedFormat{\ }% Switches ext. format OFF.
@ -722,10 +726,12 @@
\parbox[t]{\CCWsecondlong}{\unhbox\functioncallbox}% \parbox[t]{\CCWsecondlong}{\unhbox\functioncallbox}%
\hfill \hfill
\isEmpty{#4}\ifnum\CCbool=\CCfalse \isEmpty{#4}\ifnum\CCbool=\CCfalse
\CCmiddleskip \nopagebreak\CCmiddleskip
\parbox[t]{\CCWcomment}{\sloppy #4}\hfill \parbox[t]{\CCWcomment}{\sloppy #4}\hfill
\CCbottombigskip
\else
\CCbottomskip
\fi \fi
\CCbottombigskip
\else \else
\parbox[t]{\CCWsecond}{\unhbox\functioncallbox}% \parbox[t]{\CCWsecond}{\unhbox\functioncallbox}%
\hspace*{\CCWbetween}% \hspace*{\CCWbetween}%
@ -962,7 +968,8 @@
\if+#1\if+#2\CCoperatorpraefix{#1\!#2}\fi\fi \if+#1\if+#2\CCoperatorpraefix{#1\!#2}\fi\fi
\if-#1\if-#2\CCoperatorpraefix{#1\!#2}\fi\fi \if-#1\if-#2\CCoperatorpraefix{#1\!#2}\fi\fi
\or @ 2 parameters \or @ 2 parameters
\if[#1\if]#2\CCoperatorparXX{\CCendfont[ }{]}\fi\fi \if[#1\if]#2\CCoperatorparXX{\CCendfont{\rm [}
}{\CCendfont{\rm ]}}\fi\fi
\if(#1\if)#2\CCoperatorparXX{( }{)}\fi\fi \if(#1\if)#2\CCoperatorparXX{( }{)}\fi\fi
\if+#1\if+#2\CCoperatorpostfix{#1\!#2}\fi\fi \if+#1\if+#2\CCoperatorpostfix{#1\!#2}\fi\fi
\if-#1\if-#2\CCoperatorpostfix{#1\!#2}\fi\fi \if-#1\if-#2\CCoperatorpostfix{#1\!#2}\fi\fi
@ -1292,4 +1299,3 @@
\fi} \fi}
\def\CCprintReturnTypeXQ #1const.&.\end{\CCprintTokens #1\end} \def\CCprintReturnTypeXQ #1const.&.\end{\CCprintTokens #1\end}