I hope you'll understand my problem.
I have got a document with more than one sections on each page. Everytime when I start a new section I set an variable called \dvd on a certain word. In the header I want to have the value of \dvd at the start of the page.
My sourcecode looks like this:
Code: Select all
...
\newcommand{\dvd}{some stuff}
\usepackage{fancyheadings}
\fancyhf{}
\lhead{\dvd}
\rhead{\thepage}
\begin{document}
\tableofcontents
\newpage
\renewcommand{\dvd}{some other stuff}
\section{...}
...
\renewcommand{\dvd}{some other stuff}
\section{...}
...
\renewcommand{\dvd}{some other stuff}
\section{...}
...
\end{document}
Can you help me? Sorry if my English is not perfect...