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: 52
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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Jongomez
Posts: 52
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: 10397
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