Text FormattingPage header in non-numbered chapter

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Page header in non-numbered chapter

Post by Jongomez »

In my Book class document I have:
\tableofcontents
\mainmatter
\include{sections.tex/Introducción}
\addcontentsline{toc}{chapter}{Introducción}

and now normal chapters
\input{sections.tex/01Capítulo1}
\input{sections.tex/02Capítulo2}
\input{sections.tex/03Capítulo3}
\input{sections.tex/04Capítulo4}
\input{sections.tex/05Capítulo5}

QUESTION: After compiling the "normal (numbered" chapters appear with the correct header.
BUT the Chapter "Introducción" appears with the header "CONTENIDO" that belongs to tableof contents.

How can I do to get the header "Introducción" appearing on pages of section "Introducción"?

Thanks so much for your help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Page header in non-numbered chapter

Post by Jongomez »

Please ignore this post. I'll create a new one, after making some code changes.

Tanks so much for your comprehension.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Page header in non-numbered chapter

Post by Stefan Kottwitz »

Hi Jon,

you could use \markboth to fill the header manually.

Stefan
LaTeX.org admin
Post Reply