Professional Documents
Culture Documents
Title Pages Abstracts and Table of Contents in Latex
Title Pages Abstracts and Table of Contents in Latex
Spring 2017
Kyle Woerner, k w@mit.edu
Michael Benjamin, mikerb@mit.edu
Henrik Schmidt, henrik@mit.edu
Department of Mechanical Engineering
MIT, Cambridge MA 02139
3 Title Pages 6
4 Abstracts 6
5 Tables of Contents 7
6 Bonus 7
6.1 Super Bonus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1
2
1 Overview and Objectives
This lab provides an introduction to using title pages, abstracts, and tables of contents.
1.1 Objectives
When finished with this lab, you will have completed the following objectives:
1.2 Deliverables
You will complete the following deliverables at the completion of this lab:
3
2 Basic LaTeX References
This section is provided for your easy of reference only. You may proceed to the next section.
1. https://en.wikibooks.org/wiki/LaTeX/
2. http://latex.wikia.com/wiki/Main_Page
3. https://www.sharelatex.com/
Additionally, you may find the following book helpful for more advanced concepts:
• Tex Unbound: Latex & Tex Strategies for Fonts, Graphics, & More: LaTex and TeX Strategies
for Fonts, Graphics, and More by Alan Hoenig (1998-01-01); Publisher: Oxford University
Press USA; ASIN: B01K0SZJOS.
2. edit the file and insert the basic LaTeX document structure. Save the file frequently.
Listing 1: LaTeX File Structure.
0 \documentclass[onecolumn,letterpaper,11pt]{article}
1 % Insert any packages, environments, counters, etc. here
2 \begin{document}
3 % Insert your document contents here
4 Hello world!
5 \end{document}
3. compile the LaTeX document (command line sequence, makefile, then using Auctex shortcuts)
4
(a) compile from the console using a file named myfile.tex
(b) compile and open from the console for a makefile named ”makefile”
$$ make pdfo
.SILENT:
LATEX = pdflatex
PAPER = myfile #name of main file without ‘‘.tex’’
main: $(PNGFILES)
$(LATEX) $(PAPER)
bibtex $(PAPER) # if using a bibliography
$(LATEX) $(PAPER)
(c) from the emacs editor with Auctex installed (Section ??), use either of the following
shortcuts:
C+c C+c <RETURN> (<- this compiles; note, will need to run multiple times)
# OR #
C+c C+a <RETURN> (<- this compiles and opens)
4. open the resulting PDF (tip: keeping the PDF file open next to your editor allows for quickly
viewing changes after each compile. Most editors will refresh with the current view and
location of the document. If using Mac, consider using the Skim PDF viewer if Preview
returns you to the beginning of the document after each compilation.)
5
3 Title Pages
Title pages are used to present your document to the reader with appropriate yet succinct information.
We could of course hard code a beautiful title page, but that is often unnecessary. Two more useful
alternatives are to 1) use the built-in latex title page with the \maketitle command or 2) create our
own template that we populate for each document. Use the \today command to use the date of
compiling.
Exercise:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_example_1.pdf
Solution:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_example_1.tex
Recreate this more complex example using your name, title, and other information.
Exercise:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_exercise_MIT_title_page.pdf
Solution:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_exercise_MIT_title_page.tex
4 Abstracts
Abstracts are used to succinctly describe your paper. They are often limited to a specific number of
words for journals and theses. Your abstract may be placed on the title page or on its own page by
using a \newpage or \clearpage command. Here is an example abstract:
Abstract
Write your abstract between the begin and end commands. You may change the default
heading of “Abstract” to something else (e.g., “Executive Summary”) using:
\renewcommand{\abstractname}{Executive Summary}.
6
\begin{abstract}
Write your abstract between the begin and end commands.
You may change the default heading of ‘‘Abstract’’ to something
else (e.g., ‘‘Executive Summary’’)
using:\\ \renewcommand{\abstractname}{Executive Summary}.
\end{abstract}
5 Tables of Contents
A table of contents is easy to insert. LATEX creates the table of contents automatically based on
the sections, subsections, etc. that are found within the document. In order to properly compile,
pdflatex must be run at least twice. (Teaser: If using Auctex, this is as easy as C-c + C-a.)
Exercise:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_exercise_toc.pdf
Solution:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_exercise_toc.tex
6 Bonus
Bonus: Reconstruct the following document. Note that list of figures and list of tables work just
like a table of contents except they look for figures and tables, respectively. You will need to paste
your solutions to the figures/tables bonus, the abstract/title example, and the table of contents
example. Hint: this is simply a copy-and-paste of exercises you have already done plus two lines:
\listoffigures and \listoftables.
Exercise:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_exercise_bonus.pdf
Solution:
http://oceanai.mit.edu/k_w/latex_lab/lab_5_exercise_bonus.tex
7
Solution: http://oceanai.mit.edu/k_w/latex_lab/lab_5_exercise_super_bonus.tex