summaryrefslogtreecommitdiff
path: root/doc/latex
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-07-18 21:55:05 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-07-18 21:55:05 +0000
commit3b9fa9a8fd78e2759e4a43065c9defcd5ed18cb1 (patch)
treec75b20127403dc3f79dc72a22192e679dea0f0b7 /doc/latex
parent10c22584c071c62f947c92be2556cc294542c98b (diff)
Move more headers from *.tex into cactus.sty.
Make part letters handle up to 52 parts, using lower case letters if necessary. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3299 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/latex')
-rw-r--r--doc/latex/cactus.sty19
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/latex/cactus.sty b/doc/latex/cactus.sty
index 1dc0aa41..1a8bd3aa 100644
--- a/doc/latex/cactus.sty
+++ b/doc/latex/cactus.sty
@@ -500,10 +500,21 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\makeatletter
+\def\BigAlph#1{\expandafter\@BigAlph\csname c@#1\endcsname}
+\def\@BigAlph#1{%
+ \ifcase#1\or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or
+ K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or X\or
+ Y\or Z\or
+ a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or
+ k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or
+ y\or z\else\@ctrerr\fi}
+\makeatother
+
\newenvironment{cactuspart}[4]
{
\clearpage
- \renewcommand{\thepage}{\Alph{part}\arabic{page}}
+ \renewcommand{\thepage}{\BigAlph{part}\arabic{page}}
% Redefine the plain style
\fancypagestyle{plain}
{
@@ -513,7 +524,7 @@
\rfoot{\thepage/\pageref{lastpage:\thepart}}
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.4pt}
- \renewcommand{\thepage}{\Alph{part}\arabic{page}}
+ \renewcommand{\thepage}{\BigAlph{part}\arabic{page}}
}
% Make sure it's arabic numbering
@@ -521,7 +532,7 @@
% Start the page counter at 1
\setcounter{page}{1}
% Start a new part
- \renewcommand{\thepage}{\Alph{part}\arabic{page}}
+ \renewcommand{\thepage}{\BigAlph{part}\arabic{page}}
\part{#2}
\setcounter{part}{#1}
% Redefine the page
@@ -538,7 +549,7 @@
\clearpage
}
-
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput
%% End of cactus.sty