Here are some notes I find useful for using LaTex
- Force limits to the top and bottom side of inline sum :
, use \sum\limits instead of \sum alone. - Force limits to the top and bottom side of inline integral :
, use \int\limits instead of \int alone. - Hat:
- Fitted value:
, use \hat{} - Widehat:
, use \widehat{}
- Fitted value:
- Italic:
, it only works for upper-case letters, use \mathcal{} - Underset:
, use \underset{x}{formula} - Gradient:
, use \nabla - Field representation: the complex field
, the real field , use \mathbb{} - Logical operator
- P and Q:
, \land - P or Q:
, \lor - not P:
, \neg, or , \bar{P} - P xor Q:
, \oplus - if P then Q:
, \rightarrow - P iff Q:
, \leftrightarrow
- P and Q:
- Set notation
, \mathbb{R} : a \in A : a \notin A : \emptyset : \cap : \cup \mathcal{P} (power set) : \times : \setminus : \subseteq : \subset : \bigcup\limits_{i=1}^{n} : \bigcap\limits_{i=1}^{n}
- Make equation smaller: \scriptstyle
- Isomorphism and approximate equality
: \cong : \approx : \approxeq
- Add label to equation: \tag{N}
- How to write text inside equation: \text{text}
- Multline equations
allign* has no equation label, align has equation label, use &= to align equations marks, use \ \ to separate lines
- function composition
, \circ - multinomial coefficient:
, \binom {n}{k_1,k_1,\dots,k_m}, usebinom{}{}
for combinations - Multi conditions in summation:
, \substack{i=0 \ \ i \neq j}, usesubstack{}
for multi conditions, use\\
to separate the lines - Arrows
\leftarrow, \Leftarrow \longleftarrow, \Longrightarrow \rightarrow, \Rightarrow \longrightarrow, \Longrightarrow \leftrightarrow, \Leftrightarrow \longleftrightarrow, \Longleftrightarrow
- The does not prove sign (appeared in Gödel's incompleteness
theorems)
\nvdash \not\vdash