LaTeX Basics
1 Headings
Sections create the document hierarchy. LaTeX supports several levels.
1.1 Subsection
Use \subsection for the second level.
1.1.1 Subsubsection
And \subsubsection for the third.
Paragraph heading.
The fourth level is inline.
2 Text Formatting
Bold text uses \textbf{}.
Italic text uses \textit{}.
Monospace text uses \texttt{}.
Underlined text uses \underline{}.
Small Caps uses \textsc{}.
Combine them: bold italic, italic mono.
3 Lists
3.1 Unordered
-
•
First item
-
•
Second item
-
•
Third item with nested list:
-
–
Nested item one
-
–
Nested item two
-
–
3.2 Ordered
-
1.
First step
-
2.
Second step
-
3.
Third step
3.3 Description
- LaTeX
-
A document preparation system
- Typst
-
A modern alternative to LaTeX
- Markdown
-
Lightweight markup language
4 Quotations
The purpose of computing is insight, not numbers.
— Richard Hamming
5 Links
Visit sublimated.com for more.
See also https://www.latex-project.org/.
6 Footnotes
LaTeX handles footnotes automatically.11 1 This appears at the bottom of the page.
Multiple footnotes are numbered sequentially.22 2 Like this second one.
7 Verbatim
This is verbatim text.
Whitespace is preserved.
No commands are interpreted: \textbf{this stays literal}.