%%
%% This is file `tudscrsupervisor.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tudscr-version.dtx  (with options: `package,supervisor,identify')
%% tudscr-supervisor.dtx  (with options: `package,supervisor,identify')
%% tudscr-fields.dtx  (with options: `package,supervisor,body')
%% tudscr-localization.dtx  (with options: `package,supervisor,body')
%% tudscr-supervisor.dtx  (with options: `package,supervisor,body')
%% 
%% TUD-Script -- Corporate Design of Technische Universitaet Dresden
%%               2022/08/09 v2.06o TUD-Script
%% 
%% Copyright (C) Falk Hanisch <hanisch.latex@outlook.com>, 2012-2022
%%               https://github.com/tud-cd/tudscr
%%               https://latex.wcms-file3.tu-dresden.de/phpBB3/
%% 
%% 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 (no git version info was found)
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\begingroup
  \catcode`\@11\relax%
  \ifx\TUD@Version\@undefined%
    \newcommand*\TUD@@Version[2]{%
      \gdef\TUD@Version{#1}%
      \gdef\TUD@KOMAVersion{#2}%
    }%
  \else%
    \newcommand*\TUD@@Version[2]{%
      \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{2022/08/09 v2.06o TUD-Script}{2022/05/01 v3.36 KOMA-Script}%
  \ifx\TUDScriptVersion\@undefined%
    \xdef\TUDScriptVersion{\TUD@Version}%
    \def\@tempa#1 v#2 #3\relax#4\relax#5{\gdef#5{#2}}%
    \expandafter\@tempa\TUD@Version ? ?\relax\relax{\TUDScriptVersionNumber}%
    \expandafter\@tempa\TUD@KOMAVersion ? ?\relax\relax{\TUD@KOMAVersionNumber}%
  \fi%
\endgroup
\@ifundefined{TUDScript}{%
  \DeclareRobustCommand\TUDScript{%
    \mbox{%
      \textsf{%
        T\kern.05em U\kern.05em D\kern.1em-\kern.1em Script%
      }%
    }\ifcsname xspace\endcsname\xspace\fi%
  }%
}{}
\providecommand*\TUDScriptContact{hanisch.latex@outlook.com}
\providecommand*\TUDScriptRepository{https://github.com/tud-cd/tudscr}
\providecommand*\TUDScriptForum{https://latex.wcms-file3.tu-dresden.de/phpBB3/}
\providecommand*\TUD@Class@Check[1]{%
  \ifx\TUD@Class@Name\@undefined%
    \PackageError{#1}{TUD-Script class not loaded}{%
      This package requires a class of the TUD-Script bundle\MessageBreak%
      (tudscrbook, tudscrreprt, tudscrartcl, tudscrposter).%
    }%
    \DeclareOption*{}%
    \ProcessOptions\relax%
    \expandafter\endinput%
  \fi%
}%
%%%% From File: tudscr-supervisor.dtx (no git version info was found)
\ProvidesPackage{tudscrsupervisor}[%
  2022/08/09 v2.06o TUD-Script
  package (commands for supervisors)%
]
\TUD@Class@Check{tudscrsupervisor}
%%%% From File: tudscr-fields.dtx (no git version info was found)
\newcommand*\@chairman{}
\newcommand*\chairman[1]{\tud@trim@field\@chairman{#1}}
\newcommand*\@grade{}
\newcommand*\grade[1]{\tud@trim@field\@grade{#1}}
\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]{\tud@trim@field\@contactperson{#1}}
\newcommand*\@office{}
\newrobustcmd*\office[1]{\tud@trim@field\@office{#1}}
\newcommand*\@telephone{}
\newrobustcmd*\telephone[1]{\tud@trim@field\@telephone{#1}}
\newcommand*\@telefax{}
\newrobustcmd*\telefax[1]{\tud@trim@field\@telefax{#1}}
\newcommand*\tud@split@contactperson@do[2]{}
\newcommand*\tud@split@contactperson@list{emailaddress,office,telephone,telefax}
\fi
%%%% From File: tudscr-localization.dtx (no git version info was found)
\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}
%%%% From File: tudscr-supervisor.dtx (no git version info was found)
\newcommand*\tud@multiple@fields@output{}
\newcommand*\tud@multiple@fields@style{table}
\newcommand*\student{\author}
\tud@newdim\tud@dim@authortable
\newcommand*\tud@authortable@set{%
  \begingroup%
  \let\thanks\@gobble%
  \let\footnote\@gobble%
  \tud@multiple@split{@author}%
  \tud@multiple@fields@preset{@author}{\null}{}%
  \tud@setdim\tud@dim@authortable{2em}%
  \def\@tempb##1{%
    \tud@if@strempty{\csname @##1\endcsname}{}{%
      \eappto\@tempa{,\expandafter\noexpand\csname ##1name\endcsname}%
    }%
  }%
  \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@dim@authortable\relax%
      \tud@setdim\tud@dim@authortable{\@tempdima}%
    \fi%
  }%
  \global\tud@dim@authortable=\tud@dim@authortable%
  \begingroup%
  \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative%
  \begin{tabular}{@{}p{\tud@dim@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@dim@authortable}%
    p{\dimexpr\textwidth-\tabcolsep*2-\tud@dim@authortable\relax}@{}}%
    \titlename\tud@title@delimiter & \tud@RaggedRight\textsf{\textbf{\@@title}}%
  \end{tabular}%
  \par%
  \endgroup%
  \ifdim\parskip>\z@\else\vskip\topsep\fi%
  \endgroup%
  \noindent\ignorespaces%
}
\newcommand*\@headline{}
\newenvironment{task}[1][]{%
  \cleardoubleoddpage%
  \let\@headline\@empty%
  \TUD@parameter@family{tudpage}{%
    \TUD@parameter@def{headline}{\tud@trim@field\@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{%
    \tud@if@strequal{\tud@multiple@fields@style}{table}{%
      \def\and{%
        \tabularnewline%
        \tud@if@strempty{\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@dim@authortable}l@{}}%
    \ifx\@referee\@empty\else%
      \refereename\tud@title@delimiter & %
        \tud@multiple@fields@output{referee}\tabularnewline[1\smallskipamount]%
    \fi%
    \supervisorname\tud@title@delimiter & %
      \tud@multiple@fields@output{supervisor}\tabularnewline[1\smallskipamount]%
    \issuedatetext\tud@title@delimiter & \@issuedate\tabularnewline%
    \duedatetext\tud@title@delimiter & \@duedate\tabularnewline%
  \end{tabular}%
  \vskip\tud@glue@signaturevskip\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}{\tud@trim@field\@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%
  \tud@setglue\@tempskipa{\smallskipamount}%
  \ifx\@grade\@empty\else%
    \vskip\@tempskipa\noindent%
    \gradetext%
    \tud@setglue\@tempskipa{\bigskipamount}%
  \fi%
  \ifx\@date\@empty\else%
    \vskip\@tempskipa\noindent%
    \ifx\@place\@empty\else\@place,\nobreakspace\fi\@date%
  \fi%
  \vskip\tud@glue@signaturevskip\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}{\tud@trim@field\@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\@emailaddress\@empty\else\@emailaddress\tabularnewline\fi%
        \ifx\@office\@empty\else\@office\tabularnewline\fi%
        \ifx\@telephone\@empty\else\@telephone\tabularnewline\fi%
        \ifx\@telefax\@empty\else\@telefax\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}%
}
\endinput
%%
%% End of file `tudscrsupervisor.sty'.
