Latex Cheat Sheet

ADVERTISEMENT

L
T E X Cheat Sheet
A
Learnetto
Commands in preamble
\begin{center}
Begin centering your table
Font size
and its content.
Large
Style rules in your file.
\documentclass
\tiny
\Large
tiny
Set up columns (c) and table
\begin{tabular}{ |c|c|c| }
LARGE
Class: extra details go into
\documentclass[opt,opt]{class}
\scriptsize
scriptsize
\LARGE
edges between them.
[] and class inside {}.
\footnotesize footnotesize
huge
Get a line over your first
\hline
Font size.
\huge
10,11,12pt
small
\small
table row.
Huge
Example paper size.
letterpaper, a4paper
normalsize
\normalsize
Data used to fill in every cell
A & B & C \\
\Huge
large
Page orientation.
portrait, landscape
\large
in your first table row.
Most common classes.
book, report, article, letter
Get a line under your first
\hline
table row.
Packages
Justification
D & E & F \\
Data used to fill in every cell
Example packages:
in your second table row.
Use multiple (x) columns:
\begin{center}
\centering
\usepackage{multicol}
Get a line under your second
\hline
\begin{flushleft}
\raggedright
\begin{multicols}{x}.
table row.
Use L
A
T E X symbol font.
\usepackage{latexsym}
\begin{flushright}
\raggedleft
Enter this command to finish
\end{tabular}
Set spacing of your text.
\usepackage{setspace}
your table.
Add this command under
\onehalfspace
Comments
Enter this command to finish
\end{center}
the set space package to set
having a centered table.
your spacing to 1.5.
Put % before your text to make it a comment.
Get font encodings.
\usepackage[utf8]{inputenc}
Mathematical expressions
\usepackage[french]{babel}
Set language in [].
Insert packages before \begin{document}.
Lists
Place equation between dollar signs ($) or
Title & abstract
\begin{equation}
list type
command
result
Author.
a=b+c-d
\author{name}
\begin{itemize}
Title.
\end{equation}
\title{title}
\item
to get
Date.
\date{date}
• Thing 1
Thing 1
unordered list
Abstract.
\abstract{abstract content}
• Thing 2
\item
a = b + c
d
(1)
Thing 2
Header, footer, table of contents
\end{itemize}
Empty header, footer and no
\pagestyle{empty}
Images
page numbers.
\begin{enumerate}
Default style with empty header
\pagestyle{plain}
To insert image:
\item
and the footer with page numbers.
\begin{figure}[ht]
1. Thing 1
Thing 1
ordered list
\pagestyle{myheadings}
Empty footer, the header with
\includegraphics[width=.5in]{imagename.jpg}
2. Thing 2
\item
page number on right side on even
\caption{The (optional) caption goes here.}
Thing 2
pages and on left side on odd pages.
\end{figure}
\end{enumerate}
Table of contents.
Omit [width=.5in] if you want the image to be full-sized.
\tableofcontents
Text formatting
Acknowledgements
Simple tables
Text decorations
To get the following table:
The document template and some of the information used has
A
B
C
Your text can be italics (\textit{italics}), boldface
been created by Dave Richeson, Dickinson College,
(\textbf{boldface}), underlined (\underline{underlined}).
D
E
F

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go