Skip to content

Commit

Permalink
Updated example36.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
pietvo committed Mar 5, 2025
1 parent 468da42 commit 9d643f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example36.tex
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

We also have to check whether there is a \verb|\section| or \verb|\subsection| command at or near the top of the page, because if there is, we take its title in the header, instead of the previous one.

This check is done in the macro \verb|\checkposinpage| which we call at the beginning of the \verb|\[sub]section| command by means of a hook. The result is recorded in the variable \verb|\whichpage|. This is then used in \verb|\sectionmark| and \verb|\sectionmark| to store it in the mark \texttt{whichpage}. Because both marks are very similar, we define a macro \verb|\setmarks| to do the job.
This check is done in the macro \verb|\checkposinpage| which we call at the beginning of the \verb|\[sub]section| command by means of a hook. The result is recorded in the variable \verb|\whichpage|. This is then used in \verb|\sectionmark| and \verb|\subsectionmark| to store it in the mark \texttt{whichpage}. Because both marks are very similar, we define a macro \verb|\setmarks| to do the job.

\begin{verbatim}
\NewMarkClass{whichpage}
Expand Down

0 comments on commit 9d643f0

Please sign in to comment.