\NeedsTeXFormat{LaTeX2e}[1996/06/01]
\ProvidesPackage{informatik}

%%%%%%%%%%%%%%%%%%%%%% 
% Xenia Rendtel
% Letzte Aenderung: 19.01.2009
%%%%%%%%%%%%%%%%%%%%%% 


\usepackage{listings}

%% Algemeine Definition fuer den Quellcode
\newcommand{\sourceall}[4][]{

  \footnotesize \lstset{ title={\scriptsize{#1}}, numbers=left, language=#2,
    frame=shadowbox, flexiblecolumns=true, showspaces=false, showtabs=false,
    showstringspaces=false, tabsize=2, emptylines=1, linewidth=0.95\linewidth,
    breaklines=true, #4 }
  \lstinputlisting{#3} 
  \normalsize }


%% Angepasst fuer die einzelnen Sprachen

\newcommand{\sourcepstricks}[2][]{\sourceall[#1]{PSTricks}{#2}{morecomment=[l][keywordstyle]{\%}}
}

\newcommand{\sourcetex}[2][]{\sourceall[#1]{Tex}{#2}{morecomment=[l][keywordstyle]{\%}}
}


\newcommand{\source}[2][]{\sourceall[#1]{}{#2}{morecomment=[l][keywordstyle]{\#}} }
\newcommand{\sourcederive}[2][]{\sourceall[#1]{}{#2}{}}
\newcommand{\sourcehtml}[2][]{\sourceall[#1]{HTML}{#2}{}}
\newcommand{\sourceperl}[2][]{\sourceall[#1]{perl}{#2}{morecomment=[l][keywordstyle]{\#}}}
\newcommand{\ok}[1][]{ \quad \CheckedBox \quad } \newcommand{\link}[2][]{
  \textit{\href{#1}{#2}} }

