%%
%% This is file `tudscrsupervisor.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tudscr-version.dtx  (with options: `package,supervisor')
%% tudscr-supervisor.dtx  (with options: `package')
%% tudscr-fields.dtx  (with options: `package,supervisor')
%% tudscr-locale.dtx  (with options: `package,supervisor')
%% 
%% ============================================================================
%% 
%%  TUD-KOMA-Script
%%  Copyright (c) Falk Hanisch <tudscr@gmail.com>, 2012-2015
%% 
%% ============================================================================
%% 
%%  This work may be distributed and/or modified under the conditions of the
%%  LaTeX Project Public License, version 1.3c of the license. The latest
%%  version of this license is in http://www.latex-project.org/lppl.txt and
%%  version 1.3c or later is part of all distributions of LaTeX 2005/12/01
%%  or later and of this work. This work has the LPPL maintenance status
%%  "author-maintained". The current maintainer and author of this work
%%  is Falk Hanisch.
%% 
%% ----------------------------------------------------------------------------
%% 
%%  Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz
%%  in der Version 1.3c, verteilt und/oder veraendert werden. Die aktuelle
%%  Version dieser Lizenz ist http://www.latex-project.org/lppl.txt und
%%  Version 1.3c oder spaeter ist Teil aller Verteilungen von LaTeX 2005/12/01
%%  oder spaeter und dieses Werks. Dieses Werk hat den LPPL-Verwaltungs-Status
%%  "author-maintained", wird somit allein durch den Autor verwaltet. Der
%%  aktuelle Verwalter und Autor dieses Werkes ist Falk Hanisch.
%% 
%% ============================================================================
%% 
%%% From File: tudscr-version.dtx
\begingroup%
  \catcode`\@11\relax%
  \ifx\TUDVersion\undefined%
    \newcommand*\@TUDVersion[1]{\gdef\TUDVersion{#1}}%
  \else%
    \newcommand*\@TUDVersion[1]{%
      \def\@tempa{#1}%
      \ifx\TUDVersion\@tempa\else%
        \@latex@warning@no@line{%
          \noexpand\TUDVersion\space is `\TUDVersion',\MessageBreak%
          but `#1' was expected!\MessageBreak%
          You should not use classes, packages or files from\MessageBreak%
          different TUD-KOMA-Script-Bundle versions%
        }%
      \fi%
    }%
  \fi%
  \@TUDVersion{2015/07/24 v2.04a TUD-KOMA-Script}%
\endgroup%
\providecommand*\tudscrmail{tudscr@gmail.com}
\@ifundefined{TUDClassName}{%
  \PackageError{%
    tudscrsupervisor%
  }{Unsupported class found}{%
    This package can only be used with a class out of the\MessageBreak%
    tudscr bundle (tudscrbook, tudscrreprt, tudscrartcl).%
  }
  \endinput
}{}
\@ifundefined{TUDScript}{%
  \DeclareRobustCommand{\TUDScript}{%
    \ifdin{TUD-KOMA-SCRIPT}{%
      \textsf{T\kern.05em U\kern.05em D\kern.1em-\kern.1em}\KOMAScript%
    }\csname xspace\endcsname%
  }%
}{}
%%% From File: tudscr-supervisor.dtx
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tudscrsupervisor}[%
  2015/07/24 v2.04a TUD-KOMA-Script
  package
  (commands for supervisors)%
]
\newenvironment{task}[1][]{%
  \cleardoubleoddpage%
  \def\@headline{}%
  \TUD@parameter{tudpage}{%
    \TUD@parameter@define{headline}{\def\@headline{##1}}%
    \TUD@parameter@let{line}{headline}%
    \TUD@parameter@sethandler{\TUD@parameter@set{tudpage}{headline=##1}}%
  }%
  \tudpage[pagestyle=empty,#1]%
  \tudbookmark{\taskname}{task}%
  \subsection*{%
    \ifx\@headline\@empty%
      \taskname\space%
      \ifx\tasktext\@empty\else\ifx\@thesis\@empty\else%
        \ignorespaces\tasktext\space\trim@spaces{\@thesis}%
      \fi\fi%
    \else\@headline\fi%
  }%
  \tud@author@table%
}{%
  \def\and{%
    \tabularnewline%
    \ifx\supervisorothername\@empty\else\supervisorothername\@titledelim\fi%
      & \def\and{\tabularnewline &}%
  }%
  \removelastskip%
  \ifdim\parskip>\z@\vskip\parskip\else\vskip\topsep\fi\medskip%
  \begingroup%
  \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative%
  \begin{tabular}{@{}p{\tud@dim@table}l@{}}%
    \supervisorname\@titledelim &
      \@supervisor\tabularnewline[\smallskipamount]%
    \issuedatetext\@titledelim & \@issuedate\tabularnewline%
    \duedatetext\@titledelim & \@duedate\tabularnewline%
  \end{tabular}%
  \vskip\tud@signatureskip\noindent%
  \ifx\@chairman\@empty\else%
    \begin{tabular}{@{}l@{}}%
      \@chairman\tabularnewline%
      \chairmanname\tabularnewline%
    \end{tabular}%
    \hfill%
  \fi%
  \ifx\@professor\@empty\else%
    \begin{tabular}{@{}l@{}}%
      \@professor\tabularnewline%
      \professorname\tabularnewline%
    \end{tabular}%
  \fi%
  \par%
  \endgroup%
  \endtudpage%
  \aftergroup\cleardoublepage%
}
\newcommand\taskform[3][]{%
  \begin{task}[#1]
    \removelastskip%
    \ifxblank{#2}{}{\minisec{\objectivesname}#2}%
    \ifxblank{#3}{}{%
      \minisec{\focusname}%
      \begin{itemize}\tud@RaggedRight%
        #3
      \end{itemize}%
    }%
  \end{task}%
}
\newenvironment{evaluation}[1][]{%
  \cleardoubleoddpage%
  \def\@headline{}%
  \TUD@parameter{tudpage}{%
    \TUD@parameter@define{headline}{\def\@headline{##1}}%
    \TUD@parameter@let{line}{headline}%
    \TUD@parameter@define{grade}{\def\@grade{##1}}%
    \TUD@parameter@sethandler{\TUD@parameter@set{tudpage}{headline=##1}}%
  }%
  \tudpage[pagestyle=empty,#1]%
  \tudbookmark{\evaluationname}{evaluation}%
  \subsection*{%
    \ifx\@headline\@empty%
      \evaluationname\space%
      \ifx\evaluationtext\@empty\else\ifx\@thesis\@empty\else%
        \ignorespaces\evaluationtext\space\trim@spaces{\@thesis}%
      \fi\fi%
    \else\@headline\fi%
  }%
  \tud@author@table%
}{%
  \removelastskip%
  \ifdim\parskip>\z@\vskip\parskip\else\vskip\topsep\fi%
  \setlength{\@tempskipa}{\smallskipamount}%
  \ifx\@grade\@empty\else%
    \vskip\@tempskipa\noindent%
    \gradetext%
    \setlength{\@tempskipa}{\bigskipamount}%
  \fi%
  \ifx\@date\@empty\else%
    \vskip\@tempskipa\noindent%
    \ifx\@place\@empty\else\@place,\nobreakspace\fi\@date%
  \fi%
  \vskip\tud@signatureskip\noindent%
  \ifx\@referee\@empty\let\@referee\@supervisor\fi%
  \let\@tempa\refereename%
  \def\and{%
    \tabularnewline%
    \@tempa%
    \endtabular%
    \hfill%
    \tabular{@{}l@{}}%
    \global\let\@tempa\refereeothername%
  }%
  \begin{tabular}{@{}l@{}}%
  \@referee%
  \tabularnewline%
  \@tempa%
  \end{tabular}%
  \hfill\null%
  \endtudpage%
  \aftergroup\cleardoublepage%
}
\newcommand\evaluationform[5][]{%
  \begin{evaluation}[#1]
    \removelastskip%
    \ifxblank{#2}{}{\minisec{\taskname}#2}%
    \ifxblank{#3}{}{\minisec{\contentname}#3}%
    \ifxblank{#4}{}{\minisec{\assessmentname}#4}%
    \ifxblank{#5}{}{\def\@grade{#5}}%
  \end{evaluation}%
}
\newcommand*\student{\author}
\newlength\tud@dim@table%
\newcommand*\tud@author@table{%
  \begingroup%
  \let\thanks\@gobble%
  \let\footnote\@gobble%
  \tud@multiple@split{@author}%
  \tud@multiple@fields@preset{@author}{\null}{}%
  \setlength\tud@dim@table{2em}%
  \edef\@tempa{%
    \namesname,\titlename,\supervisorname,\supervisorothername,%
    \issuedatetext,\duedatetext,%
    \expandafter\ifx\@matriculationnumber\@empty\else%
      \matriculationnumbername%
    \fi,%
    \expandafter\ifx\@matriculationyear\@empty\else%
      \matriculationyearname%
    \fi,%
    \expandafter\ifx\@course\@empty\else\coursename\fi,%
    \expandafter\ifx\@discipline\@empty\else\disciplinename\fi,%
  }%
  \@for\@tempb:=\@tempa\do{%
    \settowidth\@tempdima{\@tempb\@titledelim}%
    \ifdim\@tempdima>\tud@dim@table\relax%
      \setlength\tud@dim@table{\@tempdima}%
    \fi%
  }%
  \global\tud@dim@table=\tud@dim@table%
  \begingroup%
  \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative%
  \begin{tabular}{@{}p{\tud@dim@table}}%
    \ifx\@course\@empty\else%
      \coursename\@titledelim\tabularnewline%
    \fi%
    \ifx\@discipline\@empty\else%
      \disciplinename\@titledelim\tabularnewline%
    \fi%
    \namesname\@titledelim\tabularnewline%
    \ifx\@matriculationnumber\@empty\else%
      \matriculationnumbername\@titledelim\tabularnewline%
    \fi%
    \ifx\@matriculationyear\@empty\else%
      \matriculationyearname\@titledelim\tabularnewline%
    \fi%
  \end{tabular}%
  \renewcommand*\tud@split@author[2]{%
    \tud@multiple@fields@store{@author}{##1}%
    \tud@multiple@fields@preset{@author}{\null}{##1}%
    \begin{tabular}{l@{}}%
      \ifx\@course\@empty\else\@course\tabularnewline\fi%
      \ifx\@discipline\@empty\else\@discipline\tabularnewline\fi%
      \textsf{\textbf{\ignorespaces##1}}\tabularnewline%
      \ifx\@matriculationnumber\@empty\else%
        \@matriculationnumber\tabularnewline%
      \fi%
      \ifx\@matriculationyear\@empty\else%
        \@matriculationyear\tabularnewline%
      \fi%
    \end{tabular}%
    \tud@multiple@fields@restore{@author}%
    \tud@multiple@@@split{##2}{\enskip\hspace{\tabcolsep}}%
  }%
  \tud@multiple@split{@author}%
  \vskip\smallskipamount%
  \begin{tabular}{@{}p{\tud@dim@table}%
    p{\dimexpr\textwidth-\tud@dim@table-2\tabcolsep\relax}@{}}%
    \titlename\@titledelim & \tud@RaggedRight\textsf{\textbf{\@@title}}%
  \end{tabular}%
  \par%
  \endgroup%
  \ifdim\parskip>\z@\else\vskip\topsep\fi%
  \endgroup%
  \noindent\ignorespaces%
}
\patchcmd{\tud@split@author@list}{authormore}{%
  authormore,course,discipline%
}{}{\tud@patch@wrn{tud@split@author@list}}
\newenvironment{notice}[1][]{%
  \cleardoubleoddpage%
  \def\@headline{\noticename}%
  \TUD@parameter{tudpage}{%
    \TUD@parameter@define{headline}{\def\@headline{##1}}%
    \TUD@parameter@let{line}{headline}%
    \TUD@parameter@sethandler{\TUD@parameter@set{tudpage}{headline=##1}}%
  }%
  \tudpage[pagestyle=empty,#1]%
  \tudbookmark{\noticename}{notice}%
  \ifx\@date\@empty\else%
    \begingroup%
      \vspace*{-\parskip}%
      \vspace*{-2\baselineskip}%
      \raggedleft
      \@date\par%
      \vspace*{-\parskip}%
    \endgroup%
  \fi%
  \ifx\@headline\@empty\else%
    \section*{\@headline}%
  \fi%
}{%
  \ifx\@contactperson\@empty\let\@contactperson\@supervisor\fi%
  \ifx\@contactperson\@empty\else%
    \removelastskip%
    \ifdim\parskip>\z@\vskip\parskip\else\vskip\topsep\fi%
    \renewcommand*\tud@split@contactperson[2]{%
      \tud@multiple@fields@store{@contactperson}{##1}%
      \tud@multiple@fields@preset{@contactperson}{}{##1}%
      \begin{tabular}[t]{@{}l@{}}%
        \ignorespaces##1\tabularnewline%
        \ifx\@office\@empty\else\@office\tabularnewline\fi%
        \ifx\@telephone\@empty\else\@telephone\tabularnewline\fi%
        \ifx\@emailaddress\@empty\else\@emailaddress\tabularnewline\fi%
      \end{tabular}%
      \tud@multiple@fields@restore{@contactperson}%
      \tud@multiple@@@split{##2}{\hfill}%
    }%
    \subsection*{\contactpersonname}%
    \noindent\tud@multiple@split{@contactperson}\hfill\null%
  \fi%
  \endtudpage%
  \aftergroup\cleardoublepage%
}
\newcommand\noticeform[3][]{%
  \begin{notice}[#1]
    \removelastskip%
    \ifxblank{#2}{}{%
      \ifx\@@title\@empty\else%
        \minisec{\expandonce{\@@title}}%
      \fi%
      #2%
    }%
    \ifxblank{#3}{}{%
      \minisec{\focusname}%
      \begin{itemize}\tud@RaggedRight%
      #3
      \end{itemize}%
    }%
  \end{notice}%
}
%%% From File: tudscr-fields.dtx
\newcommand*\@course{}
\newrobustcmd*\course[1]{\gdef\@course{#1}}
\newcommand*\@discipline{}
\newrobustcmd*\discipline[1]{\gdef\@discipline{#1}}
\newcommand*\@chairman{}
\newcommand*\chairman[1]{\gdef\@chairman{#1}}
\newcommand*\@grade{}
\newcommand*\grade[1]{\gdef\@grade{#1}}
\newcommand*\@headline{}
\newcommand*\@issuedate{}
\newcommand*\issuedate[1]{\tud@printdate{\@issuedate}{#1}}
\newcommand*\@duedate{}
\newcommand*\duedate[1]{\tud@printdate{\@duedate}{#1}}
\newcommand*\finaldate{}
\newcommand*\maturitydate{}
\@ifpackageloaded{%
  tudscrposter%
}{}{%
  \newcommand*\@contactperson{}
  \newcommand*\contactperson[1]{\gdef\@contactperson{#1}}
  \newcommand*\@office{}
  \newrobustcmd*\office[1]{\gdef\@office{#1}}
  \newcommand*\@telephone{}
  \newrobustcmd*\telephone[1]{\gdef\@telephone{#1}}
  \newcommand*\@emailaddress{}
  \newrobustcmd*\emailaddress[2][]{\gdef\@emailaddress{#2}}
  \AfterPackage*{hyperref}{%
    \renewrobustcmd*\emailaddress[2][hidelinks]{%
      \gdef\@emailaddress{%
        \begingroup%
          \hypersetup{#1}%
          \href{mailto:#2}{#2}%
        \endgroup%
      }%
    }%
  }%
  \newcommand*\tud@multiple@fields@preset[3]{%
    \letcs\@tempa{tud@split#1@list}%
    \let\and\relax%
    \@for\@tempb:=\@tempa\do{%
      \ifx\@tempb\@empty\else%
        \edef\@tempc{\@nameuse{\@tempb}}%
        \ifstr{#2}{*}{%
          \@namedef{@\@tempb}{}%
        }{%
          \begingroup%
            \protected@expandtwoargs\in@{\@tempc}{\@nameuse{#1}}%
            \ifin@%
              \ifcsempty{@\@tempb}{\@tempc{#2}}{}%
            \fi%
          \endgroup%
        }%
      \fi%
    }%
    \begingroup%
      \let\thanks\@gobble%
      \let\footnote\@gobble%
      \sbox\z@{#3}%
    \endgroup%
  }%
  \newcommand*\tud@split@contactperson[2]{}
  \newcommand*\tud@split@contactperson@list{office,telephone,emailaddress}
}
%%% From File: tudscr-locale.dtx
\tud@locale@define{\taskname}
\tud@locale@define{\tasktext}
\tud@locale@define{\namesname}
\tud@locale@define{\titlename}
\tud@locale@define{\coursename}
\tud@locale@define{\disciplinename}
\tud@locale@define{\issuedatetext}
\tud@locale@define{\duedatetext}
\tud@locale@define{\chairmanname}
\tud@locale@define{\focusname}
\tud@locale@define{\objectivesname}
\tud@locale@define{\evaluationname}
\tud@locale@define{\evaluationtext}
\tud@locale@define{\contentname}
\tud@locale@define{\assessmentname}
\tud@locale@define{\gradetext}
\tud@locale@define{\noticename}
\tud@locale@define{\contactpersonname}
\tud@locale@german{\taskname}{Aufgabenstellung}%
\tud@locale@german{\tasktext}{f\"ur die Anfertigung einer}%
\tud@locale@german{\namesname}{Name}%
\tud@locale@german{\titlename}{Titel}%
\tud@locale@german{\coursename}{Studiengang}%
\tud@locale@german{\disciplinename}{Studienrichtung}%
\tud@locale@german{\issuedatetext}{Ausgeh\"andigt am}%
\tud@locale@german{\duedatetext}{Einzureichen am}%
\tud@locale@german{\chairmanname}{Pr\"ufungsausschussvorsitzender}%
\tud@locale@german{\focusname}{Schwerpunkte der Arbeit}%
\tud@locale@german{\objectivesname}{Ziele der Arbeit}%
\tud@locale@german{\evaluationname}{Gutachten}%
\tud@locale@german{\evaluationtext}{f\"ur die}%
\tud@locale@german{\contentname}{Inhalt}%
\tud@locale@german{\assessmentname}{Bewertung}%
\tud@locale@german{\gradetext}{%
  Die Arbeit wird mit der Note \textbf{\@grade} bewertet.%
}
\tud@locale@german{\noticename}{Aushang}%
\tud@locale@german{\contactpersonname}{Ansprechpartner}%
\tud@locale@english{\taskname}{Task}%
\tud@locale@english{\tasktext}{for the preparation of a}%
\tud@locale@english{\namesname}{Name}%
\tud@locale@english{\titlename}{Title}%
\tud@locale@english{\coursename}{Course}%
\tud@locale@english{\disciplinename}{Discipline}%
\tud@locale@english{\issuedatetext}{Issued on}%
\tud@locale@english{\duedatetext}{Due date for submission}%
\tud@locale@english{\chairmanname}{Chairman of the Audit Committee}%
\tud@locale@english{\focusname}{Focus of work}%
\tud@locale@english{\objectivesname}{Objectives of work}%
\tud@locale@english{\evaluationname}{Evaluation}%
\tud@locale@english{\evaluationtext}{for the}%
\tud@locale@english{\contentname}{Content}%
\tud@locale@english{\assessmentname}{Assessment}%
\tud@locale@english{\gradetext}{%
  The thesis is evaluated with a grade of \textbf{\@grade}.%
}
\tud@locale@english{\noticename}{Notice}%
\tud@locale@english{\contactpersonname}{Contact}%
\endinput
%%
%% End of file `tudscrsupervisor.sty'.
