ismayc / thesisdown

An updated R Markdown thesis template using the bookdown package
Other
809 stars 357 forks source link

Page header: overlap between page and "Chapter X" #199

Closed andreifoldes closed 1 year ago

andreifoldes commented 1 year ago

Greetings, Describe the bug I have one chapter where it seem that there is overcrowding image

To Reproduce Chapter title: Time-dependent consolidation in transitive inference: an RSA approach

Expected behavior Perhaps a line break after "transitive inference:"?

Desktop (please complete the following information):

Additional context I would be open to quick and dirty fixes too :)

ismayc commented 1 year ago

If you use ChatGPT, I requested some solutions for you at https://chat.openai.com/share/a767e986-fff3-47db-b8ab-8b2e477d7152

andreifoldes commented 1 year ago

Thanks! I think what I went with in the end was, adding this to the template.tex file! Basically just reducing the header size, but trying to keep the cool style of alternating between Chapter title and Section title!

% Chapter title (small font) on even pages and Section title on odd pages
\fancyhead[LO]{\small\slshape\nouppercase{\leftmark}}   % Odd page: Chapter title on the left (inside)
\fancyhead[RE]{\small\slshape\nouppercase{\rightmark}}  % Even page: Section title on the right (inside)

% Page numbers
\fancyhead[RO]{\thepage}                               % Page number on the right for odd pages (edge)
\fancyhead[LE]{\thepage}                               % Page number on the left for even pages (edge)
github-actions[bot] commented 1 year ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.