\ProvidesPackage{zapfding}

\RequirePackage{draftwatermark} 
\SetWatermarkText{}
\DeclareOption{antrag}{% Wasserzeichen ``Entwurf''
	\SetWatermarkText{Antrag}
}
\ProcessOptions\relax

\RequirePackage{xcolor}
\PassOptionsToPackage{dvipsnames}{xcolor}
\RequirePackage{csquotes}
\RequirePackage{xspace} 
\RequirePackage{ulem}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\cfoot{}
\lfoot{}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\newcommand{\gen}{*innen}
\addto{\captionsngerman}{\renewcommand{\refname}{Quellen}}

%%%% Mit-TeXen Kommandoset
\RequirePackage[normalem]{ulem}
\RequirePackage{microtype}

\newcommand{\replace}[2]{
	\sout{\textcolor{red}{#1}}~\textcolor{blue}{#2}}
\newcommand{\delete}[1]{
	\sout{\textcolor{red}{#1}}}
\newcommand{\add}[1]{
	\textcolor{blue}{#1}}

%%% Alternative Implementierung der Makros zum mitTeXen
\newcommand{\repl}[2]{{\ifcomments{\color{red}\sout{#1}}{\color{blue}{#2}}\else{#2}\fi}\xspace}
%\newcommand{\repl}[2]{{\color{red} \sout{#1}\xspace{\color{blue} {#2}}\else{#2}\fi}\xspace}

\let\replace\repl
\def\add#1{\repl{}{#1}}
\def\delete#1{\repl{#1}{}}

\makeatletter
\def\inserttitle{\@title}
\def\insertauthor{\@author}
\makeatother

\newif\ifcomments

\newcommand{\red}[1]{{\ifcomments\color{red}{#1}\else{#1}\fi}\xspace}
\newcommand{\blue}[1]{{\ifcomments\color{blue}{#1}\else{#1}\fi}\xspace}
\newcommand{\green}[1]{{\ifcomments\color{green}{#1}\else{#1}\fi}\xspace}

\newcommand{\initcomment}[2]{%
	\expandafter\newcommand\csname#1\endcsname{%
		\def\thiscommentname{#1}%
		\definecolor{col}{rgb}{#2}%
		\def\thiscommentcolor{col}%
		\warning{Defined comment name \thiscommentname with color \thiscommentcolor}
}}

%\renewcommand{\comment}[1]{{\ifcomments{\color{red} {#1}}{}\fi}\xspace}

\renewcommand{\comment}[2][\nobody]{
	\ifdefined#1
	{\ifcomments{#1 \expandafter\color{\thiscommentcolor}{\thiscommentname: #2}}{}\fi}\xspace
	\else
	{\ifcomments{\color{red} {#2}}{}\fi}\xspace
	\fi
}

\newcommand{\zapf}{ZaPF\xspace}

\let\oldgrqq=\grqq
\def\grqq{\oldgrqq\xspace}

\RequirePackage{endnotes} % collect references at the end of the document
\let\footnote=\endnote
\renewcommand{\notesname}{Referenzen}

\setlength{\parskip}{.6em}
\setlength{\parindent}{0mm}

\RequirePackage{geometry}
\geometry{left=2.5cm, right=2.5cm, top=2.5cm, bottom=3.5cm}


\setlength{\textheight}{23cm}
