shortcuts.sty 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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{plaindefinition}{Definition}
  43. \newenvironment{definition}{\begin{plaindefinition}}{\end{plaindefinition}}
  44. \newenvironment{definition*}{\begin{plaindefinition*}}{\end{plaindefinition*}}
  45. \newtheorem{beispiel}{Beispiel}
  46. \newtheorem{bemerkung}{Bemerkung}
  47. \theoremstyle{nonumberplain}
  48. \newtheorem{beweis}{Beweis:}
  49. \newtheorem{behauptung}{Beh.:}
  50. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  51. \def\fB{\mathfrak{B}}%Für Basis
  52. \def\fT{\mathfrak{T}}%Für Topologie
  53. \renewcommand{\qed}{\hfill\blacksquare}
  54. \newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
  55. \newcommand{\powerset}[1]{\mathcal{P}(#1)}
  56. \def\praum{\ensuremath{\mathcal{P}}}
  57. \def\mdp{\ensuremath{\mathbb{P}}}
  58. \def\mdc{\ensuremath{\mathbb{C}}}
  59. \def\mdr{\ensuremath{\mathbb{R}}}
  60. \def\mdq{\ensuremath{\mathbb{Q}}}
  61. \def\mdz{\ensuremath{\mathbb{Z}}}
  62. \def\mdn{\ensuremath{\mathbb{N}}}
  63. \def\gdw{\ensuremath{\Leftrightarrow}}
  64. \def\atlas{\ensuremath{\mathcal{A}}}
  65. \DeclareMathOperator{\rang}{rg}
  66. \def\GL{\ensuremath{\mathrm{GL}}}
  67. \def\SL{\ensuremath{\mathrm{SL}}}
  68. \newcommand\mapsfrom{\mathrel{\reflectbox{\ensuremath{\mapsto}}}}
  69. \newcommand\dcup{\mathbin{\dot{\cup}}}
  70. \newcommand{\id}{\textnormal{id}}
  71. \DeclareMathOperator{\Deck}{Deck}
  72. \DeclareMathOperator{\Fix}{Fix}
  73. \DeclareMathOperator{\Iso}{Iso}
  74. \DeclareMathOperator{\grad}{grad}
  75. \DeclareMathOperator{\Perm}{Perm}
  76. \DeclareMathOperator{\Sym}{Sym}
  77. \DeclareMathOperator{\Homoo}{Homöo}
  78. \DeclareMathOperator{\Diffeo}{Diffeo}
  79. \DeclareMathOperator{\conv}{conv}
  80. %%%Text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  81. \newcommand\obda{o.~B.~d.~A.\xspace}
  82. \newcommand\Obda{O.~B.~d.~A.\xspace}
  83. \newcommand{\ts}[1]{\textnormal{#1}} % textual subscript
  84. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  85. % http://tex.stackexchange.com/a/101138/5645
  86. \newcommand\rtilde[1]{\widetilde{\mathit{#1}}}
  87. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  88. \crefname{satz}{Satz}{Sätze}