From: Martin Mares Date: Mon, 2 Jun 2008 19:03:27 +0000 (+0200) Subject: Defined \rawsection and made \section use it. X-Git-Tag: phd-final~24 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=501e0109a4b9bbcb68d49965528459ccf34c30c8;p=saga.git Defined \rawsection and made \section use it. --- diff --git a/macros.tex b/macros.tex index b4c1a2d..9027957 100644 --- a/macros.tex +++ b/macros.tex @@ -20,13 +20,8 @@ \newif\iffinal \finaltrue \newdimen\hwobble -\advance\hsize by -10mm - -\iffinal \hwobble=10mm -\else -\hwobble=0mm -\fi +\advance\hsize by -10mm % Glue \smallskipamount=4pt plus 1.2pt minus 1.2pt @@ -389,15 +384,17 @@ \vskip 0pt plus -\dimen0 } -\def\section#1{\bigskip -\vensure{0.5in} -\advance\seccount by 1 -\thmcount=0 -\edef\currentid{\currentchap.\the\seccount} -\leftline{\secfont\currentid. #1} +\def\rawsection#1{\bigskip\vensure{0.5in} +\leftline{\secfont #1} \nobreak \medskip \nobreak +} + +\def\section#1{\advance\seccount by 1 +\thmcount=0 +\edef\currentid{\currentchap.\the\seccount} +\rawsection{\currentid. #1} \writetoc{sec}{#1} } @@ -537,7 +534,10 @@ \output{\sagaoutput} -\def\sagaoutput{\ifodd\pageno \hoffset=\hwobble \else \hoffset=0pt \fi +\def\sagaoutput{ +\iffinal + \ifodd\pageno \hoffset=\hwobble \else \hoffset=0pt \fi +\fi \plainoutput} \def\makefootline{\baselineskip30pt\lineskiplimit 0pt\line{\the\footline}}