You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

  1. % custom commands go here %
  2. \newcommand{\N}{\mathbb{N}}
  3. \newcommand{\R}{\mathbb{R}}
  4. \newcommand{\Z}{\mathbb{Z}}
  5. \newcommand{\K}{\mathbb{K}}
  6. \newcommand{\C}{\mathbb{C}}
  7. \newcommand{\Q}{\mathbb{Q}}
  8. \newcommand{\Rq}{\R^2}
  9. \newcommand{\Qq}{\Q^2}
  10. \newcommand{\lrarr}{\leftrightarrow}
  11. \newcommand{\larr}{\leftarrow}
  12. \newcommand{\rarr}{\rightarrow}
  13. \newcommand{\Lrarr}{\Leftrightarrow}
  14. \newcommand{\Larr}{\Leftarrow}
  15. \newcommand{\Rarr}{\Rightarrow}
  16. \newcommand{\ex}{\emph{Beispiel: }}
  17. \newcommand{\anm}{\emph{Anmerkung: }}
  18. \newcommand{\prac}{\textbf{\textcolor{red}{Übung }}}
  19. % TODO: improve usage of \def and \ther
  20. \newcommand{\cdef}{\textbf{Definition: }}
  21. \newcommand{\ther}{\textbf{Satz: }}
  22. \newcommand{\linf}{\lim\limits_{n \rightarrow{} \infty}}
  23. %running fraction with slash - requires math mode.
  24. \newcommand*\rfrac[2]{{}^{#1}\!/_{#2}}
  25. % Vector
  26. \newcommand*\colvec[3][]{
  27. \begin{pmatrix}\ifx\relax#1\relax\else#1\\\fi#2\\#3\end{pmatrix}
  28. }
  29. \newcommand{\xyvec}{\colvec{x}{y}}
  30. % Index command to show the key emphasized
  31. \newcommand{\idx}[1]{{\emph{#1}\index{#1}}}