2019-06-21 18:00:51 +02:00
|
|
|
% vim: ft=tex
|
2023-02-03 12:27:27 +01:00
|
|
|
\ProvidesClass{fsrprotokoll}[2018/03/05 Klasse fuer FSR Protokolle v0.2.1]
|
2018-05-14 12:37:44 +02:00
|
|
|
\LoadClass{scrartcl}
|
|
|
|
|
|
|
|
\RequirePackage[utf8]{inputenc}
|
|
|
|
\RequirePackage[ngerman]{babel}
|
|
|
|
\RequirePackage[T1]{fontenc}
|
|
|
|
\RequirePackage[a4paper,top=3cm,left=3cm,right=3cm,bottom=3cm]{geometry}
|
|
|
|
\RequirePackage{eurosym}
|
|
|
|
\RequirePackage{graphicx}
|
|
|
|
\RequirePackage{xifthen}
|
|
|
|
\RequirePackage{titlesec}
|
|
|
|
\RequirePackage{expl3}
|
|
|
|
\RequirePackage{xparse}
|
|
|
|
\RequirePackage{tabularx}
|
|
|
|
\RequirePackage[hidelinks]{hyperref}
|
2019-06-17 15:22:22 +02:00
|
|
|
\RequirePackage[autostyle=true,german=quotes]{csquotes}
|
2018-05-14 12:37:44 +02:00
|
|
|
% https://github.com/AndyClifton/AccessibleMetaClass/blob/master/accessibilityMeta.sty
|
|
|
|
\RequirePackage[tagged]{accessibilityMeta}
|
2023-02-03 12:38:31 +01:00
|
|
|
\RequirePackage{xcolor}
|
2018-05-14 12:37:44 +02:00
|
|
|
|
|
|
|
\parindent 0pt
|
|
|
|
\parskip 1ex
|
|
|
|
|
|
|
|
\deffootnote[1em]{1em}{1em}{\textsuperscript{\thefootnotemark}}
|
|
|
|
|
|
|
|
\titleformat{\section}
|
|
|
|
{\large\rmfamily\bfseries}
|
2019-06-17 15:22:22 +02:00
|
|
|
{\thesection.}{0.5em}{}%
|
2018-05-14 12:37:44 +02:00
|
|
|
\titlespacing{\section}
|
|
|
|
{0pt}
|
|
|
|
{*1}
|
|
|
|
{*0.25}
|
|
|
|
\titleformat{\subsection}
|
|
|
|
{\normalfont\rmfamily\bfseries}
|
|
|
|
{}{0em}{}
|
|
|
|
\titlespacing{\subsection}
|
|
|
|
{0pt}
|
|
|
|
{*0.5}
|
|
|
|
{-5pt}
|
2023-02-03 12:18:34 +01:00
|
|
|
\titleformat{\subsubsection}
|
|
|
|
{\normalfont\rmfamily\bfseries}
|
|
|
|
{}{0em}{}
|
|
|
|
\titlespacing{\subsubsection}
|
|
|
|
{0pt}
|
|
|
|
{*0.5}
|
|
|
|
{-9pt}
|
2018-05-14 12:37:44 +02:00
|
|
|
|
|
|
|
\makeatletter
|
|
|
|
\newcommand*{\insertheaderrule}{\rlap{\rule[-.5\normalbaselineskip]{\textwidth}{.4pt}}}
|
|
|
|
\def\ps@fsrProtokoll{%
|
|
|
|
\def\@oddhead{\insertheaderrule%
|
|
|
|
Protokoll zur FSR--Sitzung vom \the\date \hfill Fachschaftsrat Informatik%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\def\ps@fsrProtokollTitlePage{%
|
|
|
|
\def\@oddhead{\insertheaderrule%
|
|
|
|
\includegraphics[height=4em]{fsrlogo}\hfill%
|
|
|
|
\includegraphics[height=4em]{tudlogo}%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\makeatother
|
|
|
|
\pagestyle{fsrProtokoll}
|
|
|
|
|
|
|
|
% counter for lists
|
|
|
|
\ExplSyntaxOn
|
|
|
|
\NewDocumentCommand \countItems { m } {
|
|
|
|
\clist_count:N #1
|
|
|
|
}
|
|
|
|
\NewDocumentCommand \countInlineItems { m } {
|
|
|
|
\clist_count:n {#1}
|
|
|
|
}
|
|
|
|
\ExplSyntaxOff
|
|
|
|
|
|
|
|
\newcommand{\quorate} {
|
|
|
|
Die Sitzungsleitung eröffnet die Sitzung.
|
|
|
|
\newcount\quorateThreshold
|
|
|
|
\quorateThreshold=\the\numexpr (17 - \countItems{\resting})
|
|
|
|
\divide\quorateThreshold by 2
|
|
|
|
\ifthenelse{\the\attendeesNumber > \the\quorateThreshold\relax} {%
|
|
|
|
Der FSR ist beschlussfähig.%
|
|
|
|
} {%
|
|
|
|
Der FSR ist nicht beschlussfähig.%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-17 15:22:22 +02:00
|
|
|
\newcommand*{\quorum}[2] {
|
2023-02-03 12:22:03 +01:00
|
|
|
Die Sitzungsleitung eröffnet die Sitzung.
|
2019-06-17 15:22:22 +02:00
|
|
|
\newcount\quorateThreshold
|
|
|
|
\quorateThreshold=#2
|
|
|
|
Es sind #1 von #2 Mitgliedern mit aktivem Stimmrecht anwesend.
|
|
|
|
\divide\quorateThreshold by 2
|
|
|
|
\ifthenelse{#1 > \the\quorateThreshold\relax} {%
|
|
|
|
Der FSR ist somit beschlussfähig.%
|
|
|
|
} {%
|
|
|
|
Der FSR ist somit nicht beschlussfähig.%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-14 12:37:44 +02:00
|
|
|
% titlepage
|
|
|
|
\renewcommand*{\maketitle}{%
|
|
|
|
\begin{titlepage}%
|
|
|
|
\thispagestyle{fsrProtokollTitlePage}
|
|
|
|
\begin{center}%
|
|
|
|
\vspace*{1cm}%
|
|
|
|
\textbf{\Large Protokoll zur FSR--Sitzung vom \the\date}%
|
|
|
|
|
2023-02-03 12:22:03 +01:00
|
|
|
Sitzungsleitung: \the\chairperson \, | %
|
2018-05-14 12:37:44 +02:00
|
|
|
Protokoll: \the\clerks%
|
|
|
|
|
2023-02-03 12:22:03 +01:00
|
|
|
Sitzungsbeginn: \the\meetingStart \, | Sitzungsende: \the\meetingEnd%
|
|
|
|
|
|
|
|
Sitzungsort: \the\meetingPlace % required by FSO
|
2018-05-14 12:37:44 +02:00
|
|
|
\end{center}%
|
|
|
|
|
2019-06-17 15:22:22 +02:00
|
|
|
\textbf{Anwesende:} \the\attendees% \, (\the\attendeesNumber \, von 17)%
|
2018-05-14 12:37:44 +02:00
|
|
|
|
|
|
|
\textbf{Entschuldigt Fehlende:} \ifthenelse{\equal{\the\excused}{}} { $\emptyset$ } { \the\excused }%
|
|
|
|
|
|
|
|
\textbf{Unentschuldigt Fehlende:} \ifthenelse{\equal{\the\unexcused}{}} { $\emptyset$ } { \the\unexcused }%
|
|
|
|
|
|
|
|
\textbf{Ruhende:} \ifthenelse{\equal{\the\resting}{}} { $\emptyset$ } { \the\resting }%
|
|
|
|
|
|
|
|
\textbf{Gäste:} \ifthenelse{\equal{\the\guests}{}} { $\emptyset$ } { \the\guests }%
|
|
|
|
\vspace{\baselineskip}
|
2019-06-17 15:22:22 +02:00
|
|
|
%\quorate % automatische Feststellung der Beschlussfähigkeit
|
2018-05-14 12:37:44 +02:00
|
|
|
\end{titlepage}%
|
|
|
|
\hypersetup{%
|
|
|
|
pdfauthor=Fachschaftsrat Informatik,
|
|
|
|
pdftitle=Protokoll zur FSR-Sitzung vom \the\date
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\let\endtitlepage\relax
|
|
|
|
|
|
|
|
% vote environment
|
|
|
|
\newsavebox{\mybox}
|
|
|
|
\newcounter{x} % counter to add up two arguments
|
|
|
|
\newenvironment{vote} {%
|
2019-07-08 17:21:23 +02:00
|
|
|
\immediate\write\exportdata{-}
|
2018-05-14 12:37:44 +02:00
|
|
|
\begin{lrbox}{\mybox}\begin{minipage}{.985\textwidth}
|
2019-06-21 18:00:51 +02:00
|
|
|
\newcommand*{\voteNumber}[1]{%
|
2023-02-03 12:27:27 +01:00
|
|
|
%see section VOTENUMBER at the end
|
|
|
|
\ifthenelse{\equal{##1}{}}{}{% else (argument is not empty)
|
|
|
|
\setcounter{votenumber}{##1}%
|
|
|
|
}%
|
|
|
|
\immediate\write\exportdata{ decision_id: "\the\year/\thevotenumber"}%
|
|
|
|
\textbf{\the\year\,/\,\thevotenumber:}\\%
|
|
|
|
\stepcounter{votenumber}%
|
2019-06-21 18:00:51 +02:00
|
|
|
}%
|
2018-05-14 12:37:44 +02:00
|
|
|
\newcommand*{\voteMoney}[1]{%
|
2019-07-08 17:21:23 +02:00
|
|
|
\ifthenelse{\equal{##1}{}} {%
|
|
|
|
\immediate\write\exportdata{ money_limit: NULL}%
|
|
|
|
\textbf{Antrag}%
|
|
|
|
} {%
|
|
|
|
\immediate\write\exportdata{ money_limit: ##1}%
|
2023-02-03 12:24:30 +01:00
|
|
|
\textbf{Finanzantrag über \EUR{##1} -- Antrag}%
|
2019-07-08 17:21:23 +02:00
|
|
|
}%
|
2018-05-14 12:37:44 +02:00
|
|
|
}
|
2020-09-30 13:05:10 +02:00
|
|
|
\newcommand{\voteText}[1]{%
|
2019-07-08 17:21:23 +02:00
|
|
|
\immediate\write\exportdata{ text: "##1"}%
|
|
|
|
##1\vspace{\baselineskip}\\}%
|
2020-09-30 13:05:10 +02:00
|
|
|
\newcommand*{\voteSubmitter}[1]{%
|
|
|
|
\immediate\write\exportdata{ submitter: "##1"}%
|
|
|
|
\textbf{Antragsteller\_in: }##1\vspace{\baselineskip}\\}%
|
2019-07-08 17:21:23 +02:00
|
|
|
\newcommand*{\voteReason}[1]{%
|
|
|
|
\immediate\write\exportdata{ rationale: "##1"}%
|
|
|
|
\textbf{Begründung: }##1\vspace{\baselineskip}\\}%
|
2018-05-14 12:37:44 +02:00
|
|
|
\newcommand*{\voting}[3]{\textbf{Abstimmung: }%
|
|
|
|
\ifthenelse{\equal{##1}{} \AND \equal{##2}{} \AND \equal{##3}{}} {%
|
2019-07-08 17:21:23 +02:00
|
|
|
\immediate\write\exportdata{ v_yes: 0}%
|
|
|
|
\immediate\write\exportdata{ v_no: 0}%
|
|
|
|
\immediate\write\exportdata{ v_neutral: 0}%
|
|
|
|
\immediate\write\exportdata{ accepted: 1}%
|
2018-05-14 12:37:44 +02:00
|
|
|
Der Antrag wurde ohne Gegenrede angenommen.%
|
|
|
|
} {%
|
2019-07-08 17:21:23 +02:00
|
|
|
\immediate\write\exportdata{ v_yes: ##1}%
|
|
|
|
\immediate\write\exportdata{ v_no: ##2}%
|
|
|
|
\immediate\write\exportdata{ v_neutral: ##3}%
|
2018-05-14 12:37:44 +02:00
|
|
|
Dafür: ##1, Dagegen: ##2, Enthaltungen: ##3%
|
|
|
|
\\%
|
|
|
|
\setcounter{x}{##2+##3}%
|
|
|
|
\ifnum##1>\arabic{x}%
|
2019-07-08 17:21:23 +02:00
|
|
|
{%
|
|
|
|
\immediate\write\exportdata{ accepted: 1}%
|
|
|
|
Der Antrag wurde angenommen.
|
|
|
|
}%
|
2018-05-14 12:37:44 +02:00
|
|
|
\else%
|
2019-07-08 17:21:23 +02:00
|
|
|
{
|
|
|
|
\immediate\write\exportdata{ accepted: 0}%
|
|
|
|
Der Antrag wurde abgelehnt.
|
|
|
|
}%
|
2018-05-14 12:37:44 +02:00
|
|
|
\fi%
|
|
|
|
}%
|
|
|
|
}%
|
2019-07-08 17:21:23 +02:00
|
|
|
\newcommand*{\voteComment}[1]{%
|
|
|
|
\immediate\write\exportdata{ comment: "##1"}%
|
|
|
|
##1
|
|
|
|
}%
|
2018-05-14 12:37:44 +02:00
|
|
|
} {
|
|
|
|
\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}
|
|
|
|
}
|
|
|
|
|
2020-09-30 13:05:10 +02:00
|
|
|
\newenvironment{vote-two-thirds} {%
|
|
|
|
\immediate\write\exportdata{-}
|
|
|
|
\begin{lrbox}{\mybox}\begin{minipage}{.985\textwidth}
|
|
|
|
\newcommand*{\voteNumber}[1]{%
|
2023-02-03 12:27:27 +01:00
|
|
|
%see section VOTENUMBER at the end
|
|
|
|
\ifthenelse{\equal{##1}{}}{}{% else (argument is not empty)
|
|
|
|
\setcounter{votenumber}{##1}%
|
|
|
|
}%
|
|
|
|
\immediate\write\exportdata{ decision_id: "\the\year/\thevotenumber"}%
|
|
|
|
\textbf{\the\year\,/\,\thevotenumber:}\\%
|
|
|
|
\stepcounter{votenumber}%
|
2020-09-30 13:05:10 +02:00
|
|
|
}%
|
|
|
|
\newcommand*{\voteMoney}[1]{%
|
|
|
|
\ifthenelse{\equal{##1}{}} {%
|
|
|
|
\immediate\write\exportdata{ money_limit: NULL}%
|
|
|
|
\textbf{Antrag}%
|
|
|
|
} {%
|
|
|
|
\immediate\write\exportdata{ money_limit: ##1}%
|
2023-02-03 12:24:30 +01:00
|
|
|
\textbf{Finanzantrag über \EUR{##1} - Antrag}%
|
2020-09-30 13:05:10 +02:00
|
|
|
}%
|
|
|
|
}
|
|
|
|
\newcommand*{\voteText}[1]{%
|
|
|
|
\immediate\write\exportdata{ text: "##1"}%
|
|
|
|
##1\vspace{\baselineskip}\\}%
|
2023-02-03 12:24:30 +01:00
|
|
|
\newcommand*{\voteSubmitter}[1]{%
|
|
|
|
\immediate\write\exportdata{ submitter: "##1"}%
|
|
|
|
\textbf{Antragsteller\_in: }##1\vspace{\baselineskip}\\}%
|
2020-09-30 13:05:10 +02:00
|
|
|
\newcommand*{\voteReason}[1]{%
|
|
|
|
\immediate\write\exportdata{ rationale: "##1"}%
|
|
|
|
\textbf{Begründung: }##1\vspace{\baselineskip}\\}%
|
|
|
|
\newcommand*{\voting}[3]{\textbf{Abstimmung: }%
|
|
|
|
\ifthenelse{\equal{##1}{} \AND \equal{##2}{} \AND \equal{##3}{}} {%
|
|
|
|
\immediate\write\exportdata{ v_yes: 0}%
|
|
|
|
\immediate\write\exportdata{ v_no: 0}%
|
|
|
|
\immediate\write\exportdata{ v_neutral: 0}%
|
|
|
|
\immediate\write\exportdata{ accepted: 1}%
|
|
|
|
Der Antrag wurde ohne Gegenrede angenommen.%
|
|
|
|
} {%
|
|
|
|
\immediate\write\exportdata{ v_yes: ##1}%
|
|
|
|
\immediate\write\exportdata{ v_no: ##2}%
|
|
|
|
\immediate\write\exportdata{ v_neutral: ##3}%
|
|
|
|
Dafür: ##1, Dagegen: ##2, Enthaltungen: ##3%
|
|
|
|
\\%
|
|
|
|
\setcounter{x}{((\the\attendeesNumber)/3)*2}%
|
|
|
|
\ifnum##1>\arabic{x}%
|
|
|
|
{%
|
|
|
|
\immediate\write\exportdata{ accepted: 1}%
|
|
|
|
Der Antrag wurde mit einer 2/3 Mehrheit angenommen.
|
|
|
|
}%
|
|
|
|
\else%
|
|
|
|
{
|
|
|
|
\immediate\write\exportdata{ accepted: 0}%
|
|
|
|
Der Antrag wurde abgelehnt, da keine 2/3 Mehrheit zustande kam.
|
|
|
|
}%
|
|
|
|
\fi%
|
|
|
|
}%
|
|
|
|
}%
|
|
|
|
\newcommand*{\voteComment}[1]{%
|
|
|
|
\immediate\write\exportdata{ comment: "##1"}%
|
|
|
|
##1
|
|
|
|
}%
|
|
|
|
} {
|
|
|
|
\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}
|
|
|
|
}
|
|
|
|
|
2018-05-14 12:37:44 +02:00
|
|
|
% poll environment
|
|
|
|
\newenvironment{poll} {%
|
|
|
|
\begin{lrbox}{\mybox}\begin{minipage}{.985\textwidth}
|
|
|
|
\newcommand*{\pollText}[1]{%
|
|
|
|
\textbf{Standpunkt: } ##1\vspace{\baselineskip}\\%
|
|
|
|
}%
|
|
|
|
\newcommand*{\voting}[2]{%
|
2019-06-17 15:22:22 +02:00
|
|
|
\textbf{Meinungsbild: } Dafür: ##1, Dagegen: ##2%
|
2018-05-14 12:37:44 +02:00
|
|
|
}%
|
|
|
|
} {
|
|
|
|
\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand*{\away}[1] {
|
|
|
|
\ifthenelse{\the\numexpr \countInlineItems{#1} > 1} {%
|
|
|
|
\textit{[#1 verlassen die Sitzung]}%
|
|
|
|
} {%
|
|
|
|
\textit{[#1 verlässt die Sitzung]}%
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\newcommand*{\appear}[1] {
|
|
|
|
\ifthenelse{\the\numexpr \countInlineItems{#1} > 1} {%
|
|
|
|
\textit{[#1 erscheinen zur Sitzung]}%
|
|
|
|
} {%
|
|
|
|
\textit{[#1 erscheint zur Sitzung]}%
|
|
|
|
}
|
|
|
|
}
|
2023-02-03 12:22:03 +01:00
|
|
|
|
|
|
|
\newcommand*{\meetingBreak}[1] {
|
|
|
|
\textit{Die Sitzung wird für #1 Minuten unterbrochen.}%
|
|
|
|
}
|
|
|
|
|
2018-05-14 12:37:44 +02:00
|
|
|
\newcommand*{\signature} {
|
|
|
|
\vfill
|
|
|
|
\noindent\rule{6.5cm}{0.3pt} \hfill \noindent\rule{6.5cm}{0.3pt}
|
|
|
|
\noindent\makebox[6.5cm][l]{Sitzungsleitung} \hfill \noindent\makebox[6.5cm][l]{Protokoll}
|
|
|
|
}
|
|
|
|
|
2023-02-03 12:38:31 +01:00
|
|
|
\definecolor{MyWhite}{HTML}{FFFFFF}
|
|
|
|
\newcommand{\invisible}[1]{\textcolor{MyWhite}{#1}}
|
|
|
|
|
2023-02-03 12:27:27 +01:00
|
|
|
%see section VOTENUMBER at the end
|
|
|
|
\newcommand*{\initVoteNumber}[1] {
|
|
|
|
\setcounter{votenumber}{#1}
|
|
|
|
}
|
|
|
|
|
2019-06-21 18:00:51 +02:00
|
|
|
\AtBeginDocument{%
|
2023-02-03 12:27:27 +01:00
|
|
|
%see section VOTENUMBER at the end
|
|
|
|
\newcounter{votenumber}
|
2019-06-21 18:00:51 +02:00
|
|
|
\immediate\newwrite\exportdata%
|
|
|
|
\immediate\openout\exportdata=tmp.txt\relax
|
|
|
|
}
|
|
|
|
|
|
|
|
\AtEndDocument{%
|
2019-07-08 17:21:23 +02:00
|
|
|
\immediate\write18{mv tmp.txt \the\date.yaml}
|
2019-06-21 18:00:51 +02:00
|
|
|
\immediate\closeout\exportdata%
|
|
|
|
}
|
|
|
|
|
2018-05-14 12:37:44 +02:00
|
|
|
% tokens
|
|
|
|
\newtoks\date
|
|
|
|
\newtoks\attendeesNumber
|
|
|
|
\newtoks\chairperson
|
|
|
|
\newtoks\clerks
|
|
|
|
\newtoks\meetingStart
|
|
|
|
\newtoks\meetingEnd
|
2023-02-03 12:22:03 +01:00
|
|
|
\newtoks\meetingPlace
|
2018-05-14 12:37:44 +02:00
|
|
|
\newtoks\attendees
|
|
|
|
\newtoks\excused
|
|
|
|
\newtoks\unexcused
|
|
|
|
\newtoks\resting
|
|
|
|
\newtoks\guests
|
|
|
|
\endinput
|
2019-06-17 15:22:22 +02:00
|
|
|
|
2023-02-03 12:27:27 +01:00
|
|
|
%documentation on VOTENUMBERS (version 0.2 -> 0.2.1, Author: Anton Obersteiner)
|
|
|
|
%votes are numbered within one year. use \initVoteCount{num} at the beginning
|
|
|
|
%of your protocol to set this counter to num, otherwise the counter starts at 0.
|
|
|
|
%each vote is automatically numbered 20YY / <votenumber> and then
|
|
|
|
%increments the counter *if you call \voteNumber{} in your vote environment*.
|
|
|
|
%if you call votenumber with an argument: \voteNumber{num}, the counter is reset to that value
|
|
|
|
%and increments from there in the votes after.
|
|
|
|
%for backwards compatibility, the argument is not optional (would require \voteNumber[] syntax),
|
|
|
|
%but the argument to the {} is ignored if empty.
|