\NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{schulung} %%%%%%%%%%%%%%%%%%% %% Detect, if we are using pdftex to create pdf output. \newif\ifpdfoutput \@ifundefined{pdfoutput}% {\let\pdfoutput\@undefined}% {\ifcase\pdfoutput \let\pdfoutput\@undefined \else \pdfoutputtrue }% \newcommand{\befehl}[1]{\texttt{#1}} \newcommand{\argument}[1]{\textsf{#1}} \newcommand{\T}[1]{\fbox{\small\texttt{#1}}} \newcommand{\TShift}{\T{$\Uparrow$}} \newcommand{\TCtrl}{\T{Strg}} \newcommand{\TAlt}{\T{Alt}} \newcommand{\TEsc}{\T{Esc}} \newcommand{\TEnter}{\T{Enter}} \newcommand{\ST}[1]{\TShift+\T{#1}} \newcommand{\CT}[1]{\TCtrl+\T{#1}} \newcommand{\AT}[1]{\TAlt+\T{#1}} \newcommand{\kommando}[2]{\textbar\befehl{#1} \argument{#2}\textbar} \newcommand{\fachwort}[2]{\textsc{#1}\footnote{#2}} \newcommand{\zb} {z.\,B.\xspace} \newcommand{\sa} {s.\,a.\xspace} \newcommand{\ua} {u.\,a.\xspace} \newcommand{\TEV} {Thüringen Netz e.V.\xspace} %% Zähler für Aufgaben \newcounter{aufgabe}[section] \renewcommand{\theaufgabe}{\thesection.\arabic{aufgabe}} %% Lösungen für Absatzbeginn von Lösungen \newlength{\loesungslabelwidth} \settowidth{\loesungslabelwidth}{4em} \newlength{\aufgabenparskip} \setlength{\aufgabenparskip}{.5\baselineskip \@plus .3\baselineskip \@minus .2\baselineskip} \newcommand{\loesungmark}[1]{\textbf{#1}\hfil} \newcommand{\aufgabemark}[1]{\textbf{Aufgabe #1}\space} \long\def\addto@loesungen#1#2{\g@addto@macro\@loesungen{\noindent \hbox to \loesungslabelwidth{\loesungmark{#1}}#2\par}}% \newcommand{\aufgabe}[2]{\refstepcounter{aufgabe}% \begingroup \edef\@theaufgabe{\theaufgabe}% \vskip\aufgabenparskip \noindent\aufgabemark{\@theaufgabe}\ignorespaces#1\par \vskip\aufgabenparskip \expandafter\expandafter \expandafter\addto@loesungen \expandafter{\@theaufgabe}{\ignorespaces#2}% \endgroup } \def\@loesungen{} \newcommand\loesungen[1]{\section{#1}\begingroup \parindent=\loesungslabelwidth \@loesungen \endgroup} \renewcommand{\footnoterule}{} \renewcommand\@makefntext[1]{% \noindent% \hb@xt@1.8em{\textbf{\@thefnmark}\hss}#1% } %% sonstiges \DeclareRobustCommand{\urlformat}[1]{\url{#1}}% \ifpdfoutput \newcommand{\rede}[1]{\glqq#1\grqq} \else \newcommand{\rede}[1]{>>#1<<} \fi