shortcuts.sty 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % make the index link to the correct part of the page %
  3. % http://tex.stackexchange.com/q/74493/5645 %
  4. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  5. \newcounter{indexanchor}
  6. \newcommand*{\xindex}[1]{%
  7. \stepcounter{indexanchor}% make anchor unique
  8. \def\theindexterm{#1}%
  9. \edef\doindexentry{\noexpand\index
  10. {\expandonce\theindexterm|indexanchor{index-\theindexanchor}}}%
  11. \raisebox{\baselineskip}{\hypertarget{index-\theindexanchor}%
  12. {\doindexentry}}%
  13. }
  14. \newcommand*{\indexanchor}[2]{\hyperlink{#1}{#2}}
  15. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  16. % Define theorems %
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18. \theoremstyle{break}
  19. \setlength\theoremindent{0.7cm}
  20. \theoremheaderfont{\kern-0.7cm\normalfont\bfseries}
  21. \theorembodyfont{\normalfont} % nicht mehr kursiv
  22. \newframedtheorem{satz}{Satz}[chapter]
  23. \newframedtheorem{lemma}[satz]{Lemma}
  24. \newtheorem{korollar}[satz]{Korollar}
  25. \newtheorem{plaindefinition}{Definition}
  26. \newenvironment{definition}{\begin{plaindefinition}}{\end{plaindefinition}}
  27. \newenvironment{definition*}{\begin{plaindefinition*}}{\end{plaindefinition*}}
  28. \newtheorem{beispiel}{Beispiel}
  29. \newtheorem{bemerkung}{Bemerkung}
  30. \theoremstyle{nonumberplain}
  31. \newtheorem{beweis}{Beweis:}
  32. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  33. \def\fB{\mathfrak{B}}%Für Basis
  34. \def\fT{\mathfrak{T}}%Für Topologie
  35. \renewcommand{\qed}{\hfill\blacksquare}
  36. \newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
  37. \newcommand{\powerset}[1]{\mathcal{P}(#1)}
  38. \def\mdc{\ensuremath{\mathbb{C}}}
  39. \def\mdr{\ensuremath{\mathbb{R}}}
  40. \def\mdq{\ensuremath{\mathbb{Q}}}
  41. \def\mdz{\ensuremath{\mathbb{Z}}}
  42. \def\mdn{\ensuremath{\mathbb{N}}}
  43. \def\gdw{\ensuremath{\Leftrightarrow}}