0%

Some LaTex

Here are some notes I find useful for using LaTex

  1. Force limits to the top and bottom side of inline sum : i=1Ni, use \sum\limits instead of \sum alone.
  2. Force limits to the top and bottom side of inline integral : x=13xdx, use \int\limits instead of \int alone.
  3. Hat:
    1. Fitted value: y^, use \hat{}
    2. Widehat: f^, use \widehat{}
  4. Italic: L, it only works for upper-case letters, use \mathcal{}
  5. Underset: argminx, use \underset{x}{argmin}
  6. Gradient: f, use \nabla
  7. Field representation: the complex field C, the real field R, use \mathbb{}
  8. Logical operator
    • P and Q: PQ, \land
    • P or Q: PQ, \lor
    • not P: ¬P, \neg, or P¯, \bar
    • P xor Q: PQ, \oplus
  9. Set notation
    • R: \mathbb{R}
    • aA: a \in A
    • aA: a \notin A
    • : \emptyset
    • AB: \cap
    • AB: \cup
    • A×B: \times
    • AB: \setminus
    • AB: \subseteq
    • AB: \subset
    • i=1n \bigcup\limits_{i = 1}^{n}
    • i=1n \bigcap\limits_{i = 1}^{n}
  10. Make equation smaller: \scriptstyle
  11. Isomorphism and approximate equality
    • G1G2: G_1 \cong G_2
    • ab: a \approx b
    • ab: a \approxeq b