%%
%% This is file `minutes/minutes.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% minutes/minutes.dtx 
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from minutes/minutes.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file minutes/minutes.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\def\fileversion{v1}
\def\filedate{2000/03/07}
%%
%% \CheckSum{538}
%%
%% \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]
\typeout{Minutes-Package}
\RequirePackage{multicol}
\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}{}{}
\DeclareOption{Dante}{
\def\name{Deutschsprachige Anwendungsvereinigung von \TeX-Anwendern e.V.}
\def\address{Postfach 101640, 69008 Heidelberg}
\def\phone{06221/29766}
\def\eMail{info@dante.org???}
}
\newif\ifminutes@titleset
\newenvironment{Minutes}[1]{%Titel
\minutes@titlesetfalse
\let\maketitle\minutes@maketitle
\def\minutes@title{#1}
\let\minutes@subtitle\relax
\let\minutes@moderation\relax
\let\minutes@minutetaker\relax
\let\minutes@participiant\relax
\let\minutes@missing\relax
}{
\ifminutes@titleset\else
\@latex@error{minutes.sty: no output of titel}{
minutes.sty:\MessageBreak
  You called the environment minutes,\MessageBreak
  but you forgot to call the titel
}%
\fi
\ifnum\value{columns} > 1
\end{multicols}
\fi
}
\def\subtitle#1{\def\minutes@subtitle{#1}}
\def\moderation#1{\def\minutes@moderation{#1}}
\def\minutetaker#1{\def\minutes@minutetaker{#1}}
\def\participant#1{\def\minutes@participiant{#1}}
\def\missing#1{\def\minutes@missing{#1}}
\def\minutes@writeNotRelax#1#2{
\ifx\relax#1\else
\item[#2] #1
\fi}
\def\minutes@maketitle{
\minutes@titlesettrue
\ifdefined{chapter}%
{\chapter{\minutes@title}}%
{\part*{\minutes@title}\setcounter{section}{0}}
\begin{quote}
\begin{description}
\settowidth{\leftmargin}{10cm}
\minutes@writeNotRelax{\minutes@subtitle}{}
\minutes@writeNotRelax{\minutes@moderation}{\minutes@textModerator}
\minutes@writeNotRelax{\minutes@minutetaker}{\minutes@textMinutesTaker}
\minutes@writeNotRelax{\minutes@participiant}{\minutes@textPresent}
\minutes@writeNotRelax{\minutes@missing}{\minutes@textAbsent}
\secret{\item[!] \minutes@textSecret}
\end{description}
\end{quote}
\ifdefined{chapter}{\minitoc}{\tableofcontents}
\ifnum\value{columns} > 1
\begin{multicols}{\value{columns}}[][1cm]
\fi
}%
\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}}
%% Bug:
\newcommand{\topic}[2][\relax]{%
\ifx\relax#1\minutes@newcoltopic{#2}{#2}%
\else\minutes@newcoltopic{#1}{#2}\fi%
}
\newcommand{\minutes@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{\newcols}[1][]{
\ifnum\value{columns} > 1
\end{multicols}
\begin{multicols}{\value{columns}}[#1][2cm]
\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%
    ()%
  \expandafter\gdef\csname end#1\endcsname%
    ()%
)%
\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}
\newcommand{\secret}[1]{}
\DeclareOption{Secret}{
\includeversion{Secret}
\renewcommand{\secret}[1]{#1}
}
%%%%%%%%%%%%%%%
\let\postscript\emph
\newenvironment{Postscript}{
\begin{description}
\item[\minutes@textPostscript] \em}{
\em\end{description}}
\newcounter{@pagecount}%
\newcommand{\foreignMinutes}[2][1]{%[pages]{Description}
\ifnum #1 > 0
\subtitle{\minutes@textforeignMinutes: #2}
\fi
\maketitle
\setcounter{@pagecount}{#1}\addtocounter{@pagecount}{-1}%
\addtocounter{page}{\value{@pagecount}}%
}
\newwrite\min
\immediate\openout\min=\jobname.min
\newcommand{\attachment}[3][\relax]{%[label]{titel}{Seiten}
\minutes@textEnclosure\ \ifx\relax#1\else\ref{#1}:\ \fi #2
\ifx\relax#1\else\minutes@textPage~\pageref{#1}[#3]\fi%
\ifdefined{chapter}{
\write\min{\noexpand\minutesenclosureOut{#1}{\thechapter}{#2}{#3}}
}{
\write\min{\noexpand\minutesenclosureOut{#1}{\thepart}{#2}{#3}}
}%
}%^^A       \attachment
\newcommand{\enclosure}[3][1]{%[pages]{label}{titel}
\attachment[#2]{#3}{#1}
}%^^A       \enclosure
\newcounter{minutes@page}
\newcounter{minutes@attachment}
\newcommand{\listofattachment}{%
\clearpage \immediate\closeout\min
\ifdefined{chapter}{
\chapter{\minutes@textListOfEnclosures}
}{%
\part{\minutes@textListOfEnclosures}
}
\setcounter{minutes@page}{\value{page}}\stepcounter{minutes@page}
\input{\jobname.min}
\clearpage
\setcounter{page}{\value{minutes@page}}%
}%^^A       \listofAttachment
\let\listofenclosure\listOfAttachment
\newcommand{\minutesenclosureOut}[4]{%{label}{chapter}{title}{pages}
\stepcounter{minutes@attachment}
\contentsline {section}{%
\numberline {#2.\roman{minutes@attachment}}#3}%
{\arabic{minutes@page} [#4]}
\ifx\relax#1\else
\protected@write\@auxout{}%
{\string\newlabel{#1}{{#2.\roman{minutes@attachment}}{\arabic{minutes@page}}}}%
\fi
\addtocounter{minutes@page}{#4}%
}%\def\@enclosureOut
\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
\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 \minutes@textYes & \tiny \minutes@textNo & \tiny \minutes@textNoVote \\
\hfill #2 & \hfill #3 & \hfill #4 \\\hline
\end{Vote}\par
\begin{Vote}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifdefined{addto}{}{\newcommand{\addto}[2]{#2}}
\addto\extrasenglish{
\def\minutes@textModerator{Moderation:}
\def\minutes@textMinutesTaker{Minutes taker:}
\def\minutes@textPresent{Those present:} %Participiant:
\def\minutes@textAbsent{Absent:}
\def\minutes@textPostscript{Postscript}
\def\minutes@textEnclosure{Enclosure}
\def\minutes@textforeignMinutes{Foreign minutes}
\def\minutes@textListOfEnclosures{List of enclosures}
\def\minutes@textSecret{including non-public informations}
\def\minutes@textPage{page}
\def\minutes@textForeign{(no \LaTeXe -minute)}
\def\minutes@textYes{Yes}
\def\minutes@textNo{No}
\def\minutes@textNoVote{no vote}
\ifdefined{chapter}{
    \renewcommand{\contentsname}{Contents}
    \renewcommand{\chaptername}{Minutes}
    }{
    \renewcommand{\contentsname}{Overview of topics}
    %\renewcommand{\partname}{Minutes}
    }
}
\addto\extrasgerman{
\def\minutes@textModerator{Moderation:}
\def\minutes@textMinutesTaker{Protokollant:}
\def\minutes@textPresent{Anwesend:}
\def\minutes@textAbsent{Fehlend:}
\def\minutes@textPostscript{Nachtrag:}
\def\minutes@textEnclosure{Anhang}
\def\minutes@textListOfEnclosures{Liste der Anhänge}
\def\minutes@textforeignMinutes{Fremdes Protokoll}
\def\minutes@textSecret{mit nichtöffentlichen Informationen}
\def\minutes@textPage{Seite}
\def\minutes@textForeign{(kein \LaTeXe -Protokoll)}
\def\minutes@textYes{Ja}
\def\minutes@textNo{Nein}
\def\minutes@textNoVote{Enthaltung}
\ifdefined{chapter}{
    \renewcommand{\contentsname}{Inhaltsverzeichnis}
    \renewcommand{\chaptername}{Protokoll}
    }{
    \renewcommand{\contentsname}{Themenübersicht}
    %\renewcommand{\partname}{Protokoll}
    }
}
\ProcessOptions
\endinput
%%
%% End of file `minutes/minutes.sty'.
