%%
%% This is file `minutes.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% minutes.dtx  (with options: `package')
%% 
%% The original file is loadable on:
%% CTAN: macros/latex/contrib/supported/minutes
%%      ftp.dante.de/macros/latex/contrib/supported/minutes/
%%
\def\fileversion{V1.3}
\def\filedate{2000/06/01}
%%
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{minutes}[\filedate\space\fileversion\space Minutes-Package]
\RequirePackage{multicol}
\RequirePackage{xspace}
\newif\ifhyperloaded
\@ifpackageloaded{hyperref}{
\global\hyperloadedtrue
\RequirePackage{minitoc_href}
}{
\global\hyperloadedfalse
\RequirePackage{minitoc}
}
\long\def\ifdefined#1#2#3{\expandafter\ifx\csname#1\endcsname\relax#3\else#2\fi}
\newcounter{columns}\setcounter{columns}{1}
\DeclareOption{OneColumn}{
\setcounter{columns}{1}
}
\DeclareOption{TwoColumn}{
\setcounter{columns}{2}
}
\pagestyle{headings}
\ifdefined{chapter}{
    \setcounter{tocdepth}{1}
    \setcounter{minitocdepth}{4}
    \dominitoc
    }{\relax}
\def\name{}
\def\address{}
\def\phone{}
\def\eMail{}
\InputIfFileExists{Minutes.cfg}{\typeout{Using the configuration %
file Minutes.cfg}}{}
\def\min@maketitleList{
\minutes@titlesettrue
\ifdefined{chapter}%
{\chapter[\min@titleshort]{\min@title}}%
{\part*{\min@title}\setcounter{section}{0}}
\def\min@writeNotRelax##1##2{
\ifx\relax##1\else
\item[##2] ##1
\fi}
\begin{quote}
\begin{description}
\settowidth{\leftmargin}{10cm}
\min@writeNotRelax{\min@subtitle}{}
\min@writeNotRelax{\min@moderation}{\min@textModerator}
\min@writeNotRelax{\min@minutetaker}{\min@textMinutesTaker}
\min@writeNotRelax{\min@participiant}{\min@textPresent}
\min@writeNotRelax{\min@missing}{\min@textAbsent}
\min@writeNotRelax{\min@missingExc}{\min@textAbsentExcused}
\min@writeNotRelax{\min@missingNoExc}{\min@textAbsentNoExcuse}
\ifx\relax\min@date\else
\item [\min@textDate] \min@date\
    \min@starttime
    \ifx\relax\min@endtime\else -- \min@endtime\fi
\fi
\min@writeNotRelax{\min@cc}{\min@textCc}
\end{description}
\end{quote}
\ifdefined{chapter}{\minitoc}{\tableofcontents}
\ifnum\value{columns} > 1
\begin{multicols}{\value{columns}}[][1cm]
\fi
}%
%% \subsubsection{Table-like title}
\def\min@maketitleTable{
\minutes@titlesettrue
\ifdefined{chapter}%
{\chapter[\min@titleshort]{\min@title}}%
{\part*{\min@title}\setcounter{section}{0}}
\min@subtitle
\begin{tabular}{|*{2}{p{0.45\textwidth}|}}\hline
  \min@textModerator: \min@moderation
  &\min@textDate: \min@date\ \min@starttime \ifx\relax\min@endtime\else --
  \min@endtime\fi
  \\\hline
  \min@textMinutesTaker: \min@minutetaker
  &\min@textCc: \min@cc\\\hline
  \min@textPresent: \min@participiant
  & \min@textAbsent: \min@missing
  \\\hline
\end{tabular}
\ifdefined{chapter}{\minitoc}{\tableofcontents}
\ifnum\value{columns} > 1
\begin{multicols}{\value{columns}}[][1cm]
\fi
}%
\newcounter{min@titlestyle}
\DeclareOption{ListTitle}{
\setcounter{min@titlestyle}{0}
}
\DeclareOption{TableTitle}{
\setcounter{min@titlestyle}{1}
}
\newif\ifminutes@titleset
\newenvironment{Minutes}[2][\relax]{%[short title]{Titel}
\minutes@titlesetfalse
\ifcase\value{min@titlestyle}
\let\maketitle\min@maketitleList\or
\let\maketitle\min@maketitleTable\else
\let\maketitle\min@maketitleList\fi
\let\protokollKopf\maketitle
\def\min@title{#2}
\ifx#1\relax
\def\min@titleshort{#2}
\else
\def\min@titleshort{#1}
\fi
\let\min@subtitle\relax
\let\min@moderation\relax
\let\min@minutetaker\relax
\let\min@participiant\relax
\let\min@missing\relax
\let\min@missingExc\relax
\let\min@missingNoExc\relax
\let\min@date\relax
\let\min@starttime\relax
\let\min@endtime\relax
\let\min@cc\relax
}%
{
\ifnum\value{columns} > 1
\end{multicols}
\fi
}
\def\subtitle#1{\def\min@subtitle{#1}}
\def\moderation#1{\def\min@moderation{#1}}
\def\minutetaker#1{\def\min@minutetaker{#1}}
\def\participant#1{\def\min@participiant{#1}}
\def\minutesdate#1{\def\min@date{#1}}
\def\starttime#1{\def\min@starttime{#1}}
\def\endtime#1{\def\min@endtime{#1}}
\def\cc#1{\def\min@cc{#1}}
\newcommand{\missing}[2][\relax]{
\ifx#1\relax\def\min@missing{#2}
\else
\missingExcused{#1}
\missingNoExcuse{#2}
\fi
}
\def\missingExcused#1{\def\min@missingExc{#1}}
\def\missingNoExcuse#1{\def\min@missingNoExc{#1}}
\newcommand{\signature}[1]{
\begin{tabular}{p{4cm}}
  \vspace{2em}\\ \hline
  \footnotesize #1
\end{tabular}
}
\newenvironment{Protocoll}[5]{
\begin{Minutes}{#1}
\ifx\empty#2\else\moderation{#2}\fi
\ifx\empty#3\else\minutetaker{#3}\fi
\ifx\empty#4\else\participant{#4}\fi
\ifx\empty#5\else\missing{#5}\fi
\maketitle
}{\end{Minutes}}
\newcommand{\topic}[2][\relax]{
\ifminutes@titleset\else
\@latex@error{minutes.sty: no output of title}{
minutes.sty:\MessageBreak
  You called the environment minutes,\MessageBreak
  but you forgot to call the 'maketitle'.\MessageBreak
  If you do not use twocolumn, you can continue.\MessageBreak
  With twocolumn, you will become trouble later
}%
\fi
\ifx\relax#1\min@newcoltopic{#2}{#2}%
\else\min@newcoltopic{#1}{#2}\fi%
}
\newcommand{\min@newcoltopic}[2]{
\ifnum\value{columns} > 1
\end{multicols}
\hrulefill
\begin{multicols}{\value{columns}}[{\section[#1]{#2}}]
\else
\section[#1]{#2}
\fi
}
\let\subtopic=\subsection
\let\subsubtopic=\subsubsection
\newcommand\minitopic[1]{\@afterindentfalse \vskip 1.5ex
  {\parindent \z@ \textbf{#1}\par\nobreak}%
  \@afterheading}
\newcommand{\newcols}[1][\relax]{
\global\def\min@newcolsTitle{#1}
\min@newcols
}
\newcommand{\min@newcols}[1][\value{columns}]{
\ifnum\value{columns} > 1
\end{multicols}
\fi
\setcounter{columns}{#1}
\ifnum\value{columns} > 1
\begin{multicols}{\value{columns}}[\min@newcolsTitle][2cm]
\else
\min@newcolsTitle
\fi
}

\begingroup
\catcode`@=11\relax%
\catcode`{=12\relax\catcode`}=12\relax%
\catcode`(=1\relax \catcode`)=2\relax%
\gdef\includeversion#1(%
  \expandafter\gdef\csname #1\endcsname%
    (   \ifnum\value(columns) > 1
        \def\@currenvir(multicols)
        \fi
    )%
  \expandafter\gdef\csname end#1\endcsname%
    (   \ifnum\value(columns) > 1
        \def\@currenvir(#1)
        \fi
    )%
)%
\gdef\excludeversion#1(%
  \expandafter\gdef\csname #1\endcsname%
    (\@bsphack\catcode`{=12\relax\catcode`}=12\relax\csname #1@NOTE\endcsname)%
  \long\expandafter\gdef\csname #1@NOTE\endcsname ##1\end{#1}%
    (\csname #1END@NOTE\endcsname)%
  \expandafter\gdef\csname #1END@NOTE\endcsname%
    (\@esphack\end(#1))%
)%
\endgroup
\excludeversion{Secret}
\excludeversion{Geheim}
\newcommand{\secret}[1]{}
\DeclareOption{Secret}{
\includeversion{Secret}
\includeversion{Geheim}
\renewcommand{\secret}[1]{#1}
}
%%%%%%%%%%%%%%%
\newcommand{\postscript}[1]{[\emph{#1}]}
\newenvironment{Postscript}{
\begin{description}
\item[\min@textPostscript] \em}{
\em\end{description}}
\newcounter{@pagecount}%
\newcommand{\foreignMinutes}[2][1]{%[pages]{Description}
\ifnum #1 > 0
\subtitle{\min@textforeignMinutes: #2}
\fi
\maketitle
\setcounter{@pagecount}{#1}\addtocounter{@pagecount}{-1}%
\addtocounter{page}{\value{@pagecount}}%
}
\newcommand{\attachment}[3][\relax]{%[label]{titel}{Seiten}
\min@textEnclosure\ \ifx\relax#1\else\ref{#1}:\ \fi #2
\ifx\relax#1\else\min@textPage~\pageref{#1}\fi[#3]%
\ifdefined{chapter}{
\addcontentsline{minAtt}{attachment}{{#1}{\thechapter}{#2}{#3}}
}{
\addcontentsline{minAtt}{attachment}{{#1}{\thepart}{#2}{#3}}
}%
}%^^A       \attachment
\newcommand{\listofattachments}{
\ifdefined{chapter}{
\chapter{\min@textListOfEnclosures}
}{%
\part*{\min@textListOfEnclosures}
}
\ifhyperloaded
\renewcommand{\contentsline}[4]{
\csname l@##1\endcsname{##2}{##3}
}
\fi
\renewcommand\@pnumwidth{2em}%Original: 1.55em
{\@starttoc{minAtt}}
}
\newcounter{minutes@page}
\ifdefined{chapter}{
\newcounter{minutes@attachment}[chapter]
\renewcommand{\theminutes@attachment}{\thechapter.\roman{minutes@attachment}}
}{
\newcounter{minutes@attachment}
\renewcommand{\theminutes@attachment}{\roman{minutes@attachment}}
}
\newcommand{\l@attachment}[2]{%
\setcounter{minutes@page}{\value{page}}\stepcounter{minutes@page}
\expandafter\min@l@attachment#1
\setcounter{page}{\value{minutes@page}}%
}%^^A       \listofAttachments
\newcommand{\min@l@attachment}[4]{%{label}{chapter}{title}{pages}
\stepcounter{minutes@attachment}
\@dottedtocline{1}{0mm}{20mm}{\numberline {#2.\roman{minutes@attachment}} #3}{\arabic{minutes@page} [#4]}
\ifx\relax#1\else
\ifhyperloaded
\protected@write\@auxout{}%
{\string\newlabel%
{#1}%Label
{%
{\theminutes@attachment}%number of section
{\arabic{minutes@page}}%pagenumber
{#2\relax }%title+\relax
{section.\thesection}%"section"+sectionnumber
{}%
}%closenewlabel
}%close \protected@write
\else% hyperref is not used
\protected@write\@auxout{}%
{\string\newlabel{#1}{{\theminutes@attachment}{\arabic{minutes@page}}}}%
\fi%\ifhyperloaded
\fi%\ifx\relax
\addtocounter{minutes@page}{#4}%
}%\def\min@l@attachment
\newcommand{\enclosure}[3][1]{%[pages]{label}{titel}
\attachment[#2]{#3}{#1}
}%^^A       \enclosure
\let\listofenclosure\listofattachments
\newlength{\votelength}
\newenvironment{Vote}{
\ifnum\value{columns} > 1
\setlength{\votelength}{0.25\columnwidth}
\else
\setlength{\votelength}{0.25\textwidth}
\fi
\ifdim\votelength > 2cm \setlength{\votelength}{2cm} \fi
%% ^^A no breaks allowed -> supertabular.sty?
\par
\begin{tabular}{|*{3}{p{\votelength}|}}% \hline
}{
\end{tabular}
}
\newcommand{\Onevote}[4]{
\begin{Vote}\vote{#1}{#2}{#3}{#4}\end{Vote}
}%^^A \OneVote
\newcommand{\vote}[4]{
\hline\multicolumn{3}{|p{3\votelength}|}{#1}\\\hline
\tiny \min@textYes & \tiny \min@textNo & \tiny \min@textNoVote \\
\hfill #2 & \hfill #3 & \hfill #4 \\\hline
\end{Vote}\par
\begin{Vote}
}
\newcommand{\decisiontheme}[2]{
\ifdefined{chapter}{
\addcontentsline{minDec}{decisiontheme}{{#1}{#2}{\thechapter}}
}{
\addcontentsline{minDec}{decisiontheme}{{#1}{#2}{\thepart}}
}%
}
\newcommand{\decision}[2]{
\def\min@decisionTheme{#1}
\def\min@decisionShorttext{#2}
\min@decision
}
\newcommand{\min@decision}[1][\relax]{
\if*\min@decisionTheme\else
\ifdefined{chapter}{
\addcontentsline{minDec}{decision}{{\min@decisionTheme}{\min@decisionShorttext}{\thechapter}}
}{
\addcontentsline{minDec}{decision}{{\min@decisionTheme}{\min@decisionShorttext}{\thepart}}
}%
\fi
\par\textbf{\min@textDecision\ifx*\min@decisionTheme $^*$\fi:}
\min@decisionShorttext\par
\ifx#1\relax\else
\begin{quote}\small #1\end{quote}
\fi
}
\newcommand{\listofdecisions}{
\ifhyperloaded
\renewcommand{\contentsline}[4]{
\csname l@##1\endcsname{##2}{##3}
}
\fi
\@starttoc{minDec}
}% \listofdecisions
\newcommand{\l@decisiontheme}[2]{
\expandafter\min@l@decisiontheme#1
}
\newcommand{\min@l@decisiontheme}[3]{%Theme}{Decision}{Chapter}
\textbf{#2}\par
}
\newcommand{\l@decision}[2]{
\noindent\expandafter\min@l@decision#1{#2}
}
\newcommand{\min@l@decision}[4]{%{Theme}{Decision}{Chapter}{page}
\@dottedtocline{1}{0mm}{0mm}{#2}{#4}
}
\newcommand{\task}[2][\relax]{
\def\min@taskDone{#1}
\def\min@taskWho{#2}
\min@task
}
\newcommand{\min@task}[2][\relax]{
\def\min@taskWhen{#1}
\def\min@taskWhat{#2}
\def\min@space{}
\par\textbf{\min@textTask}%
\if\relax\min@taskWhen\else\ (\min@taskWhen)\fi%
\if\relax\min@taskDone{%
\ifdefined{chapter}{%
\addcontentsline{minTsk}{task}{{\min@taskWhat}{\thechapter}{\min@taskWhen}{\min@taskWho}}%
}{%
\addcontentsline{minTsk}{task}{{\min@taskWhat}{\thepart}{\min@taskWhen}{\min@taskWho}}%
}%chapter defined
}\else%\relax\min@taskDone
\ifx\min@space\min@taskDone\else\footnote{\min@taskDone}\fi%
\fi%\relax\min@taskDone
:
\min@taskWhat\
\if*\min@taskWho\else (\min@taskWho)\fi
}
\newcommand{\listoftasks}[1][\relax]{
\bgroup
\ifhyperloaded
\renewcommand{\contentsline}[4]{
\csname l@##1\endcsname{##2}{##3}
}
\fi
\ifx\relax#1
\@starttoc{minTsk}
\else
\@latex@warning{minutes.sty: foreign minTsk -> Check Hyper}{}%
{\InputIfFileExists{#1.minTsk}{}{}}
\fi
\egroup
}% \listoftasks
\newlength{\responsiblelength}
\setlength{\responsiblelength}{0.15\textwidth}
\newcommand{\l@task}[2]{
\expandafter\min@l@task#1{#2}
}
\newcommand{\min@l@task}[5]{%{What}{section}{When}{Who}{page}
\if*#4
\def\min@l@taskWho{\min@textAnybody}
\else
\def\min@l@taskWho{#4}
\fi
\def\numberline##1{\parbox[t]{\responsiblelength}{##1\hfil}~}
\@dottedtocline{1}{0mm}{\responsiblelength}{
\numberline{\min@l@taskWho}\if\relax#3\else#3\\\fi#1}{#5}
}
\newcommand{\schedule}[2][\jobname]{%[file}{yyyy/mm/dd}
\def\min@sch@file{#1}
\def\min@sch@date{#2}
\min@schedule
}
\newcommand{\min@schedule}[2][]{%[time]{schedule text}
\@afterindentfalse \vskip 1.5ex
  {\parindent \z@
  \textbf{\expandafter\min@writedate \min@sch@date/\xspace#1:}
  #2\par\nobreak}%
  \@afterheading}
\def\min@writedate#1/#2/#3/{
\day=#3
\month=#2
\year=#1
\today
}
\let\Protokoll\Minutes
\let\endProtokoll\endMinutes
\let\untertitel\subtitle
\let\moderation\moderation
\let\protokollant\minutetaker
\let\teilnehmer\participant
\let\sitzungsdatum\minutesdate
\let\sitzungsbeginn\starttime
\let\sitzungsende\endtime
\let\verteiler\cc
\let\fehlend\missing
\let\fehlendEntschuldigt\missingExcused
\let\fehlendUnentschuldigt\missingNoExcuse
\let\protokollKopf\min@maketitle
\let\beschluss\decision
\let\beschlussthema\decisiontheme
\let\entscheidungsliste\listofdecisions
\let\aufgabe\task
\let\aufgabenliste\listoftasks
\let\termin\schedule
\let\anhang\attachment
\let\anhangsliste\listofattachments
\let\nachtrag\postscript
\ifdefined{addto}{}{\newcommand{\addto}[2]{#2}}
\addto\extrasenglish{
\def\min@textModerator{Moderation}
\def\min@textMinutesTaker{Minutes taker}
\def\min@textPresent{Those present} %Participiant:
\def\min@textAbsent{Absent}
\def\min@textAbsentExcused{\min@textAbsent (excused)}
\def\min@textAbsentNoExcuse{\min@textAbsent (no excused)}
\def\min@textDate{Date}
\def\min@textStarttime{Begin of the meeting}
\def\min@textEndtime{End of the meeting}
\def\min@textCc{Distribution}
\def\min@textPostscript{Postscript}
\def\min@textEnclosure{Enclosure}
\def\min@textforeignMinutes{Foreign minutes}
\def\min@textListOfEnclosures{List of enclosures}
\def\min@textSecret{including non-public informations}
\def\min@textPage{page}
\def\min@textForeign{(no \LaTeXe -minute)}
\def\min@textYes{Yes}
\def\min@textNo{No}
\def\min@textNoVote{no vote}
\def\min@textDecision{Decision}
\def\min@textTask{Task}
\def\min@textResponsible{Responsible}
\def\min@textAnybody{Anybody}
\ifdefined{chapter}{
    \renewcommand{\contentsname}{Contents}
    \renewcommand{\chaptername}{Minutes}
    %Overwrite minitoc.sty
    \def\mtctitle{List of topics}
    }{
    \renewcommand{\contentsname}{Overview of topics}
    %\renewcommand{\partname}{Minutes}
    }
}
\def\min@germanText{
\def\min@textModerator{Moderation}
\def\min@textMinutesTaker{Protokollant}
\def\min@textPresent{Anwesend}
\def\min@textAbsent{Fehlend}
\def\min@textAbsentExcused{\min@textAbsent (entschuldigt)}
\def\min@textAbsentNoExcuse{\min@textAbsent (unentschuldigt)}
\def\min@textDate{Datum}
\def\min@textStarttime{Beginn der Sitzung}
\def\min@textEndtime{Ende der Sitzung}
\def\min@textCc{Verteiler}
\def\min@textPostscript{Nachtrag}
\def\min@textEnclosure{Anhang}
\def\min@textListOfEnclosures{Liste der Anh\"{a}nge}
\def\min@textforeignMinutes{Fremdes Protokoll}
\def\min@textSecret{mit nicht\"offentlichen Informationen}
\def\min@textPage{Seite}
\def\min@textForeign{(kein \LaTeXe -Protokoll)}
\def\min@textYes{Ja}
\def\min@textNo{Nein}
\def\min@textNoVote{Enthaltung}
\def\min@textDecision{Beschluß}
\def\min@textTask{Aufgabe}
\def\min@textResponsible{Verantwortlich}
\def\min@textAnybody{Irgendwer}
\ifdefined{chapter}{
    \renewcommand{\contentsname}{Inhaltsverzeichnis}
    \renewcommand{\chaptername}{Protokoll}
    \def\mtctitle{Tagesordnung}
    }{
    \renewcommand{\contentsname}{Tagesordung}%
    %\renewcommand{\partname}{Protokoll}
    }
}
\addto\extrasgerman{\min@germanText}
\addto\extrasngerman{\min@germanText}
\ProcessOptions
\endinput
%%
%% End of file `minutes.sty'.
