2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/GeoTopo/shortcuts.sty

93 lines
3.7 KiB
Text
Raw Normal View History

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% make the index link to the correct part of the page %
% http://tex.stackexchange.com/q/74493/5645 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{indexanchor}
\newcommand*{\xindex}[1]{%
\stepcounter{indexanchor}% make anchor unique
\def\theindexterm{#1}%
\edef\doindexentry{\noexpand\index
{\expandonce\theindexterm|indexanchor{index-\theindexanchor}}}%
\raisebox{\baselineskip}{\hypertarget{index-\theindexanchor}%
{\doindexentry}}%
}
\newcommand*{\indexanchor}[2]{\hyperlink{#1}{#2}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2013-11-05 11:11:07 +01:00
% Aufgaben-Environment %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{aufgabe}
\newenvironment{aufgabe}[1][]{\refstepcounter{aufgabe}%
\ifthenelse{\isempty{#1}}%
{\subsection*{Aufgabe~\theaufgabe}}% if #1 is empty
{\subsection*{Aufgabe~\theaufgabe~(#1)}}% if #1 is not empty
\begin{adjustwidth}{1cm}{}}%
{\end{adjustwidth}}
\newenvironment{solution}[1][]{%
\subsection*{Lösung zu Aufgabe~#1}%
\begin{adjustwidth}{1cm}{}}%
{\end{adjustwidth}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define theorems %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2013-11-26 23:00:58 +01:00
\newcommand{\thmfoot}{}
2013-10-22 12:05:19 +02:00
\theoremstyle{break}
\setlength\theoremindent{0.7cm}
\theoremheaderfont{\kern-0.7cm\normalfont\bfseries}
\theorembodyfont{\normalfont} % nicht mehr kursiv
2013-11-26 23:00:58 +01:00
\theoremseparator{\thmfoot}
2013-10-22 12:05:19 +02:00
\newframedtheorem{satz}{Satz}[chapter]
\newframedtheorem{lemma}[satz]{Lemma}
2013-12-17 16:33:14 +01:00
\newframedtheorem{proposition}[satz]{Proposition}
\newtheorem{korollar}[satz]{Korollar}
2013-10-22 12:05:19 +02:00
\newtheorem{plaindefinition}{Definition}
\newenvironment{definition}{\begin{plaindefinition}}{\end{plaindefinition}}
\newenvironment{definition*}{\begin{plaindefinition*}}{\end{plaindefinition*}}
\newtheorem{beispiel}{Beispiel}
\newtheorem{bemerkung}{Bemerkung}
\theoremstyle{nonumberplain}
\newtheorem{beweis}{Beweis:}
2014-01-11 23:27:43 +01:00
\newtheorem{behauptung}{Beh.:}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2013-10-22 12:05:19 +02:00
\def\fB{\mathfrak{B}}%Für Basis
\def\fT{\mathfrak{T}}%Für Topologie
\renewcommand{\qed}{\hfill\blacksquare}
\newcommand{\qedwhite}{\hfill \ensuremath{\Box}}
2013-10-22 12:05:19 +02:00
\newcommand{\powerset}[1]{\mathcal{P}(#1)}
2013-11-29 21:47:59 +01:00
\def\praum{\ensuremath{\mathcal{P}}}
2013-11-13 16:54:25 +01:00
\def\mdp{\ensuremath{\mathbb{P}}}
\def\mdc{\ensuremath{\mathbb{C}}}
2013-10-22 12:05:19 +02:00
\def\mdr{\ensuremath{\mathbb{R}}}
2013-10-22 20:14:28 +02:00
\def\mdq{\ensuremath{\mathbb{Q}}}
\def\mdz{\ensuremath{\mathbb{Z}}}
\def\mdn{\ensuremath{\mathbb{N}}}
2013-10-22 12:05:19 +02:00
\def\gdw{\ensuremath{\Leftrightarrow}}
2013-11-13 16:54:25 +01:00
\def\atlas{\ensuremath{\mathcal{A}}}
2013-11-21 19:01:08 +01:00
\DeclareMathOperator{\rang}{rg}
2013-11-13 16:54:25 +01:00
\def\GL{\ensuremath{\mathrm{GL}}}
2013-12-22 19:07:52 +01:00
\def\SL{\ensuremath{\mathrm{SL}}}
2013-11-13 16:54:25 +01:00
\newcommand\mapsfrom{\mathrel{\reflectbox{\ensuremath{\mapsto}}}}
2013-11-14 18:28:32 +01:00
\newcommand\dcup{\mathbin{\dot{\cup}}}
2013-12-22 19:07:52 +01:00
\newcommand{\id}{\textnormal{id}}
2013-12-22 16:27:58 +01:00
\DeclareMathOperator{\Deck}{Deck}
\DeclareMathOperator{\Fix}{Fix}
2013-12-22 19:07:52 +01:00
\DeclareMathOperator{\Iso}{Iso}
\DeclareMathOperator{\grad}{grad}
2014-01-08 17:49:46 +01:00
\DeclareMathOperator{\Perm}{Perm}
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\Homoo}{Homöo}
2013-11-28 17:28:06 +01:00
%%%Text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\obda{o.~B.~d.~A.\xspace}
\newcommand\Obda{O.~B.~d.~A.\xspace}
2013-12-22 19:07:52 +01:00
\newcommand{\ts}[1]{\textnormal{#1}} % textual subscript
2013-11-28 19:59:50 +01:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2014-01-08 17:49:46 +01:00
% http://tex.stackexchange.com/a/101138/5645
\newcommand\rtilde[1]{\widetilde{\mathit{#1}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\crefname{satz}{Satz}{Sätze}