I'm using \documentclass[pdftex,10pt,b5paper,twoside]{book}.

And I want the header to contain only the chapter name in small letters and the page namer. And if possible, having the chapter name on the inner side and the page and the number on the outer side.

I'm new at LaTeX and I'm struggling to figure out the right way to do it.


1 Answer 1


This should do the job:


\KOMAoptions{headsepline=0.2pt }

\chapter{ch 1}
\section{Sec 1.1}
\chapter{Ch 2}
\section{Sec 2.1}

The KOMA skript is very helpful to achieve such things.

  • Thank you so much for the help, it worked!
    – Shobi
    May 28, 2020 at 19:37
  • You're welcome. Please upvote and accept my answer then :)
    – Steradiant
    May 28, 2020 at 20:14
  • I have upvoted, but do not have enough reputations yet to make them visible. I also have a problem. The script work, but I also get this error message: Package scrlayer Error: cannot define \cfoot' and Package scrlayer Error: cannot define \chead'. I dont understand why
    – Shobi
    May 28, 2020 at 21:46
  • But you can still accept the answer (check mark underneath) if you like my answer. Have you changed anything? Because my example doesn't use \cfoot or \chead
    – Steradiant
    May 29, 2020 at 5:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .