
Die laufenden Kopfzeilen sind gelegentlich zu lang. Ich habe versucht, \sectionmark zu verwenden, aber das funktioniert nicht ...
MWE:
\documentclass[twocolumn,a4paper,10pt]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{lipsum}
\begin{document}
\tableofcontents
\section{Introduction}
\lipsum{5}
\section{Here's long text that is two long for the page and I'd like to substitute it but can't figure out how}
\sectionmark[long text]
\lipsum{5}
\end{document}
Antwort1
Abschnittsähnliche Befehle haben für solche Fälle ein optionales Argument.
\documentclass[twocolumn,a4paper,10pt]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{lipsum}
\begin{document}
\tableofcontents
\section{Introduction}
\lipsum{5}
%The next line
\section[This is the shortened version]{Here's long text that is two long for the page and I'd like to substitute it but can't figure out how}
%\sectionmark[long text]
\lipsum{5}
\end{document}