TransWikia.com

Configure page heading in book class

TeX - LaTeX Asked by Vuong Trinh on April 29, 2021

I am writing my thesis and I have a trouble formatting the heading.

The minimal working example is:

documentclass[a4paper,11pt,oneside]{book}
usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}

begin{document}

chapter{Introduction}  

Citation here

newpage

Bla bla

chapter*{Conclusion}  

end{document}

My output heading looks like this:
enter image description here

But I need this, i.e. with such a font setup and an under rule:
enter image description here

One Answer

Here's an option with fancyhdr:

documentclass[a4paper,11pt,oneside]{book}
usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
usepackage{lipsum}
usepackage{fancyhdr}
    fancypagestyle{plain}{fancyhf{}renewcommand{headrulewidth}{0pt}} % To clear page numbers from footer, and header line at the start of every chapter

    pagestyle{fancy}
    fancyhf{}% Clear header/footer
    fancyhead[L]{nouppercaseleftmark}
    fancyhead[R]{thepage}

begin{document}
    chapter{Introduction}  
    lipsum[1-15]
    chapter{Introduction}  
    lipsum[1-15]
end{document}

f

s

Correct answer by Troy on April 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP