]> mj.ucw.cz Git - saga.git/commitdiff
Defined \rawsection and made \section use it.
authorMartin Mares <mj@ucw.cz>
Mon, 2 Jun 2008 19:03:27 +0000 (21:03 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 2 Jun 2008 19:03:27 +0000 (21:03 +0200)
macros.tex

index b4c1a2d67e36d6d01d502f28ab0691b2abe68e77..9027957db714eee27f889fbe3c782b7598d51736 100644 (file)
 \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
 \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}
 }
 
 
 \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}}