Generalbook | Redefine Chapter Name

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
laailalalaa
Posts: 35
Joined: Thu Oct 27, 2011 5:31 pm

book | Redefine Chapter Name

Post by laailalalaa »

Hello,

I received a very intricate latex template and don't know how to address the following (probably minor) issue.

The main document uses the book document class. For every chapter, on the "header" of each even page appears a line of text indicating the number of the page, the unchanging word "Chapter" and the title of the current Chapter.

How can I change the word "Chapter" to "Chocolate" for instance? I searched through all the .tex files I got, can't find where "Chapter" is set.

Thanks.
Last edited by laailalalaa on Sun Jan 29, 2012 6:40 pm, edited 1 time in total.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

book | Redefine Chapter Name

Post by Stefan Kottwitz »

Hi,

you could redefine \chaptername. For example:

Code: Select all

\documentclass{book}
\renewcommand*{\chaptername}{Chocolate}
\begin{document}
\chapter{Hazelnut}
\end{document}
Stefan
LaTeX.org admin
laailalalaa
Posts: 35
Joined: Thu Oct 27, 2011 5:31 pm

Re: book | Redefine Chapter Name

Post by laailalalaa »

This did the trick.

Thanks
Post Reply