Tag Info

New answers tagged


Here is the definition of \markboth from the LaTeX kernel: \def\markboth#1#2{% \begingroup \let\label\relax \let\index\relax \let\glossary\relax \unrestored@protected@xdef\@themark {{#1}{#2}}% \@temptokena \expandafter{\@themark}% \mark{\the\@temptokena}% \endgroup \if@nobreak\ifvmode\nobreak\fi\fi} It takes two arguments, designed ...


The \nobreak macro prevents a break after the current material. That's standard for headings amongst other places: no line break should come between the heading and the following text. In LaTeX, a common construct is \section{Some section} \label{sec:important} Text here Using just a \nobreak inside \section, the break would keep the label with the ...

Top 50 recent answers are included