%%
%% 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,supervisor')
%% tudscr-fields.dtx  (with options: `package,supervisor')
%% tudscr-localization.dtx  (with options: `package,supervisor')
%% 
%% TUD-Script -- Corporate Design of Technische Universitaet Dresden
%% 
%%   2021/07/15 v2.06n TUD-Script
%% 
%% Copyright (C) Falk Hanisch <hanisch.latex@outlook.com>, 2012-2021
%% 
%% This file was generated from file(s) of the TUD-Script bundle.
%% ----------------------------------------------------------------------------
%% 
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3c of this license or
%% any later version. 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 version 2008-05-04 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% The current maintainer and author of this work is Falk Hanisch.
%% 
%%% From File: tudscr-version.dtx
\begingroup
  \catcode`\@11\relax
  \ifx\TUD@Version\@undefined
    \newcommand*\TUD@Version@Check[1]{%
      \gdef\TUD@Version{#1}%
      \gdef\TUDScriptVersion{#1}%
      \def\@tempb##1 v##2 ##3\relax##4\relax{\gdef\TUDScriptVersionNumber{##2}}%
      \edef\@tempa{\TUD@Version}%
      \expandafter\@tempb\@tempa\relax? ? \relax\relax%
      \gdef\TUD@Version@KOMA{3.32}%
    }
  \else
    \newcommand*\TUD@Version@Check[1]{%
      \def\@tempa{#1}%
      \ifx\TUD@Version\@tempa\else%
        \@latex@warning@no@line{%
          \noexpand\TUD@Version\space is `\TUD@Version',\MessageBreak%
          but `#1' was expected!\MessageBreak%
          You should not use classes, packages or files from\MessageBreak%
          different TUD-Script-Bundle versions%
        }%
      \fi%
    }
  \fi
  \TUD@Version@Check{2021/07/15 v2.06n TUD-Script}
\endgroup
\NeedsTeXFormat{LaTeX2e}[2019/10/01]
\providecommand*\tudscrmail{hanisch.latex@outlook.com}
\ifx\TUD@Class@Name\@undefined
  \PackageError{%
    tudscrsupervisor%
  }{Unsupported class found}{%
    This package can only be used with a class out of the\MessageBreak%
    tudscr bundle (tudscrbook, tudscrreprt, tudscrartcl, tudscrposter).%
  }%
  \endinput%
\fi
\@ifundefined{TUDScript}{%
  \DeclareRobustCommand\TUDScript{%
    \textsf{%
      T\kern.05em U\kern.05em D\kern.1em-\kern.1em Script%
    }%
    \ifcsname xspace\endcsname%
      \xspace%
    \fi%
  }%
}{}
%%% From File: tudscr-supervisor.dtx
\ProvidesPackage{tudscrsupervisor}[%
  2021/07/15 v2.06n TUD-Script
  package
  (commands for supervisors)%
]
\newcommand*\tud@multiple@fields@output{}
\newcommand*\tud@multiple@fields@style{table}
\newcommand*\student{\author}
\newlength\tud@len@authortable
\newcommand*\tud@authortable@set{%
  \begingroup%
  \let\thanks\@gobble%
  \let\footnote\@gobble%
  \tud@multiple@split{@author}%
  \tud@multiple@fields@preset{@author}{\null}{}%
  \setlength\tud@len@authortable{2em}%
  \def\@tempb##1{%
    \expandafter\ifx\csname @##1\endcsname\@empty\else%
      \expandafter\appto\expandafter\@tempa\expandafter{%
        \expandafter,\csname ##1name\endcsname%
      }%
    \fi%
  }%
  \def\@tempa{%
    \namesname,\titlename,\issuedatetext,\duedatetext,\supervisorname%
  }%
  \tud@ifin@and{\@supervisor}{\appto\@tempa{,\supervisorothername}}{}%
  \@tempb{referee}%
  \tud@ifin@and{\@referee}{\appto\@tempa{,\refereeothername}}{}%
  \@tempb{matriculationnumber}%
  \@tempb{matriculationyear}%
  \@tempb{course}%
  \@tempb{discipline}%
  \@for\@tempb:=\@tempa\do{%
    \settowidth\@tempdima{\@tempb\tud@title@delimiter}%
    \ifdim\@tempdima>\tud@len@authortable\relax%
      \setlength\tud@len@authortable{\@tempdima}%
    \fi%
  }%
  \global\tud@len@authortable=\tud@len@authortable%
  \begingroup%
  \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative%
  \begin{tabular}{@{}p{\tud@len@authortable}}%
    \ifx\@course\@empty\else%
      \coursename\tud@title@delimiter\tabularnewline%
    \fi%
    \ifx\@discipline\@empty\else%
      \disciplinename\tud@title@delimiter\tabularnewline%
    \fi%
    \namesname\tud@title@delimiter\tabularnewline%
    \ifx\@matriculationnumber\@empty\else%
      \matriculationnumbername\tud@title@delimiter\tabularnewline%
    \fi%
    \ifx\@matriculationyear\@empty\else%
      \matriculationyearname\tud@title@delimiter\tabularnewline%
    \fi%
  \end{tabular}%
  \renewcommand*\tud@split@author@do[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@len@authortable}%
    p{\dimexpr\textwidth-\tud@len@authortable-2\tabcolsep\relax}@{}}%
    \titlename\tud@title@delimiter & \tud@RaggedRight\textsf{\textbf{\@@title}}%
  \end{tabular}%
  \par%
  \endgroup%
  \ifdim\parskip>\z@\else\vskip\topsep\fi%
  \endgroup%
  \noindent\ignorespaces%
}
\newenvironment{task}[1][]{%
  \cleardoubleoddpage%
  \let\@headline\@empty%
  \TUD@parameter@family{tudpage}{%
    \TUD@parameter@def{headline}{\def\@headline{##1}}%
    \TUD@parameter@let{heading}{headline}%
    \TUD@parameter@let{line}{headline}%
    \TUD@parameter@def{style}{\def\tud@multiple@fields@style{##1}}%
    \TUD@parameter@handler@default{headline}%
  }%
  \tudpage[pagestyle=empty,#1]%
  \tudbookmark{\taskname}{task}%
  \subsection*{%
    \ifx\@headline\@empty%
      \taskname\space%
      \ifx\tasktext\@empty\else\ifx\@@thesis\@empty\else%
        \ignorespaces\tasktext\space\@@thesis%
      \fi\fi%
    \else\@headline\fi%
  }%
  \tud@authortable@set%
}{%
  \def\tud@multiple@fields@output##1{%
    \ifstr{\tud@multiple@fields@style}{table}{%
      \def\and{%
        \tabularnewline%
        \ifstr{\csuse{##1othername}}{}{}{%
          \csuse{##1othername}\tud@title@delimiter%
        }%
        & \def\and{\tabularnewline &}%
      }%
    }{%
      \def\and{\unskip,\space\ignorespaces}%
    }%
    \csuse{@##1}%
  }%
  \removelastskip%
  \ifdim\parskip>\z@\vskip\parskip\else\vskip\topsep\fi\medskip%
  \begingroup%
  \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative%
  \begin{tabular}{@{}p{\tud@len@authortable}l@{}}%
    \ifx\@referee\@empty\else%
      \refereename\tud@title@delimiter & %
        \tud@multiple@fields@output{referee}\tabularnewline[\smallskipamount]%
    \fi%
    \supervisorname\tud@title@delimiter & %
      \tud@multiple@fields@output{supervisor}\tabularnewline[\smallskipamount]%
    \issuedatetext\tud@title@delimiter & \@issuedate\tabularnewline%
    \duedatetext\tud@title@delimiter & \@duedate\tabularnewline%
  \end{tabular}%
  \vskip\tud@len@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]%
    \ifblank{#2}{}{\minisec{\objectivesname}\smallskip#2}%
    \ifblank{#3}{}{%
      \minisec{\focusname}\smallskip%
      \begin{itemize}\tud@RaggedRight%
        #3%
      \end{itemize}%
    }%
  \end{task}%
}
\newenvironment{evaluation}[1][]{%
  \cleardoubleoddpage%
  \let\@headline\@empty%
  \TUD@parameter@family{tudpage}{%
    \TUD@parameter@def{headline}{\def\@headline{##1}}%
    \TUD@parameter@let{heading}{headline}%
    \TUD@parameter@let{line}{headline}%
    \TUD@parameter@def{grade}{\def\@grade{##1}}%
    \TUD@parameter@handler@default{headline}%
  }%
  \tudpage[pagestyle=empty,#1]%
  \tudbookmark{\evaluationname}{evaluation}%
  \subsection*{%
    \ifx\@headline\@empty%
      \evaluationname\space%
      \ifx\evaluationtext\@empty\else\ifx\@@thesis\@empty\else%
        \ignorespaces\evaluationtext\space\@@thesis%
      \fi\fi%
    \else\@headline\fi%
  }%
  \tud@authortable@set%
}{%
  \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@len@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]%
    \ifblank{#2}{}{\minisec{\taskname}\smallskip#2}%
    \ifblank{#3}{}{\minisec{\contentname}\smallskip#3}%
    \ifblank{#4}{}{\minisec{\assessmentname}\smallskip#4}%
    \ifblank{#5}{}{\def\@grade{#5}}%
  \end{evaluation}%
}
\newenvironment{notice}[1][]{%
  \cleardoubleoddpage%
  \def\@headline{\noticename}%
  \TUD@parameter@family{tudpage}{%
    \TUD@parameter@def{headline}{\def\@headline{##1}}%
    \TUD@parameter@let{heading}{headline}%
    \TUD@parameter@let{line}{headline}%
    \TUD@parameter@handler@default{headline}%
  }%
  \tudpage[pagestyle=empty,cdhead=date,#1]%
  \tudbookmark{\noticename}{notice}%
  \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@do[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\@telefax\@empty\else\@telefax\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]%
    \ifblank{#2}{}{%
      \ifx\@@title\@empty\else%
        \minisec{\expandonce{\@@title}}\medskip%
      \fi%
      #2%
    }%
    \ifblank{#3}{}{%
      \minisec{\focusname}\smallskip%
      \begin{itemize}\tud@RaggedRight%
      #3%
      \end{itemize}%
    }%
  \end{notice}%
}
%%% From File: tudscr-fields.dtx
\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}}
\@ifclassloaded{tudscrposter}{\@tempswafalse}{\@tempswatrue}
\if@tempswa
\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*\@telefax{}
\newrobustcmd*\telefax[1]{\gdef\@telefax{#1}}
\newcommand*\tud@split@contactperson@do[2]{}
\newcommand*\tud@split@contactperson@list{emailaddress,office,telephone,telefax}
\fi
%%% From File: tudscr-localization.dtx
\tud@localization@define{\authorname}
\tud@localization@define{\contactname}
\tud@localization@define{\contactpersonname}
\tud@localization@define{\taskname}
\tud@localization@define{\tasktext}
\tud@localization@define{\namesname}
\tud@localization@define{\issuedatetext}
\tud@localization@define{\duedatetext}
\tud@localization@define{\chairmanname}
\tud@localization@define{\focusname}
\tud@localization@define{\objectivesname}
\tud@localization@define{\evaluationname}
\tud@localization@define{\evaluationtext}
\tud@localization@define{\contentname}
\tud@localization@define{\assessmentname}
\tud@localization@define{\gradetext}
\tud@localization@define{\noticename}
\tud@localization@german{\authorname}{Autor}
\tud@localization@german{\contactname}{Kontakt}
\tud@localization@german{\contactpersonname}{Ansprechpartner}
\tud@localization@german{\taskname}{Aufgabenstellung}
\tud@localization@german{\tasktext}{f\"ur die Anfertigung einer}
\tud@localization@german{\namesname}{Name}
\tud@localization@german{\issuedatetext}{Ausgeh\"andigt am}
\tud@localization@german{\duedatetext}{Einzureichen am}
\tud@localization@german{\chairmanname}{Pr\"ufungsausschussvorsitzender}
\tud@localization@german{\focusname}{Schwerpunkte der Arbeit}
\tud@localization@german{\objectivesname}{Ziele der Arbeit}
\tud@localization@german{\evaluationname}{Gutachten}
\tud@localization@german{\evaluationtext}{f\"ur die}
\tud@localization@german{\contentname}{Inhalt}
\tud@localization@german{\assessmentname}{Bewertung}
\tud@localization@german{\gradetext}{%
  Die Arbeit wird mit der Note \textbf{\@grade} bewertet.%
}
\tud@localization@german{\noticename}{Aushang}
\tud@localization@english{\authorname}{Author}
\tud@localization@english{\contactname}{Contact}
\tud@localization@english{\contactpersonname}{Counterpart}
\tud@localization@english{\taskname}{Task}
\tud@localization@english{\tasktext}{for the preparation of a}
\tud@localization@english{\namesname}{Name}
\tud@localization@english{\issuedatetext}{Issued on}
\tud@localization@english{\duedatetext}{Due date for submission}
\tud@localization@english{\chairmanname}{Chairman of the Audit Committee}
\tud@localization@english{\focusname}{Focus of work}
\tud@localization@english{\objectivesname}{Objectives of work}
\tud@localization@english{\evaluationname}{Evaluation}
\tud@localization@english{\evaluationtext}{for the}
\tud@localization@english{\contentname}{Content}
\tud@localization@english{\assessmentname}{Assessment}
\tud@localization@english{\gradetext}{%
  The thesis is evaluated with a grade of \textbf{\@grade}.%
}
\tud@localization@english{\noticename}{Notice}
\endinput
%%
%% End of file `tudscrsupervisor.sty'.
