Cheatography
https://cheatography.com
A LaTeX cheatsheet/reference guide
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Document Setup
|
|
\documentclass[<param>]{<type>}
|
\documentclass
but also specified by <param>
|
|
allows <package>
to be used |
|
specifies the document title |
|
specifies the author |
|
goes inside {}
of \author
|
|
Chapters and sections
|
sets document type to book
|
|
creates new part called <part>
|
|
creates new chapter called <chaptername>
|
|
creates new section called <sectionname>
|
\subsection{<subsectionname>}
|
creates new subsection called <subsectionname>
|
\subsubsection{<subsubsectionname>}
|
creates new subsubsection called <subsubsectionname>
|
\paragraph{<paragraphname>}
|
creates new paragraph called <paragraphname>}
|
\subparagraph{<subparagraphname>}
|
creates new subparagraph called <subparagraphname>}
|
\part
and \chapter
are only available for report
and book
document classes
|
Document Structure
|
start of document |
|
typesets the title author and date |
|
end of document |
Bold, italics and underlining
|
puts <bolded-text>
in bold |
|
puts <italic-text>
in italics |
\underline{<underlined-text>}
|
underlines <underlined-text>
|
|
emphasizes <emphasized-text>
|
Images
|
allows graphics importing |
|
sets image directory in graphicx
to images/
|
\includegraphics{<image>}
|
|
Lists
|
begins an unordered (bullet) list |
|
ends unordered list |
|
begins an ordered (numbered) list |
|
ends an ordered list |
|
adds <entry>
to current list |
Paragraphs and new lines
press "enter" twice |
new paragraph |
|
newline |
|
|
Comments
|
comments out the rest of the line |
|
allows below comment type to work |
|
begins multi-line comment |
|
ends multi-line comment |
|
starts multi-line comment |
|
ends multi-line comment |
|
allows todo-note style comments |
|
makes a todo note of <comment>
|
\presetkeys{todonotes}{inline}{}
|
makes todonotes
comments inline |
Math
|
adds <expression>
as inline math |
|
adds <expression>
as display-mode math |
Abstracts
|
begins an abstract |
|
ends an abstract |
abstracts are brief overviews/summaries of the core topics/arguments of scientific articles.
Table of contents
|
creates table of contents |
\addcontentsline{toc}{<type>}{<name>}
|
manually adds the <type>
named <name>
to table of contents |
|