SlideShare a Scribd company logo
1 of 2
Download to read offline
A
L TEX 2ε Cheat Sheet

Document classes
book
Default is two-sided.
report
No part divisions.
article No part or chapter divisions.
letter
Letter (?).
slides
Large sans-serif font.
Used at the very beginning of a document:
documentclass{class}. Use begin{document} to start
contents and end{document} to end the document.

Common documentclass options
10pt/11pt/12pt
letterpaper/a4paper
twocolumn

Font size.
Paper size.
Use two columns.
Set margins for two-sided.

twoside
landscape

Landscape orientation. Must use dvips
-t landscape.
Double-space lines.

draft
Usage: documentclass[opt,opt]{class}.

Packages
fullpage
anysize
multicol

Use 1 inch margins.
Set margins: marginsize{l}{r }{t}{b}.
Use n columns: begin{multicols}{n}.

A
Use L TEX symbol font.
latexsym
Show image: includegraphics[width=x ]{file}.
graphicx
Insert URL: url{http://. . . }.
url
Use before begin{document}. Usage: usepackage{package}

Title
author{text} Author of document.
title{text} Title of document.
date{text}
Date.
These commands go before begin{document}. The
declaration maketitle goes at the top of the document.

Miscellaneous
pagestyle{empty} Empty header, footer and no page numbers.
tableofcontents Add a table of contents here.

Document structure
part{title}
subsubsection{title}
chapter{title}
paragraph{title}
section{title}
subparagraph{title}
subsection{title}
Use setcounter{secnumdepth}{x} suppresses heading
numbers of depth > x, where chapter has depth 0. Use a *, as
in section*{title}, to not number a particular item—these
items will also not appear in the table of contents.

Text environments

Verbatim text

begin{comment}

Comment (not printed). Requires verbatim
package.
begin{quote}
Indented quotation block.
begin{quotation}Like quote with indented paragraphs.
begin{verse}
Quotation block for verse.

begin{verbatim} Verbatim environment.
begin{verbatim*} Spaces are shown as .
verb!text!
Text between the delimiting characters (in
this case ‘!’) is verbatim.

Lists

Justification

begin{enumerate} Numbered list.
begin{itemize}
Bulleted list.
begin{description}Description list.
item text
Add an item.
item[x ] text
Use x instead of normal bullet or number.
Required for descriptions.

Environment
begin{center}
begin{flushleft}
begin{flushright}

References

linespread{x} changes the line spacing by the multiplier x.

Set a marker for cross-reference, often of the
form label{sec:item}.
ref{marker }
Give section/body number of marker.
pageref{marker } Give page number of marker.
footnote{text} Print footnote at bottom of page.
label{marker }

Floating bodies
begin{table}[place]
Add numbered table.
begin{figure}[place] Add numbered figure.
begin{equation}[place] Add numbered equation.
caption{text}
Caption for the body.
The place is a list valid placements for the body. t=top,
h=here, b=bottom, p=separate page, !=place even if ugly.
Captions and label markers should be within the environment.

Text properties

Declaration
centering
raggedright
raggedleft

Miscellaneous

Text-mode symbols
Symbols
&
$
%

&
$
%

...
|
#

_
^{}
~{}

ˆ
˜

ldots
textbar
#

•

§

textbullet
textbackslash
S

Accents
`
o
o
˙
¸
c
Œ
ø


‘o
.o
c c
OE
o
j

´
o
¨
o
o
.
æ
Ø
¡

’o
"o
d o
ae
O
~‘

Font face

‘‘
’’

^o
c o
b o
AE
l
?‘

[[
]]

((
))

˜
o
ˇ
o
oo
˚
a
L

~o
v o
t oo
aa
L

¯
o
˝
o
œ
˚
A
ı

=o
H o
oe
AA
i

Delimiters

Command
Declaration
Effect
textrm{text}
{rmfamily text} Roman family
textsf{text}
{sffamily text} Sans serif family
texttt{text}
{ttfamily text} Typewriter family
textmd{text}
{mdseries text} Medium series
textbf{text}
{bfseries text} Bold series
textup{text}
{upshape text}
Upright shape
textit{text}
{itshape text}
Italic shape
textsl{text}
{slshape text}
Slanted shape
textsc{text}
{scshape text}
Small Caps shape
emph{text}
{em text}
Emphasized
textnormal{text}{normalfont text}Document font
underline{text}
Underline
The command (tttt) form handles spacing better than the
declaration (tttt) form.

ˆ
o
o
¸
o
¯
Æ
l
¿

Font size

Large

tiny
tiny
Large
scriptsize scriptsize
LARGE
footnotesize footnotesize
small
small
huge
normalsize normalsize
large
large
Huge
These are declarations and should be used in the form {small
. . . }, or without braces to affect the entire document.

LARGE

huge

Huge

“ ‘‘
” ’’

{ {
} }

< textless
> textgreater

Dashes
Name
hyphen
en-dash
em-dash

Source
----

Example
X-ray
1–5
Yes—or no?

Usage
In words.
Between numbers.
Punctuation.

Line and page breaks

*
kill
pagebreak
noindent

Begin new line without new paragraph.
Prohibit pagebreak after linebreak.
Don’t print current line.
Start new page.
Do not indent current line.

Miscellaneous
February 11, 2014.
Prints ∼ instead of ~{}, which makes ˜.
Space, disallow linebreak (W.J.~Clinton).
Indicate that the . ends a sentence when following
an uppercase letter.
hspace{l} Horizontal space of length l (Ex: l = 20pt).
vspace{l} Vertical space of length l.
rule{w}{h} Line of width w and height h.
today
$sim$
~
@.
Tabular environments

Citation types

tabbing environment

Full author list and year. (Watson and Crick
1953)
citeA{key}
Full author list. (Watson and Crick)
citeN{key}
Full author list and year. Watson and Crick
(1953)
shortcite{key} Abbreviated author list and year. ?
shortciteA{key} Abbreviated author list. ?
shortciteN{key} Abbreviated author list and year. ?
citeyear{key}
Cite year only. (1953)
All the above have an NP variant without parentheses; Ex.
citeNP.
cite{key}

= Set tab stop.
> Go to tab stop.
Tab stops can be set on “invisible” lines with kill at the end
of the line. Normally  is used to separate lines.

tabular environment
begin{array}[pos]{cols}
begin{tabular}[pos]{cols}
begin{tabular*}{width}[pos]{cols}

tabular column specification
l
c
r
p{width}
@{decl}
|

Left-justified column.

BibTEX entry types

Centered column.
Right-justified column.
Same as parbox[t]{width}.
Insert decl instead of inter-column space.
Inserts a vertical line between columns.

tabular elements
hline
Horizontal line between rows.
cline{x-y} Horizontal line across columns x through y.
multicolumn{n}{cols}{text}
A cell that spans n columns, with cols column
specification.
For inline math, use (...) or $...$. For
use [...] or begin{equation}.
Superscriptx ^{x}
Subscriptx
n
x
frac{x}{y}
y
k=1
√
n
n
x
sqrt[n]{x}
k=1

displayed math,
_{x}
sum_{k=1}^n
prod_{k=1}^n

Math-mode symbols
≥
÷
◦
¬
∀
∃
∩
a
ˆ
β
ζ
ι
µ
ρ
φ
Γ
Ξ
Φ

geq
div
circ
neg
forall
exists
cap
hat a
beta
zeta
iota
mu
rho
phi
Gamma
Xi
Phi

Journal or magazine article.
Book with publisher.
Book without publisher.
Article in conference proceedings.
A part of a book and/or range of pages.
A part of book with its own title.
If nothing else fits.
PhD. thesis.
Proceedings of a conference.
Tech report, usually numbered in series.
Unpublished.

BibTEX fields

Math mode

≤ leq
× times
◦ ^{circ}
∞ infty
⊃ supset
⊂ subset
∪ cup
a dot a
˙
α alpha
epsilon
θ theta
λ lambda
π pi
υ upsilon
ω omega
Λ Lambda
Υ Upsilon

@article
@book
@booklet
@conference
@inbook
@incollection
@misc
@phdthesis
@proceedings
@techreport
@unpublished

= neq
± pm
prime
∧ wedge
∈ in
∈ notin
/
| mid
a bar a
¯
γ gamma
η eta
κ kappa
ν nu
σ sigma
χ chi
∆ Delta
Π Pi
Ψ Psi

≈
·
···
∨
→
⇒
⇔
a
˜
δ
ε
ϑ
ξ
τ
ψ
Θ
Σ
Ω

approx
cdot
cdots
vee
rightarrow
Rightarrow
Leftrightarrow
tilde a
delta
varepsilon
vartheta
xi
tau
psi
Theta
Sigma
Omega

Bibliography and citations
When using BibTEX, you need to run latex, bibtex, and
latex twice more to resolve dependencies.

Address of publisher. Not necessary for major
publishers.
author
Names of authors, of format ....
booktitle
Title of book when part of it is cited.
chapter
Chapter or section number.
edition
Edition of a book.
editor
Names of editors.
institution Sponsoring institution of tech. report.
journal
Journal name.
key
Used for cross ref. when no author.
month
Month published. Use 3-letter abbreviation.
note
Any additional information.
number
Number of journal or magazine.
organization Organization that sponsors a conference.
pages
Page range (2,6,9--12).
publisher
Publisher’s name.
school
Name of school (for thesis).
series
Name of series of books.
title
Title of work.
type
Type of tech. report, ex. “Research Note”.
volume
Volume of a journal or book.
year
Year of publication.
Not all fields need to be filled. See example below.
address

Common BibTEX style files
abbrv
alpha
plain

Standard
Standard
Standard

abstract
apa
unsrt

alpha with abstract
APA
Unsorted

A
The L TEX document should have the following two lines just
before end{document}, where bibfile.bib is the name of the
BibTEX file.

bibliographystyle{plain}
bibliography{bibfile}

BibTEX example
The BibTEX database goes in a file called file.bib, which is
processed with bibtex file.
@String{N = {Na-ture}}
@Article{WC:1953,
author = {James Watson and Francis Crick},
title
= {A structure for Deoxyribose Nucleic Acid},
journal = N,
volume = {171},
pages
= {737},
year
= 1953
}
A
Sample L TEX document
documentclass[11pt]{article}
usepackage{fullpage}
title{Template}
author{Name}
begin{document}
maketitle
section{section}
subsection*{subsection without number}
text textbf{bold text} text. Some math: $2+2=5$
subsection{subsection}
text emph{emphasized text} text. cite{WC:1953}
discovered the structure of DNA.
A table:
begin{table}[!th]
begin{tabular}{|l|c|r|}
hline
first & row & data 
second & row & data 
hline
end{tabular}
caption{This is the caption}
label{ex:table}
end{table}
The table is numbered ref{ex:table}.
end{document}

Copyright c 2012 Winston Chang
http://www.stdout.org/∼winston/latex/

More Related Content

What's hot

Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...
Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...
Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...Databricks
 
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...Ceph Community
 
Relational database
Relational database Relational database
Relational database Megha Sharma
 
Oracle Data Protection - 2. část
Oracle Data Protection - 2. částOracle Data Protection - 2. část
Oracle Data Protection - 2. částMarketingArrowECS_CZ
 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
3.1 tuple relational_calculus
3.1 tuple relational_calculus3.1 tuple relational_calculus
3.1 tuple relational_calculusUtkarsh De
 
ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...
ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...
ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...XinliShang1
 
DB2 for z/O S Data Sharing
DB2 for z/O S  Data  SharingDB2 for z/O S  Data  Sharing
DB2 for z/O S Data SharingSurekha Parekh
 
Matrix multiplication, inverse
Matrix multiplication, inverseMatrix multiplication, inverse
Matrix multiplication, inversePrasanth George
 
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...Simplilearn
 
HBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUpon
HBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUponHBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUpon
HBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUponCloudera, Inc.
 
Scope - Static and Dynamic
Scope - Static and DynamicScope - Static and Dynamic
Scope - Static and DynamicSneh Pahilwani
 
Red hat ceph storage customer presentation
Red hat ceph storage customer presentationRed hat ceph storage customer presentation
Red hat ceph storage customer presentationRodrigo Missiaggia
 
Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems
Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems
Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems Jiaheng Lu
 
Lesson 16: Inverse Trigonometric Functions (slides)
Lesson 16: Inverse Trigonometric Functions (slides)Lesson 16: Inverse Trigonometric Functions (slides)
Lesson 16: Inverse Trigonometric Functions (slides)Matthew Leingang
 
Facebook's TAO & Unicorn data storage and search platforms
Facebook's TAO & Unicorn data storage and search platformsFacebook's TAO & Unicorn data storage and search platforms
Facebook's TAO & Unicorn data storage and search platformsNitish Upreti
 
Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...
Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...
Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...Spark Summit
 
Introduction to Apache Hive
Introduction to Apache HiveIntroduction to Apache Hive
Introduction to Apache HiveAvkash Chauhan
 

What's hot (20)

Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...
Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...
Dynamic Priorities for Apache Spark Application’s Resource Allocations with M...
 
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
Ceph Day London 2014 - Best Practices for Ceph-powered Implementations of Sto...
 
Relational database
Relational database Relational database
Relational database
 
Oracle Data Protection - 2. část
Oracle Data Protection - 2. částOracle Data Protection - 2. část
Oracle Data Protection - 2. část
 
Data base management system
Data base management systemData base management system
Data base management system
 
3.1 tuple relational_calculus
3.1 tuple relational_calculus3.1 tuple relational_calculus
3.1 tuple relational_calculus
 
ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...
ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...
ApacheCon 2022: From Column-Level to Cell-Level_ Towards Finer-grained Encryp...
 
Avro
AvroAvro
Avro
 
DB2 for z/O S Data Sharing
DB2 for z/O S  Data  SharingDB2 for z/O S  Data  Sharing
DB2 for z/O S Data Sharing
 
Multi-Tenancy
Multi-TenancyMulti-Tenancy
Multi-Tenancy
 
Matrix multiplication, inverse
Matrix multiplication, inverseMatrix multiplication, inverse
Matrix multiplication, inverse
 
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
 
HBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUpon
HBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUponHBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUpon
HBaseCon 2012 | Lessons learned from OpenTSDB - Benoit Sigoure, StumbleUpon
 
Scope - Static and Dynamic
Scope - Static and DynamicScope - Static and Dynamic
Scope - Static and Dynamic
 
Red hat ceph storage customer presentation
Red hat ceph storage customer presentationRed hat ceph storage customer presentation
Red hat ceph storage customer presentation
 
Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems
Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems
Auto­matic Para­meter Tun­ing for Data­bases and Big Data Sys­tems
 
Lesson 16: Inverse Trigonometric Functions (slides)
Lesson 16: Inverse Trigonometric Functions (slides)Lesson 16: Inverse Trigonometric Functions (slides)
Lesson 16: Inverse Trigonometric Functions (slides)
 
Facebook's TAO & Unicorn data storage and search platforms
Facebook's TAO & Unicorn data storage and search platformsFacebook's TAO & Unicorn data storage and search platforms
Facebook's TAO & Unicorn data storage and search platforms
 
Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...
Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...
Cost-Based Optimizer Framework for Spark SQL: Spark Summit East talk by Ron H...
 
Introduction to Apache Hive
Introduction to Apache HiveIntroduction to Apache Hive
Introduction to Apache Hive
 

Similar to LaTeX Cheat Sheet

LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with TexstudioHossein Babashah
 
Introduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah NabatiIntroduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah Nabatinabati
 
La tex basics
La tex basicsLa tex basics
La tex basicsawverret
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginnersssuser9e8fa4
 
LaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.pptLaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.pptMichalis33
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginnersKaushik Naik
 
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...Jim Webb
 
Latex_Tutorial.pdf
Latex_Tutorial.pdfLatex_Tutorial.pdf
Latex_Tutorial.pdfContactAt1
 

Similar to LaTeX Cheat Sheet (20)

LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with Texstudio
 
Introduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah NabatiIntroduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah Nabati
 
Chap10 scr
Chap10 scrChap10 scr
Chap10 scr
 
Ltxcrib
LtxcribLtxcrib
Ltxcrib
 
La tex basics
La tex basicsLa tex basics
La tex basics
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginners
 
Latex cheat sheet
Latex cheat sheetLatex cheat sheet
Latex cheat sheet
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
 
LaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.pptLaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.ppt
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginners
 
latex.pptx
latex.pptxlatex.pptx
latex.pptx
 
Msw a4 format
Msw a4 formatMsw a4 format
Msw a4 format
 
Chap13 scr
Chap13 scrChap13 scr
Chap13 scr
 
Latex Tutorial
Latex TutorialLatex Tutorial
Latex Tutorial
 
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
A Hitchhiker S Guide To LaTex (Or How I Learned To Stop Worrying And Love Wri...
 
Latex Tuitorial
Latex TuitorialLatex Tuitorial
Latex Tuitorial
 
Ieee format
Ieee formatIeee format
Ieee format
 
Fog paper
Fog paperFog paper
Fog paper
 
Latex_Tutorial.pdf
Latex_Tutorial.pdfLatex_Tutorial.pdf
Latex_Tutorial.pdf
 
Ijert paper template
Ijert paper templateIjert paper template
Ijert paper template
 

More from Hirwanto Iwan

01. integral fungsi aljabar
01. integral fungsi aljabar01. integral fungsi aljabar
01. integral fungsi aljabarHirwanto Iwan
 
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangAnalisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangHirwanto Iwan
 
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAAnalisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAHirwanto Iwan
 
Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Hirwanto Iwan
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSPembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSHirwanto Iwan
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAPembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAHirwanto Iwan
 
Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Hirwanto Iwan
 

More from Hirwanto Iwan (20)

01. integral fungsi aljabar
01. integral fungsi aljabar01. integral fungsi aljabar
01. integral fungsi aljabar
 
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS SerangAnalisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
Analisis Butir Soal PG Matematika Wajib Kelas XII IPA-IPS NFBS Serang
 
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPAAnalisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
Analisis Butir Soal Pilihan Ganda Matematika Wajib Kelas XII IPA
 
Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar Materi Limit Aljabar dan Turunan Aljabar
Materi Limit Aljabar dan Turunan Aljabar
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPSPembahasan Soal Matematika Wajib PTS Kelas XI IPS
Pembahasan Soal Matematika Wajib PTS Kelas XI IPS
 
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPAPembahasan Soal Matematika Wajib PTS Kelas XI IPA
Pembahasan Soal Matematika Wajib PTS Kelas XI IPA
 
Fitur Baru WinEdt 9.1
Fitur Baru WinEdt 9.1Fitur Baru WinEdt 9.1
Fitur Baru WinEdt 9.1
 
Pemasangan WinEdt 9.1
Pemasangan WinEdt 9.1Pemasangan WinEdt 9.1
Pemasangan WinEdt 9.1
 
Kumpulan Soal UM UGM
Kumpulan Soal UM UGMKumpulan Soal UM UGM
Kumpulan Soal UM UGM
 
Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33Membuat Dokumen LaTeX Edisi ke - 33
Membuat Dokumen LaTeX Edisi ke - 33
 
LATEX OR INDESIGN
LATEX OR INDESIGN LATEX OR INDESIGN
LATEX OR INDESIGN
 
AGH Beamer
AGH BeamerAGH Beamer
AGH Beamer
 
AFIT Beamer
AFIT BeamerAFIT Beamer
AFIT Beamer
 
Hackd Beamer
Hackd BeamerHackd Beamer
Hackd Beamer
 
LUH Beamer
LUH BeamerLUH Beamer
LUH Beamer
 
Cambridge Beamer
Cambridge BeamerCambridge Beamer
Cambridge Beamer
 
ESOP Beamer
ESOP BeamerESOP Beamer
ESOP Beamer
 
AP Beamer
AP BeamerAP Beamer
AP Beamer
 
Naked Beamer
Naked BeamerNaked Beamer
Naked Beamer
 
TUDelft Beamer
TUDelft BeamerTUDelft Beamer
TUDelft Beamer
 

Recently uploaded

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 

Recently uploaded (20)

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 

LaTeX Cheat Sheet

  • 1. A L TEX 2ε Cheat Sheet Document classes book Default is two-sided. report No part divisions. article No part or chapter divisions. letter Letter (?). slides Large sans-serif font. Used at the very beginning of a document: documentclass{class}. Use begin{document} to start contents and end{document} to end the document. Common documentclass options 10pt/11pt/12pt letterpaper/a4paper twocolumn Font size. Paper size. Use two columns. Set margins for two-sided. twoside landscape Landscape orientation. Must use dvips -t landscape. Double-space lines. draft Usage: documentclass[opt,opt]{class}. Packages fullpage anysize multicol Use 1 inch margins. Set margins: marginsize{l}{r }{t}{b}. Use n columns: begin{multicols}{n}. A Use L TEX symbol font. latexsym Show image: includegraphics[width=x ]{file}. graphicx Insert URL: url{http://. . . }. url Use before begin{document}. Usage: usepackage{package} Title author{text} Author of document. title{text} Title of document. date{text} Date. These commands go before begin{document}. The declaration maketitle goes at the top of the document. Miscellaneous pagestyle{empty} Empty header, footer and no page numbers. tableofcontents Add a table of contents here. Document structure part{title} subsubsection{title} chapter{title} paragraph{title} section{title} subparagraph{title} subsection{title} Use setcounter{secnumdepth}{x} suppresses heading numbers of depth > x, where chapter has depth 0. Use a *, as in section*{title}, to not number a particular item—these items will also not appear in the table of contents. Text environments Verbatim text begin{comment} Comment (not printed). Requires verbatim package. begin{quote} Indented quotation block. begin{quotation}Like quote with indented paragraphs. begin{verse} Quotation block for verse. begin{verbatim} Verbatim environment. begin{verbatim*} Spaces are shown as . verb!text! Text between the delimiting characters (in this case ‘!’) is verbatim. Lists Justification begin{enumerate} Numbered list. begin{itemize} Bulleted list. begin{description}Description list. item text Add an item. item[x ] text Use x instead of normal bullet or number. Required for descriptions. Environment begin{center} begin{flushleft} begin{flushright} References linespread{x} changes the line spacing by the multiplier x. Set a marker for cross-reference, often of the form label{sec:item}. ref{marker } Give section/body number of marker. pageref{marker } Give page number of marker. footnote{text} Print footnote at bottom of page. label{marker } Floating bodies begin{table}[place] Add numbered table. begin{figure}[place] Add numbered figure. begin{equation}[place] Add numbered equation. caption{text} Caption for the body. The place is a list valid placements for the body. t=top, h=here, b=bottom, p=separate page, !=place even if ugly. Captions and label markers should be within the environment. Text properties Declaration centering raggedright raggedleft Miscellaneous Text-mode symbols Symbols & $ % & $ % ... | # _ ^{} ~{} ˆ ˜ ldots textbar # • § textbullet textbackslash S Accents ` o o ˙ ¸ c Œ ø  ‘o .o c c OE o j ´ o ¨ o o . æ Ø ¡ ’o "o d o ae O ~‘ Font face ‘‘ ’’ ^o c o b o AE l ?‘ [[ ]] (( )) ˜ o ˇ o oo ˚ a L ~o v o t oo aa L ¯ o ˝ o œ ˚ A ı =o H o oe AA i Delimiters Command Declaration Effect textrm{text} {rmfamily text} Roman family textsf{text} {sffamily text} Sans serif family texttt{text} {ttfamily text} Typewriter family textmd{text} {mdseries text} Medium series textbf{text} {bfseries text} Bold series textup{text} {upshape text} Upright shape textit{text} {itshape text} Italic shape textsl{text} {slshape text} Slanted shape textsc{text} {scshape text} Small Caps shape emph{text} {em text} Emphasized textnormal{text}{normalfont text}Document font underline{text} Underline The command (tttt) form handles spacing better than the declaration (tttt) form. ˆ o o ¸ o ¯ Æ l ¿ Font size Large tiny tiny Large scriptsize scriptsize LARGE footnotesize footnotesize small small huge normalsize normalsize large large Huge These are declarations and should be used in the form {small . . . }, or without braces to affect the entire document. LARGE huge Huge “ ‘‘ ” ’’ { { } } < textless > textgreater Dashes Name hyphen en-dash em-dash Source ---- Example X-ray 1–5 Yes—or no? Usage In words. Between numbers. Punctuation. Line and page breaks * kill pagebreak noindent Begin new line without new paragraph. Prohibit pagebreak after linebreak. Don’t print current line. Start new page. Do not indent current line. Miscellaneous February 11, 2014. Prints ∼ instead of ~{}, which makes ˜. Space, disallow linebreak (W.J.~Clinton). Indicate that the . ends a sentence when following an uppercase letter. hspace{l} Horizontal space of length l (Ex: l = 20pt). vspace{l} Vertical space of length l. rule{w}{h} Line of width w and height h. today $sim$ ~ @.
  • 2. Tabular environments Citation types tabbing environment Full author list and year. (Watson and Crick 1953) citeA{key} Full author list. (Watson and Crick) citeN{key} Full author list and year. Watson and Crick (1953) shortcite{key} Abbreviated author list and year. ? shortciteA{key} Abbreviated author list. ? shortciteN{key} Abbreviated author list and year. ? citeyear{key} Cite year only. (1953) All the above have an NP variant without parentheses; Ex. citeNP. cite{key} = Set tab stop. > Go to tab stop. Tab stops can be set on “invisible” lines with kill at the end of the line. Normally is used to separate lines. tabular environment begin{array}[pos]{cols} begin{tabular}[pos]{cols} begin{tabular*}{width}[pos]{cols} tabular column specification l c r p{width} @{decl} | Left-justified column. BibTEX entry types Centered column. Right-justified column. Same as parbox[t]{width}. Insert decl instead of inter-column space. Inserts a vertical line between columns. tabular elements hline Horizontal line between rows. cline{x-y} Horizontal line across columns x through y. multicolumn{n}{cols}{text} A cell that spans n columns, with cols column specification. For inline math, use (...) or $...$. For use [...] or begin{equation}. Superscriptx ^{x} Subscriptx n x frac{x}{y} y k=1 √ n n x sqrt[n]{x} k=1 displayed math, _{x} sum_{k=1}^n prod_{k=1}^n Math-mode symbols ≥ ÷ ◦ ¬ ∀ ∃ ∩ a ˆ β ζ ι µ ρ φ Γ Ξ Φ geq div circ neg forall exists cap hat a beta zeta iota mu rho phi Gamma Xi Phi Journal or magazine article. Book with publisher. Book without publisher. Article in conference proceedings. A part of a book and/or range of pages. A part of book with its own title. If nothing else fits. PhD. thesis. Proceedings of a conference. Tech report, usually numbered in series. Unpublished. BibTEX fields Math mode ≤ leq × times ◦ ^{circ} ∞ infty ⊃ supset ⊂ subset ∪ cup a dot a ˙ α alpha epsilon θ theta λ lambda π pi υ upsilon ω omega Λ Lambda Υ Upsilon @article @book @booklet @conference @inbook @incollection @misc @phdthesis @proceedings @techreport @unpublished = neq ± pm prime ∧ wedge ∈ in ∈ notin / | mid a bar a ¯ γ gamma η eta κ kappa ν nu σ sigma χ chi ∆ Delta Π Pi Ψ Psi ≈ · ··· ∨ → ⇒ ⇔ a ˜ δ ε ϑ ξ τ ψ Θ Σ Ω approx cdot cdots vee rightarrow Rightarrow Leftrightarrow tilde a delta varepsilon vartheta xi tau psi Theta Sigma Omega Bibliography and citations When using BibTEX, you need to run latex, bibtex, and latex twice more to resolve dependencies. Address of publisher. Not necessary for major publishers. author Names of authors, of format .... booktitle Title of book when part of it is cited. chapter Chapter or section number. edition Edition of a book. editor Names of editors. institution Sponsoring institution of tech. report. journal Journal name. key Used for cross ref. when no author. month Month published. Use 3-letter abbreviation. note Any additional information. number Number of journal or magazine. organization Organization that sponsors a conference. pages Page range (2,6,9--12). publisher Publisher’s name. school Name of school (for thesis). series Name of series of books. title Title of work. type Type of tech. report, ex. “Research Note”. volume Volume of a journal or book. year Year of publication. Not all fields need to be filled. See example below. address Common BibTEX style files abbrv alpha plain Standard Standard Standard abstract apa unsrt alpha with abstract APA Unsorted A The L TEX document should have the following two lines just before end{document}, where bibfile.bib is the name of the BibTEX file. bibliographystyle{plain} bibliography{bibfile} BibTEX example The BibTEX database goes in a file called file.bib, which is processed with bibtex file. @String{N = {Na-ture}} @Article{WC:1953, author = {James Watson and Francis Crick}, title = {A structure for Deoxyribose Nucleic Acid}, journal = N, volume = {171}, pages = {737}, year = 1953 } A Sample L TEX document documentclass[11pt]{article} usepackage{fullpage} title{Template} author{Name} begin{document} maketitle section{section} subsection*{subsection without number} text textbf{bold text} text. Some math: $2+2=5$ subsection{subsection} text emph{emphasized text} text. cite{WC:1953} discovered the structure of DNA. A table: begin{table}[!th] begin{tabular}{|l|c|r|} hline first & row & data second & row & data hline end{tabular} caption{This is the caption} label{ex:table} end{table} The table is numbered ref{ex:table}. end{document} Copyright c 2012 Winston Chang http://www.stdout.org/∼winston/latex/