Page LayoutHow to get rid of "0" preceding my sections numbers?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
doul
Posts: 3
Joined: Sat Dec 19, 2015 6:56 pm

How to get rid of "0" preceding my sections numbers?

Post by doul »

I am writing a Master thesis using MastersDoctoralthesis template. My thesis will not contain Chapters, but only sections and subsections.I simply ignored Include chapter in the main.tex file, but now the numbers of sections are preceeded by 0. For example, 0.1 Introduction, 0.2 Literature review, whereas I would like not to have the preceding 0 and only have 1 Introduction, 2 Literature review And so on... The same preceding 0 s appear on the table of content.

Please, How can I get rid of them?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How to get rid of "0" preceding my sections numbers?

Post by Johannes_B »

Welcome, you are supposed to using chapters, why aren't you doing it? All the lists use chapters, you wil get a very inconsistent document.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to get rid of "0" preceding my sections numbers?

Post by Stefan Kottwitz »

Hi Doul,

welcome to the forum!

The whole template is based on chapters, this includes design decisions and counters as you noticed.

If you don't like a chapter based template, use a template with a section structure.

Why don't you use chapters? Is it just because of the size of the headings, or opening at the right hand side, or why?

Stefan
LaTeX.org admin
Post Reply