Show Menu

latex Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Paragraphs and new lines

New Paragraph
Paragraph Indent­ation
\setle­ngt­h{­\par­ind­ent­}{1­0ex­}...\par \noindent
Paragraph Alignment
center, flushleft and flushright
This is the text in first paragraph.
This is the text in second paragraph.

``LaTeX is a document prepar­ation system and document markup

This is the text in first paragraph. This is the text in first
\noindent %The next paragraph is not indented
This is the text in second paragraph.

Creating a document in LaTeX

\docum­ent­cla­ss{­art­icle} \begin­{do­cument} ...\en­d{d­ocu­ment}
The preamble of a document
In the preamble you define the type of document you are writing, the language and several other elements.
\title­{First document} This is the title
\begin­{ti­tle­page} \end{t­itl­epage}
This declares an enviro­nment, a block of code with a specific behaviour depending on its type. In this case whatever you include in this titlepage enviro­nment will appear in the first page of your document.
\docum­ent­cla­ss[­12pt, letter­paper, twosid­e]{­art­icle}

\title­{First document}
\autho­r{H­ubert Farnsworth \thank­s{f­unded by the ShareLaTeX team}}
\date{­Feb­ruary 2014}



In this document some extra packages and parameters
were added. There is a encoding package
an a pagesize and fontsize parame­ters.


Basic format­ting: abstract



This line will start a second Paragraph. And I can
brake\\ the lines \\ and continue in a new line.



article report book letter slides beamer

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi