From aa2312026aa43fc2969ee8d05a1d2d5fb1016915 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 21 Apr 2008 13:33:16 +0200 Subject: [PATCH] Notation and Bibliography are now appendices. --- epilog.tex | 2 +- macros.tex | 20 ++++++++++++++++---- saga.tex | 3 +++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/epilog.tex b/epilog.tex index ffb159a..0340cbd 100644 --- a/epilog.tex +++ b/epilog.tex @@ -2,6 +2,6 @@ \input macros.tex \fi -\chapter{Conclusions} +\chapter{Epilog} \endpart diff --git a/macros.tex b/macros.tex index b7f4385..3e03c2d 100644 --- a/macros.tex +++ b/macros.tex @@ -323,10 +323,14 @@ \newcount\chapcount \newcount\seccount \newcount\thmcount +\newcount\tmpcount \chapcount=0 \seccount=0 \thmcount=0 \def\currentid{??} +\def\currentchap{??} + +\def\appendices{\chapcount=99} \def\rawchapter#1{\vfill\supereject \leftline{\chapfont #1} @@ -342,7 +346,15 @@ \seccount=0 \thmcount=0 \footcnt=0 -\edef\currentid{\the\chapcount} +% Chapter name + \ifnum\chapcount>99 + \tmpcount=\chapcount + \advance\tmpcount by -100 + \edef\currentchap{\ifcase\tmpcount A\or B\or C\or D\or E\or ZZZ\fi} + \else + \edef\currentchap{\the\chapcount} + \fi +\edef\currentid{\currentchap} \rawchapter{\currentid. #1} \writetoc{chap}{#1} } @@ -350,7 +362,7 @@ \def\section#1{\bigskip \advance\seccount by 1 \thmcount=0 -\edef\currentid{\the\chapcount.\the\seccount} +\edef\currentid{\currentchap.\the\seccount} \leftline{\secfont\currentid. #1} \nobreak \medskip @@ -359,7 +371,7 @@ } \def\para{\advance\thmcount by 1 -\edef\currentid{\the\chapcount.\the\seccount.\the\thmcount} +\edef\currentid{\currentchap.\the\seccount.\the\thmcount} \noindent {\bo \currentid.\enspace}} \def\proclaim#1{\para {\bo #1.\enspace}} @@ -403,7 +415,7 @@ \def\writetoc#1#2{ \toctrue - \toks0={\the\count0} + \toks0={\the\pageno} \edef\tocaux{\write\toc{\noexpand\expandafter\noexpand\string\noexpand\csname toc#1\noexpand\endcsname{\currentid}{#2}{\the\toks0}}} \tocaux \tocfalse diff --git a/saga.tex b/saga.tex index 0b81d60..279bea8 100644 --- a/saga.tex +++ b/saga.tex @@ -15,6 +15,9 @@ \input appl.tex \input rank.tex \input epilog.tex + +\appendices + \input notation.tex \chapter{Bibliography} -- 2.39.2