Text FormattingBlank page headings not correct

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
couperc
Posts: 9
Joined: Fri Apr 09, 2010 3:31 pm

Blank page headings not correct

Post by couperc »

Hi

I currently have the following code:

Code: Select all

\documentclass[a4paper, 12pt, twoside, openright]{report}
\usepackage{upgreek}
\usepackage{amsmath}
\usepackage{fancyhdr}


\usepackage{geometry}
\geometry{top=20mm, bottom=20mm, left=35mm, right=20mm}
\linespread{1.5}
%\usepackage{bookmark}

\begin{document}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}

\fancypagestyle{plain}{%
    \fancyhf{} % clear all header and footer fields
    \rhead{ \thepage} % except the right top corner
    \lhead{\nouppercase{\rightmark}}
    }
\pagestyle{plain}
\pagenumbering{roman}
\tableofcontents

\listoffigures
\listoftables
\include{symbols}

\include{greek}

\include{const}

\end{document}
And the input files are:
symbols.tex

Code: Select all

\clearpage%
    \markright{List of Symbols}%
    \addcontentsline{toc}{chapter}{List of Symbols}%
    \chapter*{List of Symbols} 
greek.tex

Code: Select all

\clearpage%
    \markright{List of Greek Symbols}%
    \addcontentsline{toc}{chapter}{List of Greek Symbols}%
    \chapter*{List of Greek Symbols} 
const.tex

Code: Select all

\clearpage%
    \markright{Physical Constants}%
    \addcontentsline{toc}{chapter}{Physical Constants}%
    \chapter*{Physical Constants}
This works however, for the pages before the symbol, greek and const chapters, the blank page needed for the openright option, has the heading of the next chapter rather than the current one. What I mean is that the left hand page after the List of tables has List of Symbols as the header instead of List of Tables and the page after the List of Symbols chpater has List of Greek Symbols instead of List of Symbols.

Anyone know how to change this so the left hand page displays the correct heading.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Blank page headings not correct

Post by achim »

Not sure if it helps in this case but try \clearpage.

Achim
OS: Kubuntu
Distribution: TexLive
Editor: Kile
Post Reply