Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect chapter name in header when including ToC (with workaround) #25

Open
paddomanno opened this issue Jan 17, 2024 · 0 comments
Open

Comments

@paddomanno
Copy link

Hello everyone! I would like to highlight a small issue and provide a workaround for it. The problem originates from the original classicthesis project and is described there in an issue.

Problem:
In my LaTeX project based on the classicthesis template, the header on each page incorrectly displays "Contents" instead of the actual chapter. This behavior occurs when the table of contents (\tableofcontents) is inserted but none of the lists of figures, listings, tables, or acronyms.

Solution:
Manually add \automark[section]{chapter} to thesis.tex. In my case, placing it here resolved the issue:

thesis.tex

...
\cleardoublepage\include{frontbackmatter/Contents}

% Uncomment these if not needed (i.e., less than 3-5, of figures, tables, listings, and acronyms.)
% \cleardoublepage\include{frontbackmatter/Figures}
% \cleardoublepage\include{frontbackmatter/Tables}
% \cleardoublepage\include{frontbackmatter/Listings}
% \cleardoublepage\include{frontbackmatter/Acronyms}
\automark[section]{chapter} % add this line
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant