Page LayoutWrong page title in Header

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Wrong page title in Header

Post by Stefan Kottwitz »

When I test your example, the page number is correct. Can you check exactly this example? If the problem persists, add the output pdf as attachment.

Chapters start as right pages, you used \chapter*, so empty pages are inserted to ensure that. If you don't want it, use the class option openany.

Stefan
LaTeX.org admin

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

miceleee
Posts: 7
Joined: Wed Jan 19, 2011 1:50 am

Wrong page title in Header

Post by miceleee »

Hi again,

I partially found a solution double checking the memoir package, but still I have the problem of the blank pages among 'List of Abbreviations', 'Exec summary' and actual content. Is this because of the book class?

Here a MWE of the current code.

Many thanks again

Code: Select all

\documentclass[a4paper, twoside,11pt]{memoir}%
\usepackage{hyperref}
%\hypersetup{ => omitted options 
\begin{document}
\tableofcontents         
\newpage
\listoffigures
\listoftables
\chapter*{List of Abbreviations}
\addcontentsline{toc}{chapter}{List of Abbreviations}
\renewcommand{\abstractname}{\chapter*{Executive Summary}}
\begin{abstract}
\addcontentsline{toc}{chapter}{Executive Summary}
            here's my exec summary
\end{abstract}
%\cleardoublepage
\mainmatter
\chapter{}
\end{document}
miceleee
Posts: 7
Joined: Wed Jan 19, 2011 1:50 am

Re: Wrong page title in Header

Post by miceleee »

Hello Stefan_K,

thanks for your quick response.
Honestly, I did not refresh the browser, so I saw you reply after submission of last post.

I used 'openany' and it did the trick, now everything is in place.
However, if I enclose the Exec Summary into the \begin{Abstract} ... \end{Abstract}, memoir has dedicated fonts. I fond more useful to remove the above and simply have \chapter*{}.


Would you suggest any code more elegant to do the same job?

Many thanks again for the support.
All the best.
Post Reply