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.

51 lines
1.3 KiB

6 years ago
6 years ago
6 years ago
  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. \renewcommand*{\O}{\mathcal{O}}
  9. \renewcommand*{\epsilon}{\varepsilon}
  10. \newcommand{\Rq}{\R^2}
  11. \newcommand{\Qq}{\Q^2}
  12. \newcommand*{\Rmn}{\R^{m\times n}}
  13. % round functions
  14. \DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
  15. \DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
  16. \newcommand{\lrarr}{\leftrightarrow}
  17. \newcommand{\larr}{\leftarrow}
  18. \newcommand{\rarr}{\rightarrow}
  19. \newcommand{\Lrarr}{\Leftrightarrow}
  20. \newcommand{\Larr}{\Leftarrow}
  21. \newcommand{\Rarr}{\Rightarrow}
  22. \newcommand*{\ex}{\emph{Beispiel: }}
  23. \newcommand{\anm}{\emph{Anmerkung: }}
  24. \newcommand{\prac}{\textbf{\textcolor{red}{Übung }}}
  25. % TODO: improve usage of \def and \ther
  26. \newcommand{\cdef}{\textbf{Definition: }}
  27. \newcommand{\ther}{\textbf{Satz: }}
  28. \newcommand{\linf}{\lim\limits_{n \rightarrow{} \infty}}
  29. %running fraction with slash - requires math mode.
  30. \newcommand*\rfrac[2]{{}^{#1}\!/_{#2}}
  31. % Vector
  32. \newcommand*\colvec[3][]{
  33. \begin{pmatrix}\ifx\relax#1\relax\else#1\\\fi#2\\#3\end{pmatrix}
  34. }
  35. \newcommand{\xyvec}{\colvec{x}{y}}
  36. % Index command to show the key emphasized
  37. \newcommand{\idx}[1]{{\emph{#1}\index{#1}}}
  38. \newtheorem{satz}{Satz}[subsection]