Write vote numbers to file titled with date
This commit is contained in:
parent
27ddecd957
commit
ef7aa24262
|
@ -1,3 +1,4 @@
|
||||||
|
% vim: ft=tex
|
||||||
\ProvidesClass{fsrprotokoll}[2018/03/05 Klasse fuer FSR Protokolle v0.2]
|
\ProvidesClass{fsrprotokoll}[2018/03/05 Klasse fuer FSR Protokolle v0.2]
|
||||||
\LoadClass{scrartcl}
|
\LoadClass{scrartcl}
|
||||||
|
|
||||||
|
@ -125,7 +126,10 @@
|
||||||
\newcounter{x} % counter to add up two arguments
|
\newcounter{x} % counter to add up two arguments
|
||||||
\newenvironment{vote} {%
|
\newenvironment{vote} {%
|
||||||
\begin{lrbox}{\mybox}\begin{minipage}{.985\textwidth}
|
\begin{lrbox}{\mybox}\begin{minipage}{.985\textwidth}
|
||||||
\newcommand*{\voteNumber}[1]{\textbf{\the\year\,/\,##1:}\\}%
|
\newcommand*{\voteNumber}[1]{%
|
||||||
|
\immediate\write\exportdata{\the\year/##1}%
|
||||||
|
\textbf{\the\year\,/\,##1:}\\%
|
||||||
|
}%
|
||||||
\newcommand*{\voteMoney}[1]{%
|
\newcommand*{\voteMoney}[1]{%
|
||||||
\ifthenelse{\equal{##1}{}} {\textbf{Antrag}} {\textbf{Finanzantrag}}%
|
\ifthenelse{\equal{##1}{}} {\textbf{Antrag}} {\textbf{Finanzantrag}}%
|
||||||
}
|
}
|
||||||
|
@ -148,6 +152,8 @@
|
||||||
\newcommand*{\voteComment}[1]{##1}%
|
\newcommand*{\voteComment}[1]{##1}%
|
||||||
} {
|
} {
|
||||||
\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}
|
\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}
|
||||||
|
\immediate\write\exportdata{
|
||||||
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
% poll environment
|
% poll environment
|
||||||
|
@ -183,6 +189,16 @@
|
||||||
\noindent\makebox[6.5cm][l]{Sitzungsleitung} \hfill \noindent\makebox[6.5cm][l]{Protokoll}
|
\noindent\makebox[6.5cm][l]{Sitzungsleitung} \hfill \noindent\makebox[6.5cm][l]{Protokoll}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\AtBeginDocument{%
|
||||||
|
\immediate\newwrite\exportdata%
|
||||||
|
\immediate\openout\exportdata=tmp.txt\relax
|
||||||
|
}
|
||||||
|
|
||||||
|
\AtEndDocument{%
|
||||||
|
\immediate\write18{mv tmp.txt \the\date.txt}
|
||||||
|
\immediate\closeout\exportdata%
|
||||||
|
}
|
||||||
|
|
||||||
% tokens
|
% tokens
|
||||||
\newtoks\date
|
\newtoks\date
|
||||||
\newtoks\attendeesNumber
|
\newtoks\attendeesNumber
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
%%!sitzungsleitung,protokoll: Das Protokoll ist fertig und kann unterschrieben werden! :)
|
%%!sitzungsleitung,protokoll: Das Protokoll ist fertig und kann unterschrieben werden! :)
|
||||||
|
|
||||||
\date{} % DD.MM.YYYY
|
\date{} % DD-MM-YYYY
|
||||||
\attendeesNumber{} % Anzahl anwesender Mitglieder
|
\attendeesNumber{} % Anzahl anwesender Mitglieder
|
||||||
\chairperson{}
|
\chairperson{}
|
||||||
\clerks{}
|
\clerks{}
|
||||||
|
|
Loading…
Reference in a new issue