]> mj.ucw.cz Git - saga.git/commitdiff
Notation and Bibliography are now appendices.
authorMartin Mares <mj@ucw.cz>
Mon, 21 Apr 2008 11:33:16 +0000 (13:33 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 21 Apr 2008 11:33:16 +0000 (13:33 +0200)
epilog.tex
macros.tex
saga.tex

index ffb159a3594c19830b3e0b846ee1903909ad4aa6..0340cbdd479d7b83542097047ee597023fd437a8 100644 (file)
@@ -2,6 +2,6 @@
 \input macros.tex
 \fi
 
-\chapter{Conclusions}
+\chapter{Epilog}
 
 \endpart
index b7f43851465e8b438812e34eb3d447a03afc45f5..3e03c2d7d2c0250fcec052921bdb480cae56a627 100644 (file)
 \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}
 \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}
 }
 \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
 }
 
 \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}}
 
 \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
index 0b81d600f2477ab60092f18dd9d1ce044d817ebe..279bea849310f39a1ce74dc4ba8d03a8a54e1766 100644 (file)
--- 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}