diff options
author | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-07-20 10:40:59 +0000 |
---|---|---|
committer | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-07-20 10:40:59 +0000 |
commit | 4ee091d18b35cba2fe5ad43d366708506ed8d275 (patch) | |
tree | ebfd6027835fe8a16789d3106215c66c16cba4bb /doc/latex | |
parent | f7226761c9454561a66abe13460307e17b3e3f35 (diff) |
change cactuspart environment so part numbers (A, B, C, ...)
are automagically assigned by latex when the document is typeset
delete explicit numbering of parts
--> it's now possible for a given part to have a different number
in the Users' Guide and the Reference Manual, eg when I finish
creating the Reference Manual, "Appendices" will be part E there,
while it will be part B in the Users Guide. With \ref all
the references shuold be ok...
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3323 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/latex')
-rw-r--r-- | doc/latex/cactus.sty | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/doc/latex/cactus.sty b/doc/latex/cactus.sty index 764a1f08..4ab04a02 100644 --- a/doc/latex/cactus.sty +++ b/doc/latex/cactus.sty @@ -510,7 +510,13 @@ y\or z\else\@ctrerr\fi} \makeatother -\newenvironment{cactuspart}[4] +% +% arguments: +% #1 = Name of this part, eg "Function Reference" +% #2 = $RCSFile:$ keyword +% #3 = $Revision$ keyword +% +\newenvironment{cactuspart}[3] { \clearpage \renewcommand{\thepage}{\BigAlph{part}\arabic{page}} @@ -518,8 +524,8 @@ \fancypagestyle{plain} { \fancyhf{} % Clear all header and footer fields - \lfoot{#3} - \cfoot{#4} + \lfoot{#2} + \cfoot{#3} \rfoot{\thepage/\pageref{lastpage:\thepart}} \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0.4pt} @@ -532,12 +538,11 @@ \setcounter{page}{1} % Start a new part \renewcommand{\thepage}{\BigAlph{part}\arabic{page}} - \part{#2} - \setcounter{part}{#1} + \part{#1} % Redefine the page % Set up fancy headings. - \lfoot{#3} - \cfoot{#4} + \lfoot{#2} + \cfoot{#3} \rfoot{\thepage/\pageref{lastpage:\thepart}} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} |