Theses, Books, Title pagesChanging the table of content to section based

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

Changing the table of content to section based

Post by templateuser »

Hi,
Thanks for the wonderful template.

I hope you can help me out with a small issue.
Currently i notice that the numbering of sections/chapters are based on chapter->section->subsection hierarchy. However, i would like to change it to a section base (removing chapter as i will not be using that).

Currently, if i use section without chapter, it will appear as ( 0.1 Introduction ). Instead of ( 1. Introduction ).

Will appreciate if you can point me to how to fix this.

Thanks!

xholmes

Recommended reading 2024:

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

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

User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Changing the table of content to section based

Post by Vel »

Hey,

Just add this to your preamble in main.tex:

Code: Select all

\renewcommand*\thesection{\arabic{section}}
Note that the page headers will be wrong after that so you will need to make them show the section of the page rather than the chapter.

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