shortcuts.sty 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. \newcommand{\thmfoot}{}
  33. \theoremstyle{break}
  34. \setlength\theoremindent{0.7cm}
  35. \theoremheaderfont{\kern-0.7cm\normalfont\bfseries}
  36. \theorembodyfont{\normalfont} % nicht mehr kursiv
  37. \theoremseparator{\thmfoot}
  38. \newframedtheorem{satz}{Satz}[chapter]
  39. \newframedtheorem{lemma}[satz]{Lemma}
  40. \newframedtheorem{proposition}[satz]{Proposition}
  41. \newtheorem{korollar}[satz]{Korollar}
  42. \newtheorem{folgerung}[satz]{Folgerung}
  43. \newtheorem{plaindefinition}{Definition}
  44. \newenvironment{definition}{\begin{plaindefinition}}{\end{plaindefinition}}
  45. \newenvironment{definition*}{\begin{plaindefinition*}}{\end{plaindefinition*}}
  46. \newtheorem{beispiel}{Beispiel}
  47. \newtheorem{bemerkung}{Bemerkung}
  48. \theoremstyle{nonumberplain}
  49. \newtheorem{beweis}{Beweis:}
  50. \newtheorem{behauptung}{Beh.:}
  51. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  52. \def\fB{\mathfrak{B}}%Für Basis
  53. \def\fT{\mathfrak{T}}%Für Topologie
  54. \renewcommand{\qed}{\hfill\blacksquare}
  55. \newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
  56. \newcommand{\powerset}[1]{\mathcal{P}(#1)}
  57. \def\praum{\ensuremath{\mathcal{P}}}
  58. \def\mdp{\ensuremath{\mathbb{P}}}
  59. \def\mdc{\ensuremath{\mathbb{C}}}
  60. \def\mdr{\ensuremath{\mathbb{R}}}
  61. \def\mdq{\ensuremath{\mathbb{Q}}}
  62. \def\mdz{\ensuremath{\mathbb{Z}}}
  63. \def\mdn{\ensuremath{\mathbb{N}}}
  64. \def\gdw{\ensuremath{\Leftrightarrow}}
  65. \def\atlas{\ensuremath{\mathcal{A}}}
  66. \DeclareMathOperator{\rang}{rg}
  67. \def\GL{\ensuremath{\mathrm{GL}}}
  68. \def\SL{\ensuremath{\mathrm{SL}}}
  69. \newcommand\mapsfrom{\mathrel{\reflectbox{\ensuremath{\mapsto}}}}
  70. \newcommand\dcup{\mathbin{\dot{\cup}}}
  71. \newcommand{\id}{\textnormal{id}}
  72. \DeclareMathOperator{\Deck}{Deck}
  73. \DeclareMathOperator{\Fix}{Fix}
  74. \DeclareMathOperator{\Iso}{Iso}
  75. \DeclareMathOperator{\grad}{grad}
  76. \DeclareMathOperator{\Perm}{Perm}
  77. \DeclareMathOperator{\Sym}{Sym}
  78. \DeclareMathOperator{\Homoo}{\textnormal{Homöo}}
  79. \DeclareMathOperator{\Diffeo}{Diffeo}
  80. \DeclareMathOperator{\conv}{conv}
  81. \DeclareMathOperator{\IWS}{IWS}
  82. %%%Text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  83. \newcommand\obda{o.~B.~d.~A.\xspace}
  84. \newcommand\Obda{O.~B.~d.~A.\xspace}
  85. \newcommand{\ts}[1]{\textnormal{#1}} % textual subscript
  86. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  87. % http://tex.stackexchange.com/a/101138/5645
  88. \newcommand\rtilde[1]{\widetilde{\mathit{#1}}}
  89. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  90. \crefname{satz}{Satz}{Sätze}
  91. \crefname{proposition}{Proposition}{Propositionen}
  92. \crefname{lemma}{Lemma}{Lemmata}
  93. \crefname{korollar}{Korollar}{Korollare}
  94. \crefname{folgerung}{Folgerung}{Folgerungen}
  95. \crefname{definition}{Definition}{Definitionen}
  96. \crefname{plaindefinition}{Definition}{Definitionen}
  97. \crefname{behauptung}{Behauptung}{Behauptungen}
  98. \crefname{beispiel}{Beispiel}{Beispiele}
  99. \crefname{aufgabe}{Aufgabe}{Aufgaben}
  100. \crefname{bemerkung}{Bemerkung}{Bemerkungen}
  101. %\let\OldAngle\angle
  102. %\let\angle\sphericalangle