because LaTeX matters

Writing a thesis in latex.

Writing a thesis is a time-intensive endeavor. Fortunately, using LaTeX, you can focus on the content rather than the formatting of your thesis. The following article summarizes the most important aspects of writing a thesis in LaTeX, providing you with a document skeleton (at the end) and lots of additional tips and tricks.

Document class

The first choice in most cases will be the report document class:

See here for a complete list of options. Personally, I use draft a lot. It replaces figures with a box of the size of the figure. It saves you time generating the document. Furthermore, it will highlight justification and hyphenation errors ( Overfull \hbox ).

Check with your college or university. They may have an official or unofficial template/class-file to be used for writing a thesis.

Again, follow the instructions of your institution if there are any. Otherwise, LaTeX provides a few basic command for the creation of a title page.

maketitle

Use \today as \date argument to automatically generate the current date. Leave it empty in case you don’t want the date to be printed. As shown in the example, the author command can be extended to print several lines.

For a more sophisticated title page, the titlespages package has a nice collection of pre-formatted front pages. For different affiliations use the authblk package, see here for some examples.

Contents (toc/lof/lot)

Nothing special here.

The tocloft package offers great flexibility in formatting contents. See here for a selection of possibilities.

Often, the page numbers are changed to roman for this introductory part of the document and only later, for the actual content, arabic page numbering is used. This can be done by placing the following commands before and after the contents commands respectively.

LaTeX provides the abstract environment which will print “Abstract” centered as a title.

abstract

The actual content

The most important and extensive part is the content. I strongly suggest to split up every chapter into an individual file and load them in the main tex-file.

In thesis.tex:

In chapter1.tex:

This way, you can typeset single chapters or parts of the whole thesis only, by commenting out what you want to exclude. Remember, the document can only be generated from the main file (thesis.tex), since the individual chapters are missing a proper LaTeX document structure.

See here for a discussion on whether to use \input or \include .

Bibliography

The most convenient way is to use a bib-tex file that contains all your references. You can download bibtex items for articles, books, etc. from Google scholar or often directly from the journal websites.

Two packages are commonly used to personalize bibliographies, the newer biblatex and the natbib package, which has been around for many years. These packages offer great flexibility in customizing the look of a bibliography, depending on the preference in the field or the author.

Other commonly used packages

  • graphicx : Indispensable when working with figures/graphs.
  • subfig : Controlling arrangement of several figures (e.g. 2×2 matrix)
  • minitoc : Adds mini table of contents to every chapter
  • nomencl : Generate and format a nomenclature
  • listings : Source code printer for LaTeX
  • babel : Multilingual package for standard document classes
  • fancyhdr : Controlling header and footer
  • hyperref : Hypertext links for LaTeX
  • And many more

Minimal example code

I’m aware that this short post on writing a thesis only covers the very basics of a vast topic. However, it will help you getting started and focussing on the content of your thesis rather than the formatting of the document.

Share this:

16 comments.

' src=

8. June 2012 at 7:09

I would rather recommend a documentclass like memoir or scrreprt (from KOMA-Script), since they are much more flexible than report.

' src=

8. June 2012 at 8:12

I agree, my experience with them is limited though. Thanks for the addendum. Here is the documentation: memoir , scrreprt (KOMA script)

' src=

8. June 2012 at 8:02

Nice post Tom. I’m actually writing a two-part (or three) on Writing the PhD thesis: the tools . Feel free to comment, I hope to update it as I write my thesis, so any suggestions are welcome.

8. June 2012 at 8:05

Thanks for the link. I just saw your post and thought I should really check out git sometimes :-). Best, Tom.

8. June 2012 at 8:10

Yes, git is awesome. It can be a bit overwhelming with all the options and commands, but if you’re just working alone, and probably on several machines, then you can do everything effortlessly with few commands.

11. June 2012 at 2:15

That’s what has kept me so far. But I’ll definitely give it a try. Thanks!

' src=

8. June 2012 at 8:08

What a great overview. Thank you, this will come handy… when I finally get myself to start writing that thesis 🙂

8. June 2012 at 14:12

Thanks and good luck with your thesis! Tom.

' src=

9. June 2012 at 4:08

Hi, I can recommend two important packages: lineno.sty to insert linenumbers (really helpful in the debugging phase) and todonotes (allows you to insert todo-notes for things you still have to do.)

11. June 2012 at 0:48

Thanks Uwe! I wrote an article on both, lineno and todonotes . Here is the documentation: lineno and todonotes for more details.

' src=

12. June 2012 at 15:51

Thanks for the post, i’m currently writing my master thesis 🙂

A small note: it seems that subfig is deprecated for the subcaption package: https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Subfloats

12. June 2012 at 16:05

Hey, thanks for the tip. Too bad they don’t say anything in the documentation apart from the fact that the packages are not compatible.

' src=

1. August 2012 at 21:11

good thesis template can be also found here (free): http://enjobs.org/index.php/downloads2

including living headers, empty pages, two-sided with front and main matter as well as a complete structure

2. August 2012 at 11:03

Thanks for the link to the thesis template!

' src=

15. November 2012 at 22:21

Hi Tom, I’m writing a report on spanish in LaTex, using emacs, auctex, aspell (~170pags. ~70 files included by now) and this blog is my savior every time because I’m quite new with all these.

The question: Is there anyway (other than \- in every occurrence) to define the correct hyphenation for accented words (non english characters like é)? I have three o four accented words, about the subject of my report, that occur near 100 times each, across several files, and the \hyphenation{} command can’t handle these.

20. November 2012 at 3:47

I was wondering what packages you load in your preamble. For a better hyphenation (and easier typing), you should use these packages:

See here for more details.

If this doesn’t help, please provide a minimal working example to illustrate the problem.

Thanks, Tom.

Leave a Reply Cancel reply

LaTeX-Tutorial.com

Generate a table of contents in latex, latex offers features to automatically generate a table of contents, a list of figures and a list of tables. learn here how to use them., table of contents.

  • List of figures

Generating a table of contents can be done with a few simple commands. LaTeX will use the section headings to create the table of contents and there are commands to create a list of figures and a list of tables as well. I will give a small example code to create a table of contents first:

After compiling the .tex file two times, you will get the following table of contents:

toc.png

List of figures / tables

The generation of a list of figures and tables works the same way. I added a dummy figure and table and put the lists in the appendix of my document:

After compiling two times again, the lists will be generated like this:

toc2.png

Sometimes it makes sense to only show a subset of the headings for all sections or for a particular section. For this reason you can set a the tocdepth  by using the command \setcounter{tocdepth}{X}, where X is the desired depth. A value of 0 means that your table of contents will show nothing at all and 5 means, that even subparagraphs will be shown. The value has to be set in the preamble of your document and automatically applies to the whole document:

Using the example from above, the setting tocdepth = 1 will lead to the following output:

tocdepth1.png

You can easily increase the verbosity of your table of contents, by setting tocdepth to something higher like 3, which would lead to the following output:

tocdepth3.png

If you don’t want to change the depth for all sections, you can also adjust the tocdepth for each section individually. In this case you don’t have to set the tocdepth before the section which should have more or less depth.

This will generate the following table of contents, using the default tocdepth for the first section, but tocdepth = 1 for this section:

tocdepthindi.png

If you’re not happy with the spacing of the headings in your table of content, the easiest way of changing the spacing of your table of contents (and document in general) is by using the setspace package. First add \usepackage{setspace} to your preamble:

You can then proceed to set the spacing for individual parts of your document, including the table of contents like so:

Which will lead to the following output:

tocspacingdouble.png

  • Autogenerate a table of content using \tableofcontents
  • Create lists of your figures and tables with \listoffigures and \listoftables
  • Always compile twice to see the changes
  • Globally change the depth with \setcounter{tocdepth}{X} ; X = {1,2,3,4,5}
  • For single sections use \addtocontents{toc}{\setcounter{tocdepth}{X}} instead.

Next Lesson: 07 BiBTeX

We love good questions

Skip to content

LaTeX.org on Twitter - follow us

  • Impressum and Privacy Policy
  • About LaTeX
  • Board index LaTeX Editors LyX
  • Ask a question LaTeX    Text Formatting    Graphics, Figures & Tables    Math & Science    Fonts & Character Sets    Page Layout    Document Classes    General LaTeX's Friends    BibTeX, biblatex and biber    MakeIndex, Nomenclature, Glossaries and Acronyms    Conversion Tools    Viewers for PDF, PS, and DVI    XeTeX    Others LaTeX Distributions    Decision Guidance    MiKTeX and proTeXt    TeX Live and MacTeX    Others LaTeX Editors    Decision Guidance    AUCTeX    Kile    LEd    LyX    Scientific Word/Workplace    Texmaker and TeXstudio    TeXnicCenter       Announcements       General       Templates, Wizards & Tools       Feature Suggestions       Development    TeXShop    TeXworks    WinEdt    WinShell    Others LaTeX Templates    Articles, Essays, and Journal Templates    Theses, Books, Title pages    Letters    Presentations and Posters    Curricula Vitae / Résumés    Assignments, Laboratory books and reports    Calendars and Miscellaneous LaTeX Community    Announcements    Community talk    Comments & Wishes    New Members LaTeX Books    LaTeX Beginner's Guide    LaTeX Cookbook

LaTeX forum ⇒ LyX ⇒ Add Front Matter to TOC (Table of Contents) in a Thesis

Add front matter to toc (table of contents) in a thesis.

Post by Ry J » Sat Jan 23, 2010 1:02 am

Re: Add Front Matter to TOC (Table of Contents) in a Thesis

Post by Ry J » Sat Jan 23, 2010 1:06 am

User avatar

Post by frabjous » Sat Jan 23, 2010 1:10 am

Post by Ry J » Sat Jan 23, 2010 1:34 am

frabjous wrote: Try the \addcontentsline command.

Post by Ry J » Sat Jan 23, 2010 1:42 am

Post by frabjous » Sat Jan 23, 2010 3:27 am

Post by Ry J » Sat Jan 23, 2010 4:07 am

frabjous wrote: It would probably make more sense for you to provide sample code that generates problems for you. I can't diagnose what's going wrong without seeing that. However, perhaps the sample document below will provide some guidance. \documentclass{report} \usepackage[english]{babel} \usepackage{blindtext} % for auto-generating text % \title{The Color Spectrum} \author{Roy G. Biv} \date{\today} % \begin{document} \renewcommand{\thepage}{\roman{page}} % \maketitle % \clearpage \addcontentsline{toc}{chapter}{Acknowledgements} \chapter*{Acknowledgements} Thanks Mom! % \clearpage \addcontentsline{toc}{chapter}{Table of Contents} \tableofcontents % \clearpage \addcontentsline{toc}{chapter}{List of Figures} \listoffigures % \clearpage \addcontentsline{toc}{chapter}{Preface} \chapter*{Preface} This document is silly. % \clearpage \setcounter{page}{1} \renewcommand{\thepage}{\arabic{page}} \chapter{First Real Chapter} \blindmathpaper % auto-generates text This chapter ends with a figure. \begin{figure} A figure. \caption{A figure.} \end{figure} % \chapter{Second Real Chapter} This chapter begins with a figure. \begin{figure} Another figure. \caption{Another figure.} \end{figure} \blindmathpaper % more auto-generated text % \end{document}

Post by frabjous » Sat Jan 23, 2010 4:15 am

Post by Ry J » Sat Jan 23, 2010 6:00 am

Post by Ry J » Sat Jan 23, 2010 6:03 am

frabjous wrote: Oops, I didn't notice this was the LyX subforum. (I have to start paying attention to that.) I don't know anything about Lyx. If it allows you to mark-up the LaTeX yourself, you just need to change: \addcontentsline{toc}{lof}{list of figures} to \addcontentsline{toc}{chapter}{List of Figures} and it needs to go on the same page as the List of Figures, which is easiest to do by placing it right after a \clearpage command and right before the \listoffigures command. If this can't be done by editing the code directly in Lyx, then I don't know how to do it. I've never used LyX.

Return to “LyX”

  •     Text Formatting
  •     Graphics, Figures & Tables
  •     Math & Science
  •     Fonts & Character Sets
  •     Page Layout
  •     Document Classes
  •     General
  • LaTeX's Friends
  •     BibTeX, biblatex and biber
  •     MakeIndex, Nomenclature, Glossaries and Acronyms
  •     Conversion Tools
  •     Viewers for PDF, PS, and DVI
  •     XeTeX
  •     Others
  • LaTeX Distributions
  •     Decision Guidance
  •     MiKTeX and proTeXt
  •     TeX Live and MacTeX
  • LaTeX Editors
  •     AUCTeX
  •     Kile
  •     LEd
  •     LyX
  •     Scientific Word/Workplace
  •     Texmaker and TeXstudio
  •     TeXnicCenter
  •        Announcements
  •        General
  •        Templates, Wizards & Tools
  •        Feature Suggestions
  •        Development
  •     TeXShop
  •     TeXworks
  •     WinEdt
  •     WinShell
  • LaTeX Templates
  •     Articles, Essays, and Journal Templates
  •     Theses, Books, Title pages
  •     Letters
  •     Presentations and Posters
  •     Curricula Vitae / Résumés
  •     Assignments, Laboratory books and reports
  •     Calendars and Miscellaneous
  • LaTeX Community
  •     Announcements
  •     Community talk
  •     Comments & Wishes
  •     New Members
  • LaTeX Books
  •     LaTeX Beginner's Guide
  •     LaTeX Cookbook

Who is online

Users browsing this forum: No registered users and 11 guests

  • Board index
  • All times are UTC
  • Text Formatting
  • Graphics, Figures & Tables
  • Math & Science
  • Fonts & Character Sets
  • Page Layout
  • Document Classes
  • BibTeX, biblatex and biber
  • MakeIndex, Nomenclature, Glossaries and Acronyms
  • Conversion Tools
  • Viewers for PDF, PS, and DVI
  • Decision Guidance
  • MiKTeX and proTeXt
  • TeX Live and MacTeX
  • Scientific Word/Workplace
  • Texmaker and TeXstudio
  • Announcements
  • Templates, Wizards & Tools
  • Feature Suggestions
  • Development
  • Articles, Essays, and Journal Templates
  • Theses, Books, Title pages
  • Presentations and Posters
  • Curricula Vitae / Résumés
  • Assignments, Laboratory books and reports
  • Calendars and Miscellaneous
  • Community talk
  • Comments & Wishes
  • New Members
  • LaTeX Beginner's Guide
  • LaTeX Cookbook

Thesis and Dissertation Guide

  • « Thesis & Dissertation Resources
  • The Graduate School Home

pdf icon

  • Introduction

Copyright Page

Dedication, acknowledgements, preface (optional), table of contents.

  • List of Tables, Figures, and Illustrations

List of Abbreviations

List of symbols.

  • Non-Traditional Formats
  • Font Type and Size
  • Spacing and Indentation
  • Tables, Figures, and Illustrations
  • Formatting Previously Published Work
  • Internet Distribution
  • Open Access
  • Registering Copyright
  • Using Copyrighted Materials
  • Use of Your Own Previously Published Materials
  • Submission Steps
  • Submission Checklist
  • Sample Pages

Thesis and Dissertation Guide

I. Order and Components

Please see the sample thesis or dissertation pages throughout and at the end of this document for illustrations. The following order is required for components of your thesis or dissertation:

  • Dedication, Acknowledgements, and Preface (each optional)
  • Table of Contents, with page numbers
  • List of Tables, List of Figures, or List of Illustrations, with titles and page numbers (if applicable)
  • List of Abbreviations (if applicable)
  • List of Symbols (if applicable)
  • Introduction, if any
  • Main body, with consistent subheadings as appropriate
  • Appendices (if applicable)
  • Endnotes (if applicable)
  • References (see section on References for options)

Many of the components following the title and copyright pages have required headings and formatting guidelines, which are described in the following sections.

Please consult the Sample Pages to compare your document to the requirements. A Checklist is provided to assist you in ensuring your thesis or dissertation meets all formatting guidelines.

The title page of a thesis or dissertation must include the following information:

Title Page with mesaurements described in surrounding text

  • The title of the thesis or dissertation in all capital letters and centered 2″ below the top of the page.
  • Your name, centered 1″ below the title. Do not include titles, degrees, or identifiers. The name you use here does not need to exactly match the name on your university records, but we recommend considering how you will want your name to appear in professional publications in the future.

Notes on this statement:

  • When indicating your degree in the second bracketed space, use the full degree name (i.e., Doctor of Philosophy, not Ph.D. or PHD; Master of Public Health, not M.P.H. or MPH; Master of Social Work, not M.S.W. or MSW).
  • List your department, school, or curriculum rather than your subject area or specialty discipline in the third bracketed space. You may include your subject area or specialty discipline in parentheses (i.e., Department of Romance Languages (French); School of Pharmacy (Molecular Pharmaceutics); School of Education (School Psychology); or similar official area).
  • If you wish to include both your department and school names, list the school at the end of the statement (i.e., Department of Pharmacology in the School of Medicine).
  • A dissertation submitted to the faculty at the University of North Carolina at Chapel Hill in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the Department of Public Policy.
  • A thesis submitted to the faculty at the University of North Carolina at Chapel Hill in partial fulfillment of the requirements for the degree of Master of Science in the School of Dentistry (Endodontics).
  • A thesis submitted to the faculty at the University of North Carolina at Chapel Hill in partial fulfillment of the requirements for the degree of Master of Science in the Department of Nutrition in the Gillings School of Global Public Health.
  • A dissertation submitted to the faculty at the University of North Carolina at Chapel Hill in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the School of Education (Cultural Studies and Literacies).
  • The words “Chapel Hill” must be centered 1″ below the statement.
  • One single-spaced line below that, center the year in which your committee approves the completed thesis or dissertation. This need not be the year you graduate.
  • Approximately 2/3 of the way across the page on the right-hand side of the page, 1″ below the year, include the phrase “Approved by:” (with colon) followed by each faculty member's name on subsequent double-spaced lines. Do not include titles such as Professor, Doctor, Dr., PhD, or any identifiers such as “chair” or “advisor” before or after any names. Line up the first letter of each name on the left under the “A” in the “Approved by:” line. If a name is too long to fit on one line, move this entire section of text slightly to the left so that formatting can be maintained.
  • No signatures, signature lines, or page numbers should be included on the title page.

Include a copyright page with the following information single-spaced and centered 2″ above the bottom of the page:

Copyright Page with mesaurements described in surrounding text

© Year Author's Full Name (as it appears on the title page) ALL RIGHTS RESERVED

This page immediately follows the title page. It should be numbered with the lower case Roman numeral ii centered with a 1/2″ margin from the bottom edge.

Inclusion of this page offers you, as the author, additional protection against copyright infringement as it eliminates any question of authorship and copyright ownership. You do not need to file for copyright in order to include this statement in your thesis or dissertation. However, filing for copyright can offer other protections.

See Section IV for more information on copyrighting your thesis or dissertation.

Include an abstract page following these guidelines:

Abstract page with mesaurements described in surrounding text

  • Include the heading “ABSTRACT” in all capital letters, and center it 2″ below the top of the page.
  • One double-spaced line below “ABSTRACT”, center your name, followed by a colon and the title of the thesis or dissertation. Use as many lines as necessary. Be sure that your name and the title exactly match the name and title used on the Title page.
  • One single-spaced line below the title, center the phrase “(Under the direction of [advisor's name])”. Include the phrase in parentheses. Include the first and last name(s) of your advisor or formal co-advisors. Do not include the name of other committee members. Use the advisor's name only; do not include any professional titles such as PhD, Professor, or Dr. or any identifiers such as “chair” or “advisor”.
  • Skip one double-spaced line and begin the abstract. The text of your abstract must be double-spaced and aligned with the document's left margin with the exception of indenting new paragraphs. Do not center or right-justify the abstract.
  • Abstracts cannot exceed 150 words for a thesis or 350 words for a dissertation.
  • Number the abstract page with the lower case Roman numeral iii (and iv, if more than one page) centered with a 1/2″ margin from the bottom edge.

Please write and proofread your abstract carefully. When possible, avoid including symbols or foreign words in your abstract, as they cannot be indexed or searched. Avoid mathematical formulas, diagrams, and other illustrative materials in the abstract. Offer a brief description of your thesis or dissertation and a concise summary of its conclusions. Be sure to describe the subject and focus of your work with clear details and avoid including lengthy explanations or opinions.

Your title and abstract will be used by search engines to help potential audiences locate your work, so clarity will help to draw the attention of your targeted readers.

You have an option to include a dedication, acknowledgements, or preface. If you choose to include any or all of these elements, give each its own page(s).

Dedication page with mesaurements described in surrounding text

A dedication is a message from the author prefixed to a work in tribute to a person, group, or cause. Most dedications are short statements of tribute beginning with “To…” such as “To my family”.

Acknowledgements are the author's statement of gratitude to and recognition of the people and institutions that helped the author's research and writing.

A preface is a statement of the author's reasons for undertaking the work and other personal comments that are not directly germane to the materials presented in other sections of the thesis or dissertation. These reasons tend to be of a personal nature.

Any of the pages must be prepared following these guidelines:

  • Do not place a heading on the dedication page.
  • The text of short dedications must be centered and begin 2″ from the top of the page.
  • Headings are required for the “ACKNOWLEDGEMENTS” and “PREFACE” pages. Headings must be in all capital letters and centered 2″ below the top of the page.
  • The text of the acknowledgements and preface pages must begin one double-spaced line below the heading, be double-spaced, and be aligned with the document's left margin with the exception of indenting new paragraphs.
  • Subsequent pages of text return to the 1″ top margin.
  • The page(s) must be numbered with consecutive lower case Roman numerals (starting with the page number after the abstract) centered with a 1/2″ margin from the bottom edge.

Include a table of contents following these guidelines:

Table of Contents page with mesaurements described in surrounding text

  • Include the heading “TABLE OF CONTENTS” in all capital letters, and center it 2″ below the top of the page.
  • Include one double-spaced line between the heading and the first entry.
  • The table of contents should not contain listings for the pages that precede it, but it must list all parts of the thesis or dissertation that follow it.
  • If relevant, be sure to list all appendices and a references section in your table of contents. Include page numbers for these items but do not assign separate chapter numbers.
  • Entries must align with the document's left margin or be indented to the right of the left page margin using consistent tabs.
  • Major subheadings within chapters must be included in the table of contents. The subheading(s) should be indented to the right of the left page margin using consistent tabs.
  • If an entry takes up more than one line, break up the entry about three-fourths of the way across the page and place the rest of the text on a second line, single-spacing the two lines.
  • Include one double-spaced line between each entry.
  • Page numbers listed in the table of contents must be located just inside the right page margin with leaders (lines of periods) filling out the space between the end of the entry and the page number. The last digit of each number must line up on the right margin.
  • Information included in the table of contents must match the headings, major subheadings, and numbering used in the body of the thesis or dissertation.
  • The Table of Contents page(s) must be numbered with consecutive lower case Roman numerals centered with a 1/2″ margin from the bottom edge.

Lists of Tables, Figures, and Illustrations

If applicable, include a list of tables, list of figures, and/or list of illustrations following these guidelines:

Lists of Figures page with mesaurements described in surrounding text

  • Include the heading(s) in all capital letters, centered 1″ below the top of the page.
  • Each entry must include a number, title, and page number.
  • Assign each table, figure, or illustration in your thesis or dissertation an Arabic numeral. You may number consecutively throughout the entire work (e.g., Figure 1, Figure 2, etc.), or you may assign a two-part Arabic numeral with the first number designating the chapter in which it appears, separated by a period, followed by a second number to indicate its consecutive placement in the chapter (e.g., Table 3.2 is the second table in Chapter Three).
  • Numerals and titles must align with the document's left margin or be indented to the right of the left page margin using consistent tabs.
  • Page numbers must be located just inside the right page margin with leaders (lines of periods) filling out the space between the end of the entry and the page number. The last digit of each number must line up on the right margin.
  • Numbers, titles, and page numbers must each match the corresponding numbers, titles, and page numbers appearing in the thesis or dissertation.
  • All Lists of Tables, Figures, and Illustrations page(s) must be numbered with consecutive lower case Roman numerals centered with a 1/2″ margin from the bottom edge.

If you use abbreviations extensively in your thesis or dissertation, you must include a list of abbreviations and their corresponding definitions following these guidelines:

List of Abbreviations with mesaurements described in surrounding text

  • Include the heading “LIST OF ABBREVIATIONS” in all capital letters, and center it 1″ below the top of the page.
  • Arrange your abbreviations alphabetically.
  • Abbreviations must align with the document's left margin or be indented to the right of the left page margin using consistent tabs.
  • If an entry takes up more than one line, single-space between the two lines.
  • The List of Abbreviations page(s) must be numbered with consecutive lower case Roman numerals centered with a 1/2″ margin from the bottom edge.

If you use symbols in your thesis or dissertation, you may combine them with your abbreviations, titling the section “LIST OF ABBREVIATIONS AND SYMBOLS”, or you may set up a separate list of symbols and their definitions by following the formatting instructions above for abbreviations. The heading you choose must be in all capital letters and centered 1″ below the top of the page.

Previous: Introduction

Next: Format

Aucun résultat pour la recherche

  • Table of contents

In a L a T e X document the table of contents can be automatically generated, and modified to fit a specific style, this article explain how

Introduction

To create the table of contents is straightforward, the command \tableofcontents does the job. Sections, subsections and chapters are included in the table of contents. To manually add entries, for example when you want an unnumbered section, use the command \addcontentsline as shown in the following example:

 Open this example in Overleaf

This example produces the following output:

Example table of contents produced in LaTeX

Change the title of the table of contents

The default title for the table of contents is Contents ; it can be changed into whatever you need as the following example demonstrates:

Changing name for table of contents in LaTeX

The line \renewcommand*\contentsname{Summary} will write "Summary" instead of the default value. If you are using the package babel for international language support , the aforementioned command must be placed inside the braces of

Instead of English in \captionenglish write the name of the language you set in babel.

Further reading

For more information see:

  • Creating a document in LaTeX
  • Bold, italics and underlining
  • International language support
  • Cross referencing sections and equations
  • Management in a large project
  • Multi-file LaTeX projects
  • Page numbering
  • Single sided and double sided documents
  • Multiple columns
  • Font sizes, families, and styles
  • Documentation Home
  • Learn LaTeX in 30 minutes

Overleaf guides

  • Creating a document in Overleaf
  • Uploading a project
  • Copying a project
  • Creating a project from a template
  • Using the Overleaf project menu
  • Including images in Overleaf
  • Exporting your work from Overleaf
  • Working offline in Overleaf
  • Using Track Changes in Overleaf
  • Using bibliographies in Overleaf
  • Sharing your work with others
  • Using the History feature
  • Debugging Compilation timeout errors
  • How-to guides
  • Guide to Overleaf’s premium features

LaTeX Basics

  • Creating your first LaTeX document
  • Choosing a LaTeX Compiler
  • Paragraphs and new lines

Mathematics

  • Mathematical expressions
  • Subscripts and superscripts
  • Brackets and Parentheses
  • Fractions and Binomials
  • Aligning equations
  • Spacing in math mode
  • Integrals, sums and limits
  • Display style in math mode
  • List of Greek letters and math symbols
  • Mathematical fonts
  • Using the Symbol Palette in Overleaf

Figures and tables

  • Inserting Images
  • Positioning Images and Tables
  • Lists of Tables and Figures
  • Drawing Diagrams Directly in LaTeX
  • TikZ package

References and Citations

  • Bibliography management with bibtex
  • Bibliography management with natbib
  • Bibliography management with biblatex
  • Bibtex bibliography styles
  • Natbib bibliography styles
  • Natbib citation styles
  • Biblatex bibliography styles
  • Biblatex citation styles
  • Multilingual typesetting on Overleaf using polyglossia and fontspec
  • Multilingual typesetting on Overleaf using babel and fontspec
  • Quotations and quotation marks

Document structure

  • Sections and chapters
  • Cross referencing sections, equations and floats
  • Nomenclatures
  • Lengths in L a T e X
  • Headers and footers
  • Paragraph formatting
  • Line breaks and blank spaces
  • Text alignment
  • Page size and margins
  • Code listing
  • Code Highlighting with minted
  • Using colours in LaTeX
  • Margin notes
  • Font typefaces
  • Supporting modern fonts with X Ǝ L a T e X

Presentations

  • Environments

Field specific

  • Theorems and proofs
  • Chemistry formulae
  • Feynman diagrams
  • Molecular orbital diagrams
  • Chess notation
  • Knitting patterns
  • CircuiTikz package
  • Pgfplots package
  • Typesetting exams in LaTeX
  • Attribute Value Matrices

Class files

  • Understanding packages and class files
  • List of packages and class files
  • Writing your own package
  • Writing your own class

Advanced TeX/LaTeX

  • In-depth technical articles on TeX/LaTeX

Contactez-nous

Avez-vous consulté notre Base de connaissances ?

Message envoyé ! Notre équipe va l’examiner et vous répondre par courriel.

Email: 

No Search Results

How to Write a Thesis in LaTeX (Part 2): Page Layout

Part 1 | Part 2 | Part 3 | Part 4 | Part 5

Author: Josh Cassidy (August 2013)

This five-part series of articles uses a combination of video and textual descriptions to teach the basics of writing a thesis using LaTeX. These tutorials were first published on the original ShareLateX blog site during August 2013; consequently, today's editor interface (Overleaf) has changed considerably due to the development of ShareLaTeX and the subsequent merger of ShareLaTeX and Overleaf. However, much of the content is still relevant and teaches you some basic LaTeX—skills and expertise that will apply across all platforms.

In the previous tutorial we looked at setting up the basic structure for a thesis. In this post we'll start customising the page layout using the geometry and fancyhdr packages. We'll continue working on the same project as last time and the first thing we will do is make the document two-sided so that we save paper by printing on both sides. To do this we add the keyword twoside into the document class command:

The geometry package

Next we'll load up the geometry package. To configure the page layout, we enter instructions into the square brackets of this command. The first thing we will do is change the paper size. By default the paper size is set to US letter but we'll change this to a4paper . Next we'll change the width of the text by entering the keyword width followed by an equals sign and a number in millimetres. We can also change the margin sizes at the top and bottom of the page:

You will notice that on even pages the text is positioned slightly closer to the right-hand side and on odd pages it's closer to the left. Or in other words, the inner margin is smaller than the outer:

Thesisgap.png

This is due to us specifying the twoside option but it often confuses people. The reason LaTeX does this is because when you bind the document together, the smaller inner margins will be adjacent and then combined will be a similar size to the larger outer margins. This mean that the three columns of white space you get with a double page spread will be a similar size:

Thesistwoside.png

However, you may also want to compensate for the actual binding. To do this we will use the bindingoffset command and we'll choose to offset it by 6mm:

You can see that the margins have now shifted:

Thesisbinding.png

The fancyhdr package

Next we'll add in headers and footers using the fancyhdr package. First let's load up the package. Immediately after the \usepackage command we need to add the \pagestyle command and enter fancy into the curly brackets:

If we now compile the code you will see that a header has been added to all the pages except the title page, the contents page and the first page of each new chapter. By default, the headers all contain the chapter and section titles:

Thesisbasicfancy.png

If you're happy with this layout you can leave it like this. However, I'm going to show you how you can customise it using two commands provided by the fancyhdr package: \fancyhead and \fancyfoot . The standard format for these commands is the command followed by square brackets and then curly brackets:

In the curly brackets we enter the text we want and in the square brackets we specify which parts of the header we want that text printed in. The fancyhdr package lets us add things in the left (L), right (R) and centre (C) of the header or footer and also lets us specify a different arrangement depending on whether its on an odd (O) or even (E) page. Here's an example of how we might customise our headers and footers:

Here's the meaning of the various commands used in the above LaTeX fragment:

  • In the first line we've entered a blank \fancyhead command which clears all the header fields.
  • In the second line we've told LaTeX that we want the text "Thesis title" on the right-hand side of the header for the odd pages and the left for even pages.
  • The third line clears the footer fields using a blank \fancyfoot command.
  • The fourth line makes the page number appear on the left of the footer for an even page and the right for an odd. The \thepage command returns the page number of the page it's used on.
  • The \thechapter command in line five is similar to \thepage but, of course, typeset the chapter number.
  • Lines five and six add some text about the chapter and author into the footer again in different places depending on whether the page is odd or even.

Now if we compile the document with this code in we can see the headers and footers have been added in:

Thesisheader.png

Before moving on I should briefly introduce you to two more commands that you may find helpful when customising your headers and footers. The \leftmark and \rightmark commands. Here's an example of what the \leftmark command produces:

Thesisleftmark.png

And an example of what the \rightmark command produces:

Thesisrightmark.png

To change the thickness of the lines in the headers and footers we use this code entering a size in points:

I recommend you keep it fairly small to keep it looking sensible.

Finally I want to mention the \pagestyle command. If we have a page that we want completely clear of headers and footers, we can use this command entering the the keyword empty in as an argument; for example:

If we want a page with no headers or footers except for a simple page number at the bottom we would use the keyword plain . However you need to be aware that using this command changes the page style for all the pages following the command. Therefore we need to turn the page style back to fancy as soon as we want the headers back.

This concludes our discussion on page layout. In the next post we'll look at using images and tables.

All articles in this series

  • Part 1: Basic Structure ;
  • Part 2: Page Layout ;
  • Part 3: Figures, Subfigures and Tables ;
  • Part 4: Bibliographies with BibLaTeX ;
  • Part 5: Customising Your Title Page and Abstract .
  • Documentation Home
  • Learn LaTeX in 30 minutes

Overleaf guides

  • Creating a document in Overleaf
  • Uploading a project
  • Copying a project
  • Creating a project from a template
  • Using the Overleaf project menu
  • Including images in Overleaf
  • Exporting your work from Overleaf
  • Working offline in Overleaf
  • Using Track Changes in Overleaf
  • Using bibliographies in Overleaf
  • Sharing your work with others
  • Using the History feature
  • Debugging Compilation timeout errors
  • How-to guides
  • Guide to Overleaf’s premium features

LaTeX Basics

  • Creating your first LaTeX document
  • Choosing a LaTeX Compiler
  • Paragraphs and new lines
  • Bold, italics and underlining

Mathematics

  • Mathematical expressions
  • Subscripts and superscripts
  • Brackets and Parentheses
  • Fractions and Binomials
  • Aligning equations
  • Spacing in math mode
  • Integrals, sums and limits
  • Display style in math mode
  • List of Greek letters and math symbols
  • Mathematical fonts
  • Using the Symbol Palette in Overleaf

Figures and tables

  • Inserting Images
  • Positioning Images and Tables
  • Lists of Tables and Figures
  • Drawing Diagrams Directly in LaTeX
  • TikZ package

References and Citations

  • Bibliography management with bibtex
  • Bibliography management with natbib
  • Bibliography management with biblatex
  • Bibtex bibliography styles
  • Natbib bibliography styles
  • Natbib citation styles
  • Biblatex bibliography styles
  • Biblatex citation styles
  • Multilingual typesetting on Overleaf using polyglossia and fontspec
  • Multilingual typesetting on Overleaf using babel and fontspec
  • International language support
  • Quotations and quotation marks

Document structure

  • Sections and chapters
  • Table of contents
  • Cross referencing sections, equations and floats
  • Nomenclatures
  • Management in a large project
  • Multi-file LaTeX projects
  • Lengths in L a T e X
  • Headers and footers
  • Page numbering
  • Paragraph formatting
  • Line breaks and blank spaces
  • Text alignment
  • Page size and margins
  • Single sided and double sided documents
  • Multiple columns
  • Code listing
  • Code Highlighting with minted
  • Using colours in LaTeX
  • Margin notes
  • Font sizes, families, and styles
  • Font typefaces
  • Supporting modern fonts with X Ǝ L a T e X

Presentations

  • Environments

Field specific

  • Theorems and proofs
  • Chemistry formulae
  • Feynman diagrams
  • Molecular orbital diagrams
  • Chess notation
  • Knitting patterns
  • CircuiTikz package
  • Pgfplots package
  • Typesetting exams in LaTeX
  • Attribute Value Matrices

Class files

  • Understanding packages and class files
  • List of packages and class files
  • Writing your own package
  • Writing your own class

Advanced TeX/LaTeX

  • In-depth technical articles on TeX/LaTeX

Get in touch

Have you checked our knowledge base ?

Message sent! Our team will review it and reply by email.

Email: 

IMAGES

  1. Latex Table of Contents Adjustments

    table of contents latex thesis

  2. How do I format table of contents in my thesis?

    table of contents latex thesis

  3. chapters

    table of contents latex thesis

  4. appendix table of contents latex

    table of contents latex thesis

  5. Table of Contents with Chapter

    table of contents latex thesis

  6. table of contents

    table of contents latex thesis

VIDEO

  1. Write a summary in LaTeX

  2. writing thesis with Emacs+AucTex

  3. National Webinar on How to Write a Mathematics Thesis Using LaTeX by Kongu Engineering College Erode

  4. How to make a fancy table of contents in Latex

  5. IIT Bombay Thesis Template for LaTeX (LaTeX template

  6. How to write a beautiful PhD thesis using latex, Part-I

COMMENTS

  1. Table of contents

    Introduction. To create the table of contents is straightforward, the command \tableofcontents does the job. Sections, subsections and chapters are included in the table of contents. To manually add entries, for example when you want an unnumbered section, use the command \addcontentsline as shown in the following example:

  2. Table of contents for thesis

    It provides lots of commands to modify the table of contents (and the list of figures, the list of tables, and similar lists). The following MWE illustrates the usage of the package, using some of the criteria outlined in your posting: \documentclass{book} \usepackage{tocloft} \renewcommand\contentsname{Table of Contents}

  3. table of contents

    The line 'CHAPTER Page' has to appear on every page of the ToC. Same with the line 'Figure Page' for the LoF and 'TABLE Page' for the LoT; Single spacing between chapter and its section but double spacing between chapters. If the title is more than one line long, it should follow the format in Figure 2.1, i.e there are spaces before 1884.

  4. How to customize Table of contents in thesis

    Likewise, a label Page No. above the list of page numbers (in a table of contents) is stating the obvious and is redundant; my guess is that it is rather a comment addressing the prospective author of the thesis. Ask your fellow-students, the officers in the dean's office or in the administration for a ready-made LaTeX-template for theses.

  5. How to Write a Thesis in LaTeX (Part 1): Basic Structure

    The preamble. In this example, the main.tex file is the root document and is the .tex file that will draw the whole document together. The first thing we need to choose is a document class. The article class isn't designed for writing long documents (such as a thesis) so we'll choose the report class, but we could also choose the book class.. We can also change the font size by adding square ...

  6. LaTeX table of contents, list of figures/tables and some ...

    Creating content lists in LaTeX documents is straight forward. Typing these three commands is sufficient to produce a toc, lof, and lot. To produce the lists, the document has to be typeset twice. The first iteration collects all headings and captions and writes them to meta files (*.toc, *.lof, *.lot).

  7. Basic thesis template

    This Thesis LaTeX template is an ideal starting point for writing your PhD thesis, masters dissertation or final year project. The style is appropriate for most universities, and can be easily customised. This LaTeX template includes a title page, a declaration, an abstract, acknowledgements, table of contents, list of figures/tables, a ...

  8. Writing a thesis in LaTeX

    The following article summarizes the most important aspects of writing a thesis in LaTeX, providing you with a document skeleton (at the end) and lots of additional tips and tricks. Document class. The first choice in most cases will be the report document class: 1. \documentclass[options]{report} See here for a complete list of options.

  9. PDF Writing a thesis with LaTeX

    Managing a complex document, such as a book or a thesis, can be complicated and so it is advisable to divide it into several files. L. A. TEX lets you work with several files, but a main file should control them with \include or \input com- mands. On the one hand, the \input{filename} command can be used to call a file.

  10. Generate a table of contents in LaTeX

    Table of contents. Generating a table of contents can be done with a few simple commands. LaTeX will use the section headings to create the table of contents and there are commands to create a list of figures and a list of tables as well. I will give a small example code to create a table of contents first: \documentclass{article}

  11. table of contents

    The second instance of pdflatex is only needed here to ensure the table of contents and the PDF bookmarks are up-to-date. This produces the symbol list: The list of symbols is automatically added to the table of contents: You can change the title using the title key: \printunsrtglossary[type=symbols,style=long,title={List of Symbols}]

  12. How to make 'appendix' appear in toc in Latex?

    For my thesis, I did the following: \appendix \addcontentsline{toc}{section}{Appendix~\ref{app:scripts}: Training Scripts} \section*{Sample Training Scripts} \label{app:scripts} Blah blah appendix content blah blah blah. ... it messes up the formatting of the table of contents. So instead, I've just defined a new sectioning command that prints ...

  13. Add Front Matter to TOC (Table of Contents) in a Thesis

    Add Front Matter to TOC (Table of Contents) in a Thesis. Postby Ry J » Sat Jan 23, 2010 1:02 am. I have been working with the "report" class for writing my masters thesis. There are are 3 small (Chapter*)'s for acknowledgments and and such before the first chapter that are numbered with roman numerals and do not show up in the TOC.

  14. latex

    This is for my master thesis. I'm using the book document class, because I don't like memoir defaults. If I use \chapter*, then LaTeX remove the chapter from the ToC. But I'm required to have those as well in the ToC. Furthermore, the headings (fancy) are not changed with \chapter*. The overall structure of the thesis is:

  15. Template for a Masters or Doctoral Thesis

    Abstract. This LaTeX template is used by many universities as the basis for thesis and dissertation submissions, and is a great way to get started if you haven't been provided with a specific version from your department. This version of the template is provided by Vel at LaTeXTemplates.com, and is already loaded in Overleaf so you can start ...

  16. How to Write a Thesis in LaTeX (Part 3): Figures, Subfigures ...

    Now if we add a \listoffigures command just after the table of contents, LaTeX will generate a list of all the figure used in the thesis and inform us where each can be found: Tables. Now lets talk about tables. When writing a thesis you should enclose all your tables in the table environment. Here's a basic example:

  17. How do I format table of contents in my thesis?

    1. To get the sections in front of the main text included you either have to add them to the TOC manually \addcontentsline{file}{sec_unit}{entry}, here file =toc, or you divide your document in 3 parts using. ... This will automatically include the chapters/sections in between \frontmatter and \mainmatter in the TOC without numbering them.

  18. How to Write a Thesis in LaTeX (Part 5): Customising Your ...

    In the previous post we looked at adding a bibliography to our thesis using the biblatex package.In this, the final post of the series, we're going to look at customising some of the opening pages. In the first video we made a rather makeshift title page using the \maketitle command and by using an \includegraphics command in the \title command. Although this works, it doesn't give us as much ...

  19. Dissertation Table of Contents in Word

    Right-click the style that says "Heading 1.". Select "Update Heading 1 to Match Selection.". Allocate the formatting for each heading throughout your document by highlighting the heading in question and clicking the style you wish to apply. Once that's all set, follow these steps: Add a title to your table of contents.

  20. Order and Components

    Include the heading "TABLE OF CONTENTS" in all capital letters, and center it 2″ below the top of the page. Include one double-spaced line between the heading and the first entry. The table of contents should not contain listings for the pages that precede it, but it must list all parts of the thesis or dissertation that follow it.

  21. Table of contents

    To create the table of contents is straightforward, the command \tableofcontents does the job. Sections, subsections and chapters are included in the table of contents. To manually add entries, for example when you want an unnumbered section, use the command \addcontentsline as shown in the following example: \documentclass{ article ...

  22. How to Write a Thesis in LaTeX (Part 2): Page Layout

    In the first line we've entered a blank \fancyhead command which clears all the header fields. In the second line we've told LaTeX that we want the text "Thesis title" on the right-hand side of the header for the odd pages and the left for even pages. The third line clears the footer fields using a blank \fancyfoot command.

  23. Thesis table of contents

    Following the advice here ( Insert list of figures in the table of contents ), the following adds the ToF and ToT into the contents. \cleardoublepage. \phantomsection. \addcontentsline{toc}{chapter}{\listfigurename} \listoffigures. \cleardoublepage. \phantomsection. \addcontentsline{toc}{chapter}{\listtablename} \listoftables.