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.

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