Structure
Richard Feynman managed to write about all of modern physics using only three levels of hierarchy. If you need more, consider restructuring.
Sections
Latex provides three levels of hierarchy by default. Sections, subsections and subsubsections.
\section{A Section}
\subsection{This is a subsection}
\subsubsection{This is a subsubsection}

Table of Contents
Adding a table of contents is as simple as adding the line \tableofcontents
. It is usually added after the \maketitle
command so that it appears at the front of your document.
\begin{document}
\maketitle
\tableofcontents

New Pages
If at any point you want to force a new page, simply use the command \newpage
This could for example be used twice before the contents page to force it onto page 3.
Footnotes
Footnotes are useful for providing reference to external sources. Latex will automatically number the footnote and place the text at the bottom of the page.
This information \footnote{An interesting book I read} is from an interesting book.
This factoid is from a web site. \footnote{www.google.com}.
Abstract
An abstract appears at the start of a technical paper and summarised the entirety of the article in a few paragraphs. To include an abstract, add the following code under the \maketitle
command.
\begin{abstract}
Here is where I would say what is in this document.
\end{abstract}

Organising Large Documents
For large documents, it may be inconvenient to separate out the sections. For example, you may want a separate folder for each chapter. To do this, create a new folder called chapter1 using the file panel on the left hand side. Create a file called chapter1.tex in that folder

To include the contents of chapter1.tex in our document, we need to use the import package. Include the following code in the packages at the start of the document
\usepackage{import}
To import a file, we use the following syntax at the point where we want to insert the contents
\import{chapter1/}{chapter1.tex}
The first set of braces contains the path of the folder and the second the name of the file.
Last updated
Was this helpful?