1

So I'm writing a book and I managed to put the chapter name on the even pages header and the section name on the odd pages header, and I also could make the chapter name lowercase and my problem now is with the section name, it is all upper case. As shown in the pictures. I want it also to be lowecase. Any solutions!! enter image description here

enter image description here

Here's my preamble:

\documentclass[12pt, twoside]{book}

\usepackage[ paperwidth=15cm, paperheight=22cm]{geometry}

\usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[LE]{\leftmark} \fancyhead[RO]{\rightmark} \fancyhead[LO, RE]{\thepage}

\renewcommand{\chaptermark}[1]{% \markboth{\chaptername \ \thechapter.\ #1}{}}

  • 2
    Since you're using fancyhdr, it's very simple: \nouppercase{\leftmark} and \nouppercase{\rightmark} – egreg Oct 16 '20 at 14:25

1 Answers1

1

Do as you did for chapters: add

\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

to your preamble.

enter image description here

Bernard
  • 271,350