General ⇒ book | Redefine Chapter Name
-
- Posts: 35
- Joined: Thu Oct 27, 2011 5:31 pm
book | Redefine Chapter Name
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.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
book | Redefine Chapter Name
you could redefine \chaptername. For example:
Code: Select all
\documentclass{book}
\renewcommand*{\chaptername}{Chocolate}
\begin{document}
\chapter{Hazelnut}
\end{document}
-
- Posts: 35
- Joined: Thu Oct 27, 2011 5:31 pm
Re: book | Redefine Chapter Name
Thanks