Example: confidence

LTEX2 Cheat Sheet Justi cation Environment Declaration

LATEX 2 Cheat Sheet Lists Justification \begin{enumerate} Numbered list. Environment Declaration Document classes \begin{itemize} Bulleted list. \begin{center} \centering book Default is two-sided. \begin{description}Description list. \begin{flushleft} \raggedright report No \part divisions. \item text Add an item. \begin{flushright} \raggedleft article No \part or \chapter divisions. \item[x ] text Use x instead of normal bullet or number. letter Letter (?). Required for descriptions. Miscellaneous slides Large sans-serif font. References \linespread{x} changes the line spacing by the multiplier x. Used at the very beginning of a document: \label{marker } Set a marker for cross-reference, often of the \documentclass{class}.

tabular column speci cation l Left-justi ed column. c Centered column. r Right-justi ed column. p{width} Same as \parbox[t]{width}. @{decl} 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 xthrough y.

Tags:

  Spices, Action, Speci cations

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of LTEX2 Cheat Sheet Justi cation Environment Declaration

1 LATEX 2 Cheat Sheet Lists Justification \begin{enumerate} Numbered list. Environment Declaration Document classes \begin{itemize} Bulleted list. \begin{center} \centering book Default is two-sided. \begin{description}Description list. \begin{flushleft} \raggedright report No \part divisions. \item text Add an item. \begin{flushright} \raggedleft article No \part or \chapter divisions. \item[x ] text Use x instead of normal bullet or number. letter Letter (?). Required for descriptions. Miscellaneous slides Large sans-serif font. References \linespread{x} changes the line spacing by the multiplier x. Used at the very beginning of a document: \label{marker } Set a marker for cross-reference, often of the \documentclass{class}.

2 Use \begin{document} to start form \label{sec:item}. Text-mode symbols contents and \end{document} to end the document. \ref{marker } Give section/body number of marker. Symbols Common documentclass options \pageref{marker } Give page number of marker. \footnote{text} Print footnote at bottom of page. & \& \_ .. \ldots \textbullet 10pt/11pt/12pt Font size. $ \$ \^{} | \textbar \ \textbackslash letterpaper/a4paper Paper size. Floating bodies % \% \~{} # \# \S. twocolumn Use two columns. \begin{table}[place] Add numbered table. twoside Set margins for two-sided. \begin{figure}[place] Add numbered figure. Accents landscape Landscape orientation. Must use dvips o \ o o \'o o \^o o \~o o \=o \begin{equation}[place] Add numbered equation.

3 -t landscape. o \.o o \"o o \c o o \v o o \H o \caption{text} Caption for the body. draft Double-space lines. c \c c o. \d o o \b o o o \t oo \oe The place is a list valid placements for the body. t=top, . Usage: \documentclass[opt,opt]{class}. \OE \ae \AE a \aa A \AA. h=here, b=bottom, p=separate page, !=place even if ugly. Packages Captions and label markers should be within the Environment . \o \O l \l L \L \i \j ~ ? . fullpage Use 1 inch margins. anysize Set margins: \marginsize{l}{r }{t}{b}. Text properties Delimiters multicol Use n columns: \begin{multicols}{n}. Font face { \{ [[ (( < \textless latexsym Use LATEX symbol font. Command Declaration Effect '' '' } \} ]] )) > \textgreater graphicx Show image: \includegraphics[width=x ]{file}.

4 \textrm{text} {\rmfamily text} Roman family url Insert URL: \url{http://.. }. \textsf{text} {\sffamily text} Sans serif family Dashes Use before \begin{document}. Usage: \usepackage{package} \texttt{text} {\ttfamily text} Typewriter family Name Source Example Usage \textmd{text} {\mdseries text} Medium series hyphen - X-ray In words. Title \author{text} Author of document. \textbf{text} {\bfseries text} Bold series en-dash -- 1 5 Between numbers. \title{text} Title of document. \textup{text} {\upshape text} Upright shape em-dash --- Yes or no? Punctuation. \date{text} Date. \textit{text} {\itshape text} Italic shape These commands go before \begin{document}.

5 The \textsl{text} {\slshape text} Slanted shape Line and page breaks Declaration \maketitle goes at the top of the document. \textsc{text} {\scshape text} Small Caps shape \\ Begin new line without new paragraph. \emph{text} {\em text} Emphasized \\* Prohibit pagebreak after linebreak. Miscellaneous \textnormal{text}{\normalfont text}Document font \kill Don't print current line. \pagestyle{empty} Empty header, footer and no page num- \underline{text} Underline \pagebreak Start new page. bers. The command (tttt) form handles spacing better than the \noindent Do not indent current line. \tableofcontents Add a table of contents here. Declaration (tttt) form.

6 Document structure Miscellaneous Font size \today March 28, 2017. \part{title} \subsubsection{title} \tiny tiny \Large Large $\sim$ Prints instead of \~{}, which makes . \chapter{title}. \section{title}. \paragraph{title}. \subparagraph{title}. \scriptsize scriptsize \footnotesize footnotesize \LARGE LARGE ~. Space, disallow linebreak ( ~Clinton). Indicate that the . ends a sentence when following \subsection{title}. Use \setcounter{secnumdepth}{x} suppresses heading \small small \normalsize normalsize \huge huge an uppercase letter. \hspace{l} Horizontal space of length l (Ex: l = 20pt). numbers of depth > x, where chapter has depth 0. Use a *, as in \section*{title}, to not number a particular item these \large large Huge \Huge These are declarations and should be used in the form {\small \vspace{l} Vertical space of length l.}

7 \rule{w}{h} Line of width w and height h. items will also not appear in the table of contents.. }, or without braces to affect the entire document. Tabular environments Text environments \begin{comment} Comment (not printed). Requires verbatim Verbatim text tabbing Environment package. \begin{verbatim} Verbatim Environment . \begin{quote} Indented quotation block. \begin{verbatim*} Spaces are shown as . \= Set tab stop. \> Go to tab stop. \begin{quotation}Like quote with indented paragraphs. \verb!text! Text between the delimiting characters (in Tab stops can be set on invisible lines with \kill at the end \begin{verse} Quotation block for verse. this case !)

8 ') is verbatim. of the line. Normally \\ is used to separate lines. tabular Environment Citation types The LATEX document should have the following two lines just \cite{key} Full author list and year. (Watson and Crick before \end{document}, where is the name of the \begin{array}[pos]{cols} BibTEX file. 1953). \begin{tabular}[pos]{cols}. \citeA{key} Full author list. (Watson and Crick). \begin{tabular*}{width}[pos]{cols} \bibliographystyle{plain}. \citeN{key} Full author list and year. Watson and Crick (1953) \bibliography{bibfile}. tabular column specification \shortcite{key} Abbreviated author list and year. ? l Left-justified column. \shortciteA{key} Abbreviated author list.

9 ? BibTEX example c Centered column. \shortciteN{key} Abbreviated author list and year. ? The BibTEX database goes in a file called , which is r Right-justified column. \citeyear{key} Cite year only. (1953) processed with bibtex file. p{width} Same as \parbox[t]{width}. All the above have an NP variant without parentheses; Ex. @{decl} Insert decl instead of inter-column space. \citeNP. @String{N = {Na\-ture}}. Inserts a vertical line between columns. @Article{WC:1953, | BibTEX entry types author = {James Watson and Francis Crick}, @article Journal or magazine article. title = {A structure for Deoxyribose Nucleic Acid}, tabular elements @book Book with publisher.}

10 Journal = N, \hline Horizontal line between rows. @booklet Book without publisher. volume = {171}, \cline{x-y} Horizontal line across columns x through y. @conference Article in conference proceedings. pages = {737}, \multicolumn{n}{cols}{text} @inbook A part of a book and/or range of pages. year = 1953. A cell that spans n columns, with cols column @incollection A part of book with its own title. }. specification. @misc If nothing else fits. @phdthesis PhD. thesis. @proceedings Proceedings of a conference. Sample LATEX document Math mode @techreport Tech report, usually numbered in series. \documentclass[11pt]{article}. For inline math, use \(..\) or $.


Related search queries