shortcuts.sty 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. % Aufgaben-Environment %
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18. \newcounter{aufgabe}
  19. \newenvironment{aufgabe}[1][]{\refstepcounter{aufgabe}%
  20. \ifthenelse{\isempty{#1}}%
  21. {\subsection*{Aufgabe~\theaufgabe}}% if #1 is empty
  22. {\subsection*{Aufgabe~\theaufgabe~(#1)}}% if #1 is not empty
  23. \begin{adjustwidth}{1cm}{}}%
  24. {\end{adjustwidth}}
  25. \newenvironment{solution}[1][]{%
  26. \subsection*{Lösung zu Aufgabe~#1}%
  27. \begin{adjustwidth}{1cm}{}}%
  28. {\end{adjustwidth}}
  29. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  30. % Define theorems %
  31. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  32. \theoremstyle{break}
  33. \setlength\theoremindent{0.7cm}
  34. \theoremheaderfont{\kern-0.7cm\normalfont\bfseries}
  35. \theorembodyfont{\normalfont} % nicht mehr kursiv
  36. \newframedtheorem{satz}{Satz}[chapter]
  37. \newframedtheorem{lemma}[satz]{Lemma}
  38. \newtheorem{korollar}[satz]{Korollar}
  39. \newtheorem{plaindefinition}{Definition}
  40. \newenvironment{definition}{\begin{plaindefinition}}{\end{plaindefinition}}
  41. \newenvironment{definition*}{\begin{plaindefinition*}}{\end{plaindefinition*}}
  42. \newtheorem{beispiel}{Beispiel}
  43. \newtheorem{bemerkung}{Bemerkung}
  44. \theoremstyle{nonumberplain}
  45. \newtheorem{beweis}{Beweis:}
  46. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  47. \def\fB{\mathfrak{B}}%Für Basis
  48. \def\fT{\mathfrak{T}}%Für Topologie
  49. \renewcommand{\qed}{\hfill\blacksquare}
  50. \newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
  51. \newcommand{\powerset}[1]{\mathcal{P}(#1)}
  52. \def\mdp{\ensuremath{\mathbb{P}}}
  53. \def\mdc{\ensuremath{\mathbb{C}}}
  54. \def\mdr{\ensuremath{\mathbb{R}}}
  55. \def\mdq{\ensuremath{\mathbb{Q}}}
  56. \def\mdz{\ensuremath{\mathbb{Z}}}
  57. \def\mdn{\ensuremath{\mathbb{N}}}
  58. \def\gdw{\ensuremath{\Leftrightarrow}}
  59. \def\GL{\ensuremath{\mathrm{GL}}}
  60. \newcommand\mapsfrom{\mathrel{\reflectbox{\ensuremath{\mapsto}}}}
  61. \newcommand\dcup{\mathbin{\dot{\cup}}}
  62. \newcommand\obda{o.~B.~d.~A.}