Ltex 2ε cheat sheet

Páginas: 6 (1494 palabras) Publicado: 15 de agosto de 2012
A
LTEX 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/12ptletterpaper/a4paper
twocolumn
twoside
landscape

Font size.
Paper size.
Use two columns.
Set margins for two-sided.
Landscape orientation. Must use dvips
-t landscape.
draft
Double-space lines.
Usage: \documentclass[opt,opt ]{class }.

Packages
fullpage Use 1 inch margins.
anysize Set margins: \marginsize{l }{r }{t }{b }.
multicol Use n columns: \begin{multicols}{n}.
A
latexsym Use LTEX symbol font.
graphicx Show image: \includegraphics[width=x ]{file }.
url
Insert URL: \url{http://. . . }.
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.

Document structure
\part{title }
\subsubsection{title }
\chapter{title }
\paragraph{title }
\section{title }
\subparagraph{title }
\subsection{title }
Section commands can be followed with an *, like
\section*{title }, to supress heading numbers.
\setcounter{secnumdepth}{x} supresses heading numbers of
depth > x, where chapter hasdepth 0.

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 multiplierx.

\label{marker }

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.

Floating bodies
\begin{table}[place ]
Add numbered table.
\begin{figure}[place ] Add numbered figure.
\begin{equation}[place ] Add numberedequation.
\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

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
~‘

o
ˆ
o
¸
o
¯
Æ
l
¿

\^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

Font face
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 (ttt t) form handles spacing better than the
declaration (tttt) form.

‘‘
’’

“ ‘‘
” ’’

{ \{
} \}

< \textless
> \textgreater

Dashes
Name
hyphen
en-dash
em-dash

Source
----

Example
X-ray
1–5...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • gramatica cheat sheet
  • Git-cheat-sheet.
  • Cisco Meraki Cheat Sheet
  • Html5 cheat sheet
  • Python-cheat-sheet-v1.pdf
  • Cheat Sheet
  • Freereport-Paint-Basics-Cheat-Sheet
  • Cheat Sheet Enterprise Management

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS