shortcuts.sty 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  50. \def\fB{\mathfrak{B}}%Für Basis
  51. \def\fT{\mathfrak{T}}%Für Topologie
  52. \renewcommand{\qed}{\hfill\blacksquare}
  53. \newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
  54. \newcommand{\powerset}[1]{\mathcal{P}(#1)}
  55. \def\praum{\ensuremath{\mathcal{P}}}
  56. \def\mdp{\ensuremath{\mathbb{P}}}
  57. \def\mdc{\ensuremath{\mathbb{C}}}
  58. \def\mdr{\ensuremath{\mathbb{R}}}
  59. \def\mdq{\ensuremath{\mathbb{Q}}}
  60. \def\mdz{\ensuremath{\mathbb{Z}}}
  61. \def\mdn{\ensuremath{\mathbb{N}}}
  62. \def\gdw{\ensuremath{\Leftrightarrow}}
  63. \def\atlas{\ensuremath{\mathcal{A}}}
  64. \DeclareMathOperator{\rang}{rg}
  65. \def\GL{\ensuremath{\mathrm{GL}}}
  66. \def\SL{\ensuremath{\mathrm{SL}}}
  67. \newcommand\mapsfrom{\mathrel{\reflectbox{\ensuremath{\mapsto}}}}
  68. \newcommand\dcup{\mathbin{\dot{\cup}}}
  69. \newcommand{\id}{\textnormal{id}}
  70. \DeclareMathOperator{\Deck}{Deck}
  71. \DeclareMathOperator{\Fix}{Fix}
  72. \DeclareMathOperator{\Iso}{Iso}
  73. \DeclareMathOperator{\grad}{grad}
  74. %%%Text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  75. \newcommand\obda{o.~B.~d.~A.\xspace}
  76. \newcommand\Obda{O.~B.~d.~A.\xspace}
  77. \newcommand{\ts}[1]{\textnormal{#1}} % textual subscript
  78. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%