Page Layout ⇒ Making the headers differ from the table of contents
Making the headers differ from the table of contents
\section[Existence]{Existence of knot factorizations}
so that in the main body of the text, the name of the section is "Existence of knot factorizations", while in the header it says only "Existence".
The deal is that not only does this change the header, but also the table of contents. I want the table of contents to contain the full title of the section "Existence of knot factorizations" instead of just "Existence", while the header still maintains the shorter title "Existence". Any way of getting around this?
Kind regards.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Making the headers differ from the table of contents
you can use the \markboth or \markright commands, as the following simple example suggests:
Code: Select all
\documentclass{article}
\usepackage{lipsum}% just to generate some text
\pagestyle{headings}
\begin{document}
\tableofcontents
\section{Existence of knot factorizations}
\markboth{}{Existence}
\lipsum[1-30]
\end{document}