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

home | writing | TIL | now | about

Writing a thesis in latex.

This article is a guide to constructing a decent parent file for a thesis or dissertation compiled in Latex. The specific details implemented here, and included in the example files, are those set out by the guidelines for submission to the University of Nottingham, but can be easily amended to suit any sensible requirements.

Considerable attention has been paid to presenting the final document as a PDF file, which keeps the file size manageable (compared to postscript) and allows groovy add-ons such as hyperlinks and back-referencing. However, several hacks are required to attain good functionality from your PDF file and these can give the latex code a mysterious (and messy) appearance in places. While I highly recommend the inclusion of the PDF-related commands, they are not strictly necessary and can be ignored especially if you are new to Latex.

Note for Windows users

The code outlined below was designed and implemented on the unix system at Nottingham. For those of you unfortunate enough to be running a Windows box, a number of problems may arise when using the below code:

First off, not all the packages used will be present and will need to be installed. Probably the easiest way to do this is to google the package name with the extension .sty and save this file in the C:\VTEX\l2e\\ directory of your machine. Note that for the natbib package, you will also need to download the relevant .bst file, which in this case is unsrtnat.bst .

Also, many of the packages that are installed locally may need updating. For instance, the computers I have tested on both have old versions of the geometry and caption packages, which cause Latex to return errors. To resolve these problems, either download the latest versions, or remove the includefoot option from the geometry package and set the bottom margin to 1.4in.

Also, the code for compiling to PDF does not work so well in Windows, and so it is recommended that Windows users use the template without PDF code.

Requirements

The guidelines for theses to be submitted to the University of Nottingham specify that:

  • the document should be presented on single-sided a4 paper and typeset in a double-spaced size 10-12 font;
  • the left-hand margin should be at least 1.5 inches (4cm) to allow for binding;
  • the other three margins should be at least 1 inch (2.5cm).

Other settings such as the way chapter headings are formatted, and whether headers are included, are not specified and are up to the user. In this case, we’ll install headers and tinker with the chapter formatting.

Template files

Here are the template files which this page explains:

  • thesis_without_pdfcode.tex
  • thesis_with_pdfcode.tex

The appearance of both these files on the printed page will be identical; however after compilation into PDF (see the section below) and opening in Adobe Acrobat (or a similar PDF reader), the advantages that come with the PDF format will be apparent.

  • thesis_without_pdfcode.pdf
  • thesis_with_pdfcode.pdf

The rest of this page is devoted to explaining the code in these files.

Document structure

The document begins in a standard and entirely self-explanatory manner.

Preamble: essential packages

Next, the essential packages are loaded:

where the geometry package has been loaded to allow the margins to be set in a neat and consistent way. The non-obvious option includefoot ensures that the footer (which only contains the pagenumber) is included in the page and is thus 1 inch above the bottom of the page. Note that this option is only available in recent versions of the package: if you’re using an old version and can’t/won’t upgrade, then remove the offending option and extend the bottom margin to 1.4in. headheight=13.6pt is included due to to ensure compatibility with the fancyhdr package (and is not required if you don’t use the fancyhdr package). Also quite essential is the natbib package:

where the various options ensure that references appear in the document as:

…boiled dog can do maths claims experimenter [10,12,15-18].

Alternative referencing styles are easily implemented, see the natbib help file for more details. In fact, to use the natbib package, you’ll have to read at least a few lines of the help file so you understand the difference between \citet and \citep , and I insist you do that now.

Preamble: custom captions (optional)

We now set the figure captions to be elegant and dignified:

Note that early versions of this package don’t support the margin= and tableposition= options; in this case, these trimmings will have to be ignored.

Preamble: custom fonts (optional)

You can also choose an alternative font for both the text and the mathematical characters. This can be achieved by:

Aside from mathpazo , there are several other fonts available, such as chancery , palatino and times (all loaded in the same way).

Preamble: fancy headers (optional)

Feeling a little devil-may-care? If so, you’ll probably want to install some elegant headers along each page. This is easily achieved through the fancyhdr package:

The final complicated-looking three lines simply ensure that the headings for appendices are formatted correctly. (Without these lines, what should read “Appendix A” is set as “Chapter A”.)

Preamble: customised chapter/section headings (optional)

We now make use of several customisation options that are bundled with the sectsty package.

These alter the appearance of the first page of each chapter to have a centred title, with the word “chapter” set in small capitals immediately above. Feel free to employ your own individual and highly refined tastes here in choosing your own chapter/section settings.

Preamble: pdf options (optional)

If you want to publish your thesis on the internet, or even just to email it to someone, then you’ll want to store it in the ubiquitous PDF format. Doing so offers some neat facilities, such as hyperlinking, which are implemented by the hyperref package:

There are various other options you can pass to your favourite PDF reader via the \hypersetup command, such as pdftitle , pdfauthor and pdfsubject ; however, they’re not really essential. Note that the hyperlink colours have all been set to black for consistent printing. Should you want to distribute your thesis over the web, then it would be advisable to set these colours to red or something similarly vibrant and exciting.

Things get a little messy now as a hack is required to ensure the hyperlinks actually jump to the right place.

No need to worry about this code, let’s just move straight on.

Preamble: page layout

We now set various parameters to alter the general page layout:

The first two of these commands alter the paragraph formatting so that new paragraphs are not indented but separated from the previous one by a small amount of whitespace; the third sets the line spacing. The sharp-eyed among you will notice the discrepancy between our chosen line-spacing and that dictated by the university guidelines. However, no matter how poor your eyesight is, you’ll quickly appreciate that true double line-spacing (set with \renewcommand(\baselinestretch}{2} ) looks rubbish. In addition, Nottingham University are perfectly happy to accept theses set with the above line-spacing, which is more pleasing to the eye.

Some final settings:

Set which chapters to include when Latex is next run. The advantage of this method is that all your cross-references are remembered and Latex does not spit out loads of warnings.

Main matter

We now begin the document in earnest and define a suitable title:

followed by a dedication:

We now construct an abstract:

some acknowledgements:

and a contents page:

Now, we alter the pagenumbering to arabic and point to the relevant chapter files:

All your chapter files should be included here; to save time when editing, use the \includeonly command to specify which chapters to compile.

Finally, we make sure there is a link to the references section in the table of contents and reference the correct bibiography file (which in this case is called bibliography.bib ).

And there we have it: a complete thesis parent file that not only looks good on the printed page, but is fully functional and hyperlinked in PDF format.

Compiling to PDF

Whether you’ve included all the red PDF commands or not, you can convert your TEX file to PDF by running (in unix):

The additional argument to ps2pdf is required as the default paper size is US Letter. Note that you will probably need to bibtex your thesis file before running latex for the final time.

For Windows, first open a command window by going Start->Run and entering cmd . Provided MiKTeX and GhostScript are correctly installed then the necessary commands are:

The syntax for ps2pdf is slightly different in Windows compared to Unix - and note that the output pdf filename MUST be specified, else the ps file is overwritten and corrupted.

Something wrong? Suggest an improvement or add a comment (see article history ) Tagged with: latex Filed in: guides

Previous: Tutorial: the complex Ginzburg-Landau equation Next: Following log files with tail -f

Copyright © 2005-2024 David Winterbottom Content licensed under CC BY-NC-SA 4.0 .

University of Rhode Island

  • Future Students
  • Parents and Families

College of Engineering

  • Research and Facilities
  • Departments

Guide to Writing Your Thesis in LaTeX

The bibliography and list of references.

The Graduate School requires a Bibliography which includes all the literature cited for the complete thesis or dissertation. Quoting from the Graduate School’s Guidelines for the Format of Theses and Dissertations :

“Every thesis in Standard Format must contain a Bibliography which lists all the sources used or consulted in writing the entire thesis and is placed at the very end of the work. The complete citations are arranged alphabetically by last name of the author. Individual citations are not numbered. No abbreviations in titles of published works will be accepted. The full title of a book, journal, website, proceedings, or any other published work must be italicized or underlined. Citations must follow standards set by the style manual that the student is using. The bibliography for URI theses is not broken into categories.”

The List of References is not required by the Graduate School, but is the style commonly used in Engineering, Mathematics, and many of the Sciences. It consists of a numbered list of the sources used or consulted in writing the thesis in the order that they are referenced in the text. There can be either one List of References for the entire thesis, or a List of References at the end of each chapter.

Both the Bibliography and the List of References will be generated by the urithesis LaTeX class. All you need to do is add information about your sources to the references.bib file, which is a database containing all of the necessary information about the references, then cite the reference in your thesis using the \cite{} command.

Generating the Bibliography and References

The bibliography and list of references are generated by running BibTeX. To generate the bibliography, load the file thesisbib.tex into your editor, then run BibTeX on it.

If each chapter has its own list of references, you will need to run BibTeX on each chapter to update its list of references. If there is one list of references for the whole thesis (because you used the oneref option, you will only need to run BibTeX on the top level file thesis.tex .

How to Add a Bibliography Entry

When we want to refer to a source in the thesis, we place an entry for that source in the file references.bib , then cite the source in the thesis with the \cite{LABEL} command. The syntax for an entry in the references.bib file is of the form:

ENTRYTYPE is the type of bibliographic entry such as Book , Article , or TechReport , that this entry describes. At the end of this page is a list of all possible entry types .

LABEL is a unique string that is used to refer to this entry in the body of the thesis when using the \cite{LABEL} command.

The FIELDNAMEn entries are the fields that describe this entry, (ie. author, title, pages, year, etc.). Each entry type has certain required fields and optional fields. See the list of all entry types for a description of the available fields.

As an example, suppose we have a paper from a conference proceedings that we want to cite. First we make an entry in the our references.bib file of the form:

We then cite this source in the text of our thesis with the command \cite{re:toolan:as03} . This will generate a Bibliography entry that looks something like:

and a List of References entry that looks something like:

Types of List of References

The Graduate School requires that the bibliography is always at the end of the thesis and sorted alphabetically by author, therefore there is no options that affect it. The list of references is optional, therefore there are a few different ways that it can created.

By default a separate list of references appears at the end of each chapter, and are sorted by the order that they are cited in that chapter. The option oneref (see options ) will create a single list of references for the whole thesis, which due to the requirements of the Graduate School, will appear after the last chapter and before any appendices.

The option aparefs will cite references using the APA style, which is the last name of the author and year of publication, such as (Toolan, 2006), instead of the default IEEE style, which is a number, such as [1]. This option will also sort the references alphabetically by author, instead of in order of citation. The options oneref and aparefs can be used together to create a single list of references using the APA style.

Supported Bibliography Entry Types

The following is a list of all the entry types that can be used. Click on the desired type to see a detailed description of how to use that type.

  • Article – An article from a journal or magazine
  • Book – A book with an explicit publisher
  • InBook – A part of a book, such as a chapter or selected page(s)
  • InCollection – A part of a book having its own title
  • Booklet – Printed and bound works that are not formally published
  • Manual – Technical documentation
  • InProceedings – An article in a conference proceedings
  • Proceedings – The entire proceedings of a conference
  • MastersThesis – A Master’s thesis
  • PhDThesis – A Ph.D. dissertation
  • TechReport – A report published by a school or other institution
  • Unpublished – A document that has not been formally published
  • Electronic – An internet reference like a web page
  • Patent – A patent or patent application
  • Periodical – A magazine or journal
  • Standard – Formally published standard
  • Misc – For use when nothing else fits

Articles that have not yet been published can be handled as a misc type with a note. Sometimes it is desirable to put extra information into the month field such as the day, or additional months. This is accomplished by using the BIBTEX concatenation operator “#“:

Example .bib using this type:

Books may have authors, editors or both. Example .bib using this type:

Inbook is used to reference a part of a book, such as a chapter or selected page(s). The type field can be used to override the word chapter (for which IEEE uses the abbreviation “ch.”) when the book uses parts, sections, etc., instead of chapters

Incollection is used to reference part of a book having its own title. Like book , incollection supports the series, chapter and pages fields. Also, the type field can be used to override the word chapter.

Booklet is used for printed and bound works that are not formally published. A primary difference between booklet and unpublished is that the former is/was distributed by some means. Booklet is rarely used in bibliographies.

Technical documentation is handled by the manual entry type.

References of papers in conference proceedings are handled by the inproceedings or conference entry type. These two types are functionally identical and can be used interchangeably. Example .bib using this type:

It is rare to need to reference an entire conference proceedings, but, if necessary, the proceedings entry type can be used to do so.

Master’s (or minor) theses can be handled with the mastersthesis entry type. The optional type field can be used to override the words “Master’s thesis” if a different designation is desired:

The phdthesis entry type is used for Ph.D. dissertations (major theses). Like mastersthesis , the type field can be used to override the default designation. Example .bib using this type:

Techreport is used for technical reports. The optional type field can be used to override the default designation “Tech. Rep.” Example .bib using this type:

The unpublished entry type is used for documents that have not been formally published. IEEE typically just uses “unpublished” for the required note field.

The electronic entry type is for internet references. IEEE formats electronic references differently by not using italics or quotes and separating fields with periods rather than commas. Also, the date is enclosed within parentheses and is placed closer to the title. This is probably done to emphasize that electronic references may not remain valid on the rapidly changing internet. Note also the liberal use of the howpublished field to describe the form or category of the entries. The organization and address fields may also be used. Example .bib using this type:

The nationality field provides a means to handle patents from different countries

The nationality should be capitalized. The assignee and address (of the assignee) fields are not used, however, they are provided. The type field provides a way to override the “patent” description with other patent related descriptions such as “patent application” or “patent request”:

The periodical entry type is used for journals and magazines.

The standard entry type is used for formally published standards. Alternatively, the misc entry type, along with its howpublished field, can be used to create references of standards.

Misc is the most flexible type and can be used when none of the other entry types are applicable. The howpublished field can be used to describe what exactly (or in what form) the reference is (or appears as). Possible applications include technical-report-like entries that lack an institution, white papers and data sheets.

Additional Comments

Because we are effectively creating multiple bibliographies, (one for the actual bibliography, and one for each list of references), the two LATEX commands \bibliographystyle{} and \bibliography{} are not used. They have been redefined to do nothing, and the equivalent of these commands are done automatically when necessary.

When there is a reference that should be included in the bibliography, but does not need to be explicitly referenced in the thesis, use the \nocite{} command. This command works like the \cite{} command, except it does not put the citation in the list of references, only in the bibliography. The \nocite{} command must appear after the first \newchapter{} command, or it will be ignored.

When using the option aparefs , and a citation does not have an author, (such as often occurs with a web page), the key field can be used to specify what to use in the citation instead of the author’s name.

About the Bibliography Format

The bibliography format used by the urithesis class is based on the IEEE format. See the article “How to Use the IEEEtran BIBTEX Style” by Michael Shell for more details.

Banner

Overleaf for LaTeX Theses & Dissertations: Using Templates on Overleaf

  • Using Templates on Overleaf
  • Reference Managers and Overleaf
  • Adding Tables, Images, and Graphs

Start your projects with quality LaTeX templates for journals, theses, dissertations, CVs, resumes, papers, presentations, posters, assignments, letters, project reports, and more.

Getting started

Start with Overleaf templates

Overleaf templates make it easy to get started with all types of projects - from papers and presentations to newsletters, CVs, and much more! It's also a great way to learn LaTeX and produce professional looking projects quickly.

Follow Us for More

New templates are added all the time. Follow us on Twitter for the highlights!

Find templates on Overleaf

Visit our thesis template gallery

how to do thesis in latex

Make your own templates on Overleaf

Upload or create templates for assignments, presentations, theses, posters, and student/faculty journals for your institution. Just create it as a project on Overleaf and use the publish menu.

how to do thesis in latex

Begin Your Work Using the Official 'University' Thesis Template on Overleaf

(If your University has an official thesis template published on Overleaf, you can customize this box accordingly with a link to the template)

Write your thesis using the official ' Name of University goes here ' thesis template

Find your University's template on Overleaf here ( insert link to official LaTeX thesis template on Overleaf Gallery or custom Overleaf institutional portal template page ).

  • << Previous: Home
  • Next: Reference Managers and Overleaf >>
  • Last Updated: May 18, 2021 1:57 PM
  • URL: https://overleaf.libguides.com/Thesis

No Search Results

  • Sections and chapters
  • 1 Introduction
  • 2 Basic example
  • 3 Document sectioning
  • 4.1 Unnumbered sections in the table of contents
  • 5.1 The report class
  • 5.2 The book class
  • 6.1 titlesec commands
  • 7 Further reading

Introduction

Documents usually have some form of “logical structure”: division into chapters, sections, sub-sections etc. to organize their content. LaTeX supports the creation of a document structure and also enables customization of sectioning and numbering. The commands available to organize a document depend on the document class being used, although the simplest form of organization, sectioning, is available in all formats.

Basic example

Let’s begin with a basic example to demonstrate the \section{ section title } command, which marks the beginning of a new section called section title . Section numbering is automatic and can be customized, or disabled.

 Open this example in Overleaf.

This example produces the following output:

Sections and chapters example

Document sectioning

LaTeX can organize, number, and index chapters and sections of document. There are up to 7 levels of depth for defining sections depending on the document class:

Usually, \section is the top-level document command in most documents. However, in reports or books, and similar long documents, this would be \chapter or \part .

Numbered and unnumbered sections

To get an unnumbered chapter, section, subsection, etc. add an asterisk ( * ) at the end of the command, before the opening curly brace. These will not go into the table of contents. Here is our first example (above) but this time using \section* instead of \section :

Example of unnumbered sections

Unnumbered sections in the table of contents

To add an unnumbered section to the table of contents, use the \addcontentsline command like this:

Here is an example using \addcontentsline but see the article Table of contents for further information and examples.

Unnumbered sections in the TOC

Document chapters and sections in a book/report

As mentioned before, \chapter can be used in books and reports.

The report class

Below you can see an example report using text taken the Overleaf article An Introduction to LuaTeX (Part 1): What is it—and what makes it so different?

 Open this example in Overleaf (using lualatex )

This example produces the following output—here we show pages 2–4, where the page images have been overlapped to ease presentation:

A typical LaTeX report

The book class

The following example reproduces text from the report example but with \documentclass{book} , containing parts, chapters, sections, subsections and sub-subsections. If you open the example in Overleaf you should see that sub-subsections produced by \subsubsection are not numbered. That is by design of the book class: if you want to change this behavior, add the following command to your document preamble:

 To see the output, open this example in Overleaf (it uses lualatex )

Customize chapters and sections

You can use the titlesec package to customize chapters, sections and subsections style in an easy way.

 Open this titlesec example in Overleaf.

Titlesecolv2.png

titlesec commands

There are two general commands:

where [<shape>] and [<after-code>] are optional parameters, and:

  • <command> is the sectioning command to be redefined: \part , \chapter , \section , \subsection , \subsubsection , \paragraph or \subparagraph .
  • <shape> is sectioning paragraph shape; possible values are: hang , block , display , runin , leftmargin , rightmargin , drop , wrap and frame .
  • <format> is the format to be applied to the title, label, and text; for example \normalfont\Large\bfseries
  • <label> specify sectioning label.
  • <sep> is the horizontal separation between label and title body and it must be a length and not be empty.
  • <before-code> is code preceding the title body.
  • <after-code> is code following the title body.
  • <left> increases the left margin.
  • <before-sep> is the vertical space before the title.
  • <after-sep> is the separation between title and non-sectioning text.

The starred version of this command ( \titlespacing* ) kills the indentation of the paragraph following the title.

Further reading

For more information see:

  • Creating a document in LaTeX
  • Bold, italics and underlining
  • Table of contents
  • 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
  • titlesec package manual
  • 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
  • International language support
  • Quotations and quotation marks

Document structure

  • 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

Get in touch

Have you checked our knowledge base ?

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

Email: 

COMMENTS

  1. 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 ...

  2. How to write a thesis using LaTeX **full tutorial**

    Get started with LaTeX using Overleaf: https://www.overleaf.com/?utm_source=yt&utm_medium=link&utm_campaign=im22tb. My thanks to Overleaf for sponsoring t...

  3. 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.

  4. Guide to Writing Your Thesis in LaTeX

    Now we will explain how to set things like the title, the author name, and whether it is a masters thesis or a doctoral dissertation. Start by opening the file thesis.tex in your editor. Setting the Class Options. The first line of the file will be: \documentclass{urithesis} This tells LaTeX to use the urithesis document class with all default ...

  5. LibGuides: Overleaf for LaTeX Theses & Dissertations: Home

    BibTeX is a file format used for lists of references for LaTeX documents. Many citation management tools support the ability to export and import lists of references in .bib format. Some reference management tools can generate BibTeX files of your library or folders for use in your LaTeX documents. LaTeX on Wikibooks has a Bibliography ...

  6. A Complete Thesis Writing in LaTeX (Latex Basic Tutorial-25)

    In this lecture, we will learn to format a complete scientific thesis in latex.LaTeX is perfectly suited to write a scientific report, no matter if it is an ...

  7. Guide to Writing Your Thesis in LaTeX

    Step 1: Install LaTeX and a LaTeX Aware Editor. LaTeX is not a word processor, it is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents, but it can be used for almost any form of publishing. LaTeX encourages authors not to worry too much about the appearance of ...

  8. Writing a Thesis in LaTeX

    Overview. This article is a guide to constructing a decent parent file for a thesis or dissertation compiled in Latex. The specific details implemented here, and included in the example files, are those set out by the guidelines for submission to the University of Nottingham, but can be easily amended to suit any sensible requirements.

  9. Writing your MSc/PhD thesis with Latex using Overleaf

    Here Thifhe Bucher explains how simple is moving from Word to Latex to write your MSc and PhD theses using the Overleaf platform. The good thing with Overlea...

  10. Writing and Managing Thesis in LaTeX

    2. In addition to the given suggestions I also prefer to create an own directory for the images and subchapters. Including a chapter then looks like this: \include {./tex/example.tex} I find another hack quite useful: For labels I prepend a short indicator for the kind of label: \label {txt:foobar} is for a label in a paragraph where \label ...

  11. Guide to Writing Your Thesis in LaTeX

    Generating the Bibliography and References. The bibliography and list of references are generated by running BibTeX. To generate the bibliography, load the file thesisbib.tex into your editor, then run BibTeX on it. If each chapter has its own list of references, you will need to run BibTeX on each chapter to update its list of references.

  12. 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.

  13. How to write thesis in latex Overleaf? *2024 Full tutorial*

    #thesis #latextutorialThis is a step-by-step tutorial on writing your thesis using Overleaf, an online collaborative tool using latex. I will review the enti...

  14. Using Templates on Overleaf

    (If your University has an official thesis template published on Overleaf, you can customize this box accordingly with a link to the template) Write your thesis using the official 'Name of University goes here' thesis template Find your University's template on Overleaf here (insert link to official LaTeX thesis template on Overleaf Gallery or custom Overleaf institutional portal template page).

  15. Create a cover for my thesis

    4. Without knowing the class you're using, here's an attempt. & My supervisor's name. The important option for geometry is pass, whereas showframe is just for showing that the cover page is centered on the page. If you already use geometry, just set its options and remove pass.

  16. Sections and chapters

    Document sectioning. LaTeX can organize, number, and index chapters and sections of document. There are up to 7 levels of depth for defining sections depending on the document class: Usually, \section is the top-level document command in most documents. However, in reports or books, and similar long documents, this would be \chapter or \part .