\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage[american,naustrian]{babel}
\usepackage{makeidx}
\usepackage{color}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{float}
\usepackage{latexsym}
\usepackage{array}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{textcomp}
\usepackage{verbatim}
\usepackage{ifthen}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{pdfpages}
\usepackage{marvosym}
\usepackage{twoopt}
\usepackage{picinpar}
\usepackage{graphicx}
\usepackage{ulem}
\usepackage{amsmath}
\usepackage[left]{eurosym}
\DeclareUnicodeCharacter{20AC}{\text{\euro}}

%-------------------------------- Seitenformatierungen
\def\PageTest{
	\voffset -10.5mm             \advance\voffset        by -20mm
	\hoffset -0.5mm
	\oddsidemargin5.0mm          \advance\oddsidemargin  by -20mm
	\evensidemargin5.0mm         \advance\evensidemargin by -20mm
	\textwidth150mm              \advance\textwidth      by  40mm
	\textheight640pt             \advance\textheight     by  40mm
	\parskip3pt plus2pt
	\parindent0pt
	\pagestyle{empty}
}
\def\PageQuestion{
	\voffset -10.5mm              \advance\voffset        by -10mm
	\hoffset -0.5mm
	\oddsidemargin5.0mm          \advance\oddsidemargin  by -10mm
	\evensidemargin5.0mm         \advance\evensidemargin by -10mm
	\textwidth150mm              \advance\textwidth      by  20mm
	\textheight640pt             \advance\textheight     by  35mm
	\parskip3pt plus2pt
	\parindent0pt
	%\pagestyle{empty}
	\setcounter{page}{1}
	\pagenumbering{arabic}
	\pagestyle{plain}
}
\def\PageNormal{
	\voffset -10.5mm              \advance\voffset        by -10mm
	\hoffset -0.5mm
	\oddsidemargin5.0mm          \advance\oddsidemargin  by -10mm
	\evensidemargin5.0mm         \advance\evensidemargin by -10mm
	\textwidth150mm              \advance\textwidth      by  20mm
	\textheight640pt             \advance\textheight     by  35mm
	\parskip3pt plus2pt
	\parindent0pt
	\setcounter{page}{1}
	\pagenumbering{arabic}
	\pagestyle{plain}
}

% ------------------------ allgemeine Definitionen ----------------------------
\def\titel#1{
  \pagenumbering{roman}	
  \title{#1} 
  \author{\name}
  \maketitle
  \setcounter{page}{1} 
  \tableofcontents
  \clearpage
  \pagenumbering{arabic}
}

% Cloze-Fragen-Platzhalter
\def\clozequestion{
	\colorbox{lightyellow}{\fbox{\raisebox{25pt}{\hbox to 30mm{}}}}  % mit Rahmen
	%\colorbox{lightyellow}{\raisebox{25pt}{\hbox to 30mm{}}}	     % ohne Rahmen
}
%\def\clozequestion{\rule{30mm}{1pt}}

%--------------------------------Einstellungen
\definecolor{lightyellow}{rgb}{1,1,0.8}
\definecolor{Brown}{cmyk}{0,0.81,1,0.60}
\definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
\definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
\definecolor{Orange}{cmyk}{0.5,0.7,0.9,0}
\addtolength{\topmargin}{-20pt}
\addtolength{\textheight}{10pt}	 
\pagestyle{empty}
%------------------------------------------------------------------------------------
\def\Klasse{}
\def\Gegenstand{}
\def\Arbeit{Bezeichnung}
\def\Testnummer{1.}
\def\Datum{}
%------------------------------------------------------------------------------------
\newcounter{bspnummer}
\def\v1{\smallskip\par}
\def\jpgn#1#2{\begin{minipage}{#2}    \includegraphics[width=\textwidth]{\imagepath/#1.jpg}     \end{minipage}}
\def\jpgd#1{\begin{minipage}{30mm}  \includegraphics[width=\textwidth]{\imagepath/#1.jpg}     \end{minipage}  }
\def\jpgkl#1{\begin{minipage}{50mm}  \includegraphics[width=\textwidth]{\imagepath/#1.jpg}     \end{minipage} }
\def\jpgm#1{\begin{minipage}{80mm} \includegraphics[width=\textwidth]{\imagepath/#1.jpg}     \end{minipage}  }
\def\jpggr#1{\begin{minipage}{\textwidth}\includegraphics[width=\textwidth]{\imagepath/#1.jpg} \end{minipage} }
\def\pdfn#1#2{\begin{minipage}{#2}    \includegraphics[width=\textwidth]{\imagepath/#1.pdf}     \end{minipage}}
\def\pdfd#1{\begin{minipage}{30mm}  \includegraphics[width=\textwidth]{\imagepath/#1.pdf}     \end{minipage}  }
\def\pdfkl#1{\begin{minipage}{50mm}  \includegraphics[width=\textwidth]{\imagepath/#1.pdf}     \end{minipage} }
\def\pdfm#1{\begin{minipage}{80mm} \includegraphics[width=\textwidth]{\imagepath/#1.pdf}     \end{minipage}  }
\def\pdfgr#1{\begin{minipage}{\textwidth}\includegraphics[width=\textwidth]{\imagepath/#1.pdf} \end{minipage} }

    %  Punkte Angabe
%-----------------------------------------------------------------------------------
% Gruppe als Parameter
\def\testkopf#1{\begin{tabular}{|p{12mm}|p{14mm}|p{54mm}|p{5mm}|p{25mm}|p{10mm}|p{13mm}|p{25mm}|}
\hline
Geg.&Klasse&\Arbeit&Gr.&Name&KatNr&Prozent&Note\\
\hline
\Gegenstand&\Klasse&\Testnummer&#1&&&&\medskip\\
\hline
\end{tabular}\setcounter{bspnummer}{0}\\
%\begin{tabular}{|p{10mm}|p{10mm}|p{138mm}|p{18mm}|}
%\hline Nr.&Soll&Angabe&Ist\\ \hline \end{tabular}\\
}
%---------------------------------
%Beispielkopf
\def\testbsp#1{\stepcounter{bspnummer}\begin{tabular}{|p{25mm}|p{25mm}|p{130mm}}
\hline Bsp. \the\value{bspnummer}&Soll: #1& Ist: \\\end{tabular} \\
}
%---------------------------------
% -------------------------------- Source - Code - Formatierung----------------
\newcount\Sourcenummer\Sourcenummer=0
\definecolor{Brown}{cmyk}{0,0.81,1,0.60}
\definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
\definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
\definecolor{Orange}{cmyk}{0.5,0.7,0.9,0}
\lstset{frame=ltrb,framesep=5pt,basicstyle=\small,breaklines=true,
  keywordstyle=\ttfamily\color{OliveGreen},numbers=left,
  identifierstyle=\ttfamily\color{CadetBlue}\bfseries,commentstyle=\color{Brown},
  stringstyle=\ttfamily\color{Orange}}
\lstset{literate=
    {Ö}{{\"O}}1
    {Ä}{{\"A}}1
    {Ü}{{\"U}}1
    {ß}{{\ss}}1
    {ü}{{\"u}}1
    {ä}{{\"a}}1
    {ö}{{\"o}}1
    {~}{{\textasciitilde}}1
} 

% ------------------------- Sonderzeichen ------------------------------------
\def\bs{$\backslash$}             
\def\lgk{$\lbrace$}               % Geschwungenen Klammer links
\def\rgk{$\rbrace$}      
\def\tild{$\sim$}                 % Tilde
\def\hk{\textquotesingle}         % einfaches Hochkomma
\def\hkb{\textasciigrave}	        % einfaches schräges Hochkomma
\def\prozent{\textdiscount}       % Prozentzeichen
\def\dach{$^\wedge$}  	
\def\dollar{\$}
\def\raute{$\sharp$}
%größer  $>$
%kleiner $<$
%senktrechter Strich $\mid$
%---------------------------------- Pfeile
\def\pfeillr{$\longleftrightarrow$}
\def\pfeil{$\Rightarrow$}

% ------------------------ Textformatierungen --------------------------------
%---------------------------------- Blickfangpunkte
\def\bitem{\begin{itemize} \item}
\def\eitem{\end{itemize}}
\long\def\sitem#1{\begin{tabular}{p{2mm}p{0.85\textwidth}} -& #1 \end{tabular}\\}
%---------------------------------- Einrücken
\long\def\tab#1{\makebox[#1\textwidth][1]{~}}  
\def\tabe{\tab{0.1}}
\def\tabm{\tab{0.3}}
\def\cent#1{\begin{center} #1 \end{center}}
%----------------------------------------------------
\long\def\mp#1{\begin{minipage}{0.85\textwidth} #1 \end{minipage}}
\long\def\itab#1{\begin{tabular}{p{2mm}p{0.85\textwidth}}& #1\\ \end{tabular}\\}

%------------------- Literaturverzeichniseintrag
\def\Autor#1{{#1:}}
\def\Titel#1{{\sl #1.}}
\def\Verlag#1{#1.}
\def\literatur#1#2#3#4{\bibitem{#1}{#2:}{\sl #3.}#4.}
\makeindex  

