Page Layout ⇒ Wrong page title in Header
Wrong page title in Header
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Wrong page title in Header
you did not tell us the document class you are using, the page style, if you use standard headings page style or a package like fancyhdr or scrpage2, there's not enough information yet. Perhaps provide a minimal working example that shows the problem. Maybe \markboth or \chaptermark could help.
Stefan
Re: Wrong page title in Header
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Wrong page title in Header
a MWE would be useful. Normally the headings should not span over several chapters (\chapter, not \chapter*) with book and fancyhdr, there may be something wrong that at least I can't guess yet.
Stefan
Wrong page title in Header
Code: Select all
\documentclass{ntnuthesis}
\usepackage{amsmath}
\usepackage{epsfig,graphicx}
\usepackage{subfigure}
\usepackage{calc}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{sistyle}
\usepackage{hyperref}
\usepackage{epigraph}
\usepackage{hyphenat}
\usepackage{flafter}
\usepackage{varioref}
\usepackage{bibunits}
%\usepackage{tocbibind}
\usepackage[refpages]{gloss}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%\usepackage{babel}
\newcommand{\degree}{\ensuremath{^\circ}}
\providecommand{\abs}[1]{\lvert#1\rvert}
\begin{document}
\frontmatter
\author{ABC}
\title{XYZ}
\degreetype{X}
\faculty{TT}
\department{EE}
\maketitle
\begin{bibunit}[plain]
\renewcommand\bibname{List of Papers}
\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}
\thispagestyle{empty}
Blah blah blah in \cite*{ownpapers:paper1} and \cite*{ownpapers:paper2}.
\putbib[ownpapers]
\end{bibunit}
\chapter*{Acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}
\thispagestyle{empty}
bbbbb \\
ggg \\
\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
\thispagestyle{empty}
habs wf f 9c c 9WWFCkccn n<zkls<lkclkhcsv slkcv hvs scsois cich svcsico cSCV
\tableofcontents
\thispagestyle{empty}
\chapter*{List of Abbreviations}
\addcontentsline{toc}{chapter}{List of Abbreviations}
\thispagestyle{empty}
\begin{tabular}{l l}
A & bb \\
\end{tabular}
\mainmatter
\chapter{Introduction}
a A Cajc AICS ac sACS A Ca csA CSTac 98A 8CS 0acA
\chapter{Conclusions}
xyz
\begin{bibunit}
\renewcommand\bibname{Bibliography}
\putbib
\end{bibunit}
\end{document}
The formatting that I want is as follows: I want roman numbering on the chapters before the main matter. These chapters should start on the right page therefore the left page should be kept empty without any chapter title in header (but with a page number). These chapters along with a 'list of papers' bibliography should also be listed in the TOC. Notice the tricks that I use right now:
Code: Select all
\chapter*{List of Abbreviations}
\addcontentsline{toc}{chapter}{List of Abbreviations}
\thispagestyle{empty}

- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Wrong page title in Header
without the ntnuthesis.cls file I cannot test it completely, but \chaptermark should help as I guessed above:
Code: Select all
\chapter*{List of Abbreviations}
\chaptermark{List of Abbreviations}
Concerning the empty pages try this code in your preamble:
Code: Select all
\makeatletter
\renewcommand*\cleardoublepage{\clearpage\if@twoside
\ifodd\c@page\else
\hbox{}
\thispagestyle{plain}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
Stefan
Re: Wrong page title in Header
Thank you in advance!
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Wrong page title in Header
What do you make differently?
Stefan
Re: Wrong page title in Header

Wrong page title in Header
have slightly different problem. Maybe it is just silly, but I can't get it right.
'Contents' shows my 'List of abbreviation' in the correct page number but Exec summary in the wrong page number (it is 2 pages, it reminds to the second). Also, there is an empty page between List of Tables, List of Abbreviations and Exec summary. Any hints?
Many thanks for you help!!
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}
\chapter*{Executive Summary}
\addcontentsline{toc}{chapter}{Executive Summary}
%\cleardoublepage
\mainmatter
\chapter{}
\end{document}