latexsheet2

latexsheet2 - L A T E X 2 Cheat Sheet Document classes book...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: L A T E X 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 Font size. letterpaper / a4paper Paper size. twocolumn Use two columns. twoside Set margins for two-sided. landscape 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 } . latexsym Use L A T E X 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 num- bers. Document structure \part{ title } \chapter{ title } \section{ title } \subsection{ title } \subsubsection{ title } \paragraph{ title } \subparagraph{ 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 has depth 0. Text environments \begin{comment} Comment block (not printed). \begin{quote} Indented quotation block. \begin{quotation} Like quote with indented paragraphs. \begin{verse} Quotation block for verse. Lists \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. References \label{ marker } Set a marker for cross-reference, often of the form \label{sec:item} . \ref{ marker } Give section/body number of marker....
View Full Document

Page1 / 2

latexsheet2 - L A T E X 2 Cheat Sheet Document classes book...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online