
% devdoc.sty
% Last update: $Id$

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

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



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

\iftrue % 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{\link}[2]{\href{#1}{#2}}
 \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}}

 \usepackage{html}  % required for latex- htmlonly

\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{\link}[2]{\htmladdnormallink {#2}{#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 abhaengig sind

\RequirePackage{german}
\usepackage{german}
\usepackage{a4wide}
%\usepackage[latin1]{inputenc}
\usepackage{makeidx}
\usepackage{parskip}
\usepackage{color}

\usepackage[T1]{fontenc}
\usepackage{ae}

% 2015-01-17 switch to utf8 hbfl
\usepackage[utf8]{inputenc}

\usepackage{url}
\usepackage{hyperref}
\usepackage{supertabular}
\usepackage{graphicx}

\usepackage{array}
\usepackage{tabularx}

%-------

% Define

\definecolor{dunkelgrau}{gray}{0.55}
\definecolor{hellgrau}{gray}{0.90}
\definecolor{bildschirmgrau}{gray}{0.20}

\setlength{\fboxsep}{0.5em}
\setlength{\fboxrule}{0.5mm}


\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}}
\iftrue
        \newdimen\boxwidth
        \newcommand{\kasten}[4]{\vspace{1em}{\fcolorbox{#1}{#2}{
        \boxwidth=\hsize
        \advance\boxwidth by -1\leftmargin
        \advance\boxwidth by \itemindent
        \parbox{\boxwidth}{\textsf{\textbf{ #3 }} \\\\ #4 }}}\vspace{1em}}
\else
        \newcommand{\kasten}[4]{\textit{\textbf{ #3 } \\ #4 } \vspace{1em}}
    %   \newcommand{\kasten}[4]{\begin{sf} \begin{bfseries} #3 \end{bfseries} \\ #4 \end{sf} \vspace{1em}}
\fi
\newcommand{\achtung}[1]{\kasten{red}{white}{ACHTUNG}{#1}}
\newcommand{\hinweis}[1]{\kasten{dunkelgrau}{hellgrau}{Hinweis}{#1}}
\newcommand{\tipp}[1]{\kasten{dunkelgrau}{hellgrau}{Tipp f"ur fortgeschrittene Entwickler}{#1}}
\newcommand{\subsubsubsection}[1]{\par\noindent{\it #1}}

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

\usepackage{xspace}
\newcommand{\eisfair}{\emph{eisfair}\xspace}
\newcommand{\fli}{\emph{fli4l}\xspace}
\newcommand{\package}{{\texttt\textit\$package}}
\newcommand{\PACKAGE}{{\texttt\textit\$PACKAGE}}

\newcommand{\tag}[1]{\texttt{$<$#1$>$}}


% macro zur Darstellung einer Bildschirmausgabe
%===============================================
\usepackage{color}
\usepackage{alltt}
\usepackage{colortbl}
\usepackage{array}
\iftrue
        \newcommand{\bildschirmx}[2]{\begin{alltt}\color{#1} #2 \\\end{alltt} }
        \newenvironment{bildschirm}
        { \begin{small} \begin{alltt}
        \begin{tabular*}{\textwidth}{>{\columncolor{bildschirmgrau}\color{white}}b{\textwidth}} }
        { \end{tabular*} \end{alltt} \end{small} }
\else
        % Das hier funktioniert noch nicht.
        \usepackage{fancyvrb}
        \newenvironment{bildschirm}
        { \begin{verbatim*}%
            [fontfamily=courier]
            [formatcom=\color{red}]
            [frame=single,framesep=5mm] }
        { \end{verbatim*} \vspace{1em} }
\fi
