Skip to content

Commit d260ab5

Browse files
committed
fix the wrong numbering in running headers (thanks to Shashi Kumar)
1 parent b6db569 commit d260ab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

krantz.cls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
\let\@oddfoot\@empty
376376
\let\@evenfoot\@empty
377377
\let\@evenhead\even@head
378-
\let\@oddhead\odd@head
378+
\def\@oddhead{\RunningHeadFont\if@mainmatter\ifnum\value{section}>0 \enspace\fi\fi\rightmark\hfill\PageNumFont\thepage}%\odd@head
379379
\fi
380380
}
381381
\else
@@ -447,9 +447,9 @@
447447
\def\chaptermark##1{%
448448
\markboth{%
449449
##1}{}}%
450-
\def\sectionmark##1{%
450+
\def\sectionmark##1{%\pagebreak[3]%
451451
\markright{%
452-
##1}}}
452+
\thesection\enspace##1}}}
453453
\def\pdfon{\@pdftrue}
454454
\def\pdfoff{\@pdffalse}
455455
\if@pdf

0 commit comments

Comments
 (0)