shortcuts.sty 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. \newtheorem{korollar}[satz]{Korollar}
  41. \newtheorem{plaindefinition}{Definition}
  42. \newenvironment{definition}{\begin{plaindefinition}}{\end{plaindefinition}}
  43. \newenvironment{definition*}{\begin{plaindefinition*}}{\end{plaindefinition*}}
  44. \newtheorem{beispiel}{Beispiel}
  45. \newtheorem{bemerkung}{Bemerkung}
  46. \theoremstyle{nonumberplain}
  47. \newtheorem{beweis}{Beweis:}
  48. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  49. \def\fB{\mathfrak{B}}%Für Basis
  50. \def\fT{\mathfrak{T}}%Für Topologie
  51. \renewcommand{\qed}{\hfill\blacksquare}
  52. \newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
  53. \newcommand{\powerset}[1]{\mathcal{P}(#1)}
  54. \def\mdp{\ensuremath{\mathbb{P}}}
  55. \def\mdc{\ensuremath{\mathbb{C}}}
  56. \def\mdr{\ensuremath{\mathbb{R}}}
  57. \def\mdq{\ensuremath{\mathbb{Q}}}
  58. \def\mdz{\ensuremath{\mathbb{Z}}}
  59. \def\mdn{\ensuremath{\mathbb{N}}}
  60. \def\gdw{\ensuremath{\Leftrightarrow}}
  61. \def\atlas{\ensuremath{\mathcal{A}}}
  62. \DeclareMathOperator{\rang}{rg}
  63. \def\GL{\ensuremath{\mathrm{GL}}}
  64. \newcommand\mapsfrom{\mathrel{\reflectbox{\ensuremath{\mapsto}}}}
  65. \newcommand\dcup{\mathbin{\dot{\cup}}}
  66. %%%Text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  67. \newcommand\obda{o.~B.~d.~A.\xspace}
  68. \newcommand\Obda{O.~B.~d.~A.\xspace}