Text FormattingNumbering chapters and margins for TOC, LOF, LOT.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mb_abhilash
Posts: 2
Joined: Mon Oct 21, 2019 5:36 pm

Numbering chapters and margins for TOC, LOF, LOT.

Post by mb_abhilash »

Hi
I am pretty much new to LateX. I am planning to write my master thesis in LateX. I have set up the project and getting the hang of commands but i still few doubts regarding the numbering the chapters.

I have selected "report " as my document class.
\documentclass[12pt,a4paper,chapterprefix=false]{report}
\usepackage[left=4cm,right=2cm,top=2cm,bottom=2cm]{geometry}
...
..
\begin{document}
\tableofcontents
..
..
\include{Pages/introduction}

My introduction is simple
\chapter{Introduction}
The introduction should present the topic of the thesis to specify the purpose and
importance of the work. Other possible contents of an introduction are described
in section.


After compiling the .tex file i get
Chapter 1
Introduction


First,
How to get is as just 1.Introduction and remove the "Chapter" label ?

Second,
And all the chapters, table of content, lof, lot have extra margin at the top. The titilepage, and mandatory pages such as abstract, aunticity decl are following the margins as set by geometry unfortunately toc, lof, lot and chapters have extra margin/padding at the top. How do i remove it make it follow the dimensions set by geometry ? .
Image

Any help is much appreciated.
I have my chapters inside folder "Pages".

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Numbering chapters and margins for TOC, LOF, LOT.

Post by Ijon Tichy »

Try scrreprt instead of report. report does not know an option chapterprefix=false. So it should be removed or will be reported as unknown. With scrreprt the option is the default and can b removed, too.

With scrreprt you can also change the extra space above chapter headings using \RedeclareSectionCommand. However I would not recommend to remove the whole space. Chapters usually are not placed at the top of the page. But if you want to ignore this recommendation, you could use \RedeclareSectionCommand[beforeskip=0pt,afterindent=false]{chapter}. For more information see the KOMA-Script manual (available in English and German).

With the standard class report you would need an extra package like titlesec to do such changes. Please read the package manual, if you do not switch to scrreprt. I do not know a lot about such packages, because I always use KOMA-Script classes like scrreprt.

BTW: Please always add a Infominimal working example instead of a code snipped only. We usually need it to reproduce the problem and test our suggestions.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
mb_abhilash
Posts: 2
Joined: Mon Oct 21, 2019 5:36 pm

Numbering chapters and margins for TOC, LOF, LOT.

Post by mb_abhilash »

Thanks. This works.
I was planning to use titlesec. But this is much better alternative.
Post Reply