% Greatly inspired by kernhe.sty (kernhe@web.de)

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{eisfair}



% stolen from kernhe.sty
%-------
\newif\ifpdf
\ifx\pdfoutput\undefined
 \pdffalse 
 \typeout{PDFMode   >>>> OFF}
\else
 \pdfoutput=1 
 \pdftrue  
 \typeout{PDFMode   >>>> ON}
\fi

\ifpdf % PDF Ausgabe
 \RequirePackage[pdftex]{graphicx}
 \RequirePackage[pdftex, 
                 bookmarks=true, 
                 bookmarksnumbered=true,
                 hypertexnames=false,
                 breaklinks=true,
		 colorlinks=true,
                 linkbordercolor={0 0 1}]{hyperref}
% \RequirePackage{epstopdf}
 \pdfcompresslevel=9
 \newcommand{\email}[1]{\href{mailto:#1}{E-Mail: \texttt{#1}}}
 \newcommand{\link}[1]{\href{#1}{#1}}
 \newcommand{\config}[3]{\index{#2}\hypertarget{#3}{}\label{#3}\item[#1]}
 \newcommand{\jump}[2]{\hyperlink{#1}{#2} (Seite \pageref{#1})}
 \newcommand{\smalljump}[2]{\hyperlink{#1}{#2}}
 \newcommand{\marklabel}[2]{\hypertarget{#1}{#2}\label{#1}}
 \newcommand{\footnoteback}[1][1]{\addtocounter{footnote}{-#1}\addtocounter{Hfootnote}{-#1}}

\else % HTML-Ausgabe
 \RequirePackage{graphicx}
 \RequirePackage[pdfmark, 
                 bookmarks=true, 
                 bookmarksnumbered=true,
                 hypertexnames=false,
                 breaklinks=true,
		 colorlinks=true,
                 linkbordercolor={0 0 1}]{hyperref}
 \usepackage{html}
 \newcommand{\email}[1]{\href{mailto:#1}{E-Mail: \texttt{#1}}}
 \newcommand{\link}[1]{\htmladdnormallink {#1}{#1}}
 \newcommand{\config}[3]{\index{#2} \label{#3} \item[#1]}
 \newcommand{\smalljump}[2]{\htmlref{#2}{#1}}
 \newcommand{\jump}[2]{\smalljump{#1}{#2}}
 \newcommand{\marklabel}[2]{\label{#1}#2}

\fi

% Allgemeingueltige Definitionen, die nicht vom Ausgabeformat abh"angig sind

\RequirePackage{german}
\usepackage{german}
\usepackage[latin1]{inputenc}
\usepackage{makeidx}
\usepackage{parskip}
 
\usepackage[T1]{fontenc}
\usepackage{ae}
 
\usepackage{url}
\usepackage{hyperref}
\usepackage{supertabular}
\usepackage{graphicx}

%-------

% Define


\newcommand{\var}[1]{\begin{small}#1\end{small}}
\newenvironment{example}{ \begin{small} }{ \end{small} }


%\newcommand{\jumplabel}[2]{\hyperlink{#2}{\begin{tt}#1\end{tt}}}
\newcommand{\jumplabel}[2]{\jump{#2}{#1}}

\newcommand{\achtung}[1]{\vspace{1em}{\bfseries Achtung:}\\#1\par}
\newcommand{\wichtig}[1]{\vspace{1em}{\bfseries Wichtig:}\\#1\par}

\newcommand{\pfeil}{$\Rightarrow$}

\newcommand{\eisfair}{eisfair}

\newcommand{\tag}[1]{\begin{tt}$<$#1$>$\end{tt}}


