Theses, Books, Title pagesChapter name

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Chapter name

Post by templateuser »

Hi again,
this template is sooo coool!! I'm almost done with the fine-tuning, but I cannot get it to do just one thing... Is it possible to include the word "Chapter" (or "Lecture") before the chapter number (both in the chapter headings and TOC)?
Thanks a lot!!

Recommended reading 2024:

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

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

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Chapter name

Post by templateuser »

Oh well... I must have done something wrong before, because the good old

\renewcommand{\chaptername}{Lecture}

works perfectly for the chapter headings...

But I'm still stuck with the TOC... It doesn't change the word "Chapter"!
Thanks to all!!
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Chapter name

Post by Vel »

Hey,

To add a "Lecture" before the chapter number in the table of contents, open up structure.tex and find these three lines:

Code: Select all

\titlecontents{chapter}[1.25cm] % Indentation
{\addvspace{15pt}\large\sffamily\bfseries} % Spacing and font options for chapters
{\color{ocre!60}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{ocre}} % Chapter number
replace them with:

Code: Select all

\titlecontents{chapter}[3cm] % Indentation
{\addvspace{15pt}\large\sffamily\bfseries} % Spacing and font options for chapters
{\color{ocre!60}\contentslabel[\Large Lecture \thecontentslabel]{2.5cm}\color{ocre}} % Chapter number
Change the cm numbers to position the text as you'd like. Good luck with the book!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Post Reply