Apologies if this is a duplicate; I've found some similar questions but nothing that exactly addresses my problem.

I'd like to rename alternate chapter headings in my book-class LaTeX document. I'm aware of using \renewcommand to achieve this for every chapter heading, but can this be modified to only rename alternate chapters?


for i in [Chapter 1, Chapter 3, Chapter 5, ...]:
  • You could use the \titleformat command from the package titlesec and use a conditional for odd chapter numbers. – Phelype Oleinik Dec 19 '17 at 22:31

You can add a test to \chaptername itself:

\addto\captionsenglish{\renewcommand\chaptername{\ifodd\value{chapter}Lecture\else Something else\fi}}
\chapter{A} \chapter{B} \chapter{C}

This naturally assume that you are not using the command in some other place where the test it not suited.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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