# LaTeX Cheat Sheet
A compact reference for LaTeX commands commonly used in Obsidian notes, academic writing, and math-heavy documents.
## Basic Document Structure
```latex
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Hello world.
\end{document}
```
- `\title{My Title}`
- `\author{Your Name}`
- `\date{\today}`
- `\maketitle`
## Headings and Text
- `\textbf{bold}`
- `\textit{italic}`
- `\emph{emphasis}`
- `\\` for line break
- `%` for comment
## Lists
```md
- First item
- Second item
```
```md
1. First item
2. Second item
```
## Inline and Block Math
```latex
\( E = mc^2 \)
```
```latex
\[
f(x) = x^2 + 3x + 2
\]
```
## Core Math Commands
- `\frac{a}{b}`
- `x^2`
- `x^{10}`
- `x_1`
- `x_{ij}`
- `\sqrt{x}`
- `\sqrt[3]{x}`
- `\hat{x}`
- `\infty`
- `\partial`
## Greek Letters
- `\alpha`
- `\beta`
- `\gamma`
- `\theta`
- `\lambda`
- `\pi`
- `\omega`
## Operators and Relations
- `\times`
- `\cdot`
- `\pm`
- `\div`
- `\neq`
- `\approx`
- `\leq`
- `\geq`
## Logic and Sets
- `\forall`
- `\exists`
- `\land`
- `\lor`
- `\neg`
- `\in`
- `\emptyset`
- `\cup`
- `\cap`
- `\subseteq`
- `\mathbb{R}`
## Special Characters
- `\%`
- `\
- `\#`