Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using fancyhdr. With that, using the command

\renewcommand{\chaptername}{Lecture}

has no effect. How can I change the name "Chapter" into something else?

share|improve this question

2 Answers 2

up vote 17 down vote accepted

This problem is not due to fancyhdr, as the following example shows:

\documentclass{book}
\usepackage{fancyhdr}

\renewcommand{\chaptername}{Lecture}

\begin{document}

\chapter{Test chapter}

\end{document}

Perhaps you are using babel with some idiomatic option? If this is the case, the redefinition needs to be made using \addto\captions<language>; for example, in the case of the english option for babel:

\documentclass{book}
\usepackage[english]{babel}
\usepackage{fancyhdr}

\addto\captionsenglish{\renewcommand{\chaptername}{Lecture}}

\begin{document}

\chapter{Test chapter}

\end{document}
share|improve this answer
    
Thanks, this is exactly it! –  Andro Oct 6 '11 at 23:27

You need to use

\makeatletter
\renewcommand{\@chapapp}{Lecture}
\makeatother

since that's what fancyhdr uses as \chaptername.

share|improve this answer
    
Also working, and good to know. thanks –  Andro Oct 6 '11 at 23:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.