From 2115479108b035f2e410b11a2389b4ca40bb69ec Mon Sep 17 00:00:00 2001 From: Frederik Beimgraben Date: Sun, 1 Dec 2024 21:01:08 +0000 Subject: [PATCH] Modify Skeleton --- Content/01_content.tex | 146 +++++-------------------------------- HSRTReport/HSRTReport.cls | 20 ++++- HSRTReport/Modules/ToC.tex | 16 ---- Main.tex | 11 ++- TeX/Preamble.tex | 2 +- TeX/Protocol.tex | 23 +++++- TeX/Settings/General.tex | 6 +- 7 files changed, 73 insertions(+), 151 deletions(-) delete mode 100644 HSRTReport/Modules/ToC.tex diff --git a/Content/01_content.tex b/Content/01_content.tex index ad9eab9..ab8561a 100644 --- a/Content/01_content.tex +++ b/Content/01_content.tex @@ -1,133 +1,27 @@ % !TEX root = ../Main.tex -\chapter{Infoboxen} -\section{API / Benutzung von Infoboxen} +% ======================================================== +% Example Content: +\begin{TOP}{Tagesordnungspunkt 1} + Dies ist ein Beispieltext für einen Tagesordnungspunkt. -% Commands for InfoBoxes -Dieses Template erlaubt die Verwendung von verschiedenen Infoboxen, die in \texttt{TeX/Modules/Infoboxes.tex} definiert sind. Diese Infoboxen können in beliebigen \texttt{.tex}-Dateien verwendet werden. -\smallskip -\begin{lstlisting}[language=tex] -\begin{InfoBox} - -\end{InfoBox} -\end{lstlisting} -\smallskip + \begin{TaskBox}{109} + Dies ist ein Beispieltext für eine Aufgabe. + \end{TaskBox} -Die vordefinierten Infobox-Typen sind: + \begin{VotingResults}{3}{2}{1} + Soll der Antrag "..."\relax~von ... angenommen werden? + \end{VotingResults} +\end{TOP} -\begin{itemize} - \item \texttt{InfoBox} - \item \texttt{WarningBox} - \item \texttt{SuccessBox} - \item \texttt{ImportantBox} -\end{itemize} +\begin{TOP}{Tagesordnungspunkt 2} + Dies ist ein Beispieltext für einen weiteren Tagesordnungspunkt. -Des Weiteren können eigene Infoboxen mit dem Befehl \texttt{CustomBox} erstellt werden. Dieser Befehl erwartet zwei Argumente: ein Icon und eine Farbe. -\smallskip -\begin{lstlisting}[language=tex] -\begin{CustomBox}{\faIcon{}}{} - -\end{CustomBox} -\end{lstlisting} -\smallskip -Als Farbe können entweder die \LaTeX-Standardfarben oder eigene Farben verwendet werden. Die Icons können der \href{https://fontawesome.com/icons?d=gallery&m=free}{Font Awesome Icon Library} entnommen werden. + \begin{TaskBox}{109} + Dies ist ein Beispieltext für eine weitere Aufgabe. + \end{TaskBox} -\section{Beispiele} - -\begin{InfoBox} - \subsubsection{Äußere InfoBox} - Diese InfoBox enthält mehrere andere Infoboxen, die über eine \texttt{multicols}-Umgebung in zwei Spalten angeordnet sind. - \vspace*{-1em} - \begin{multicols}{2} - \begin{CustomBox}{\faIcon{user-graduate}}{britishracinggreen} - \subsubsection{Custom Box 1} - Diese Box hat das \texttt{user-graduate}-Icon und die Farbe \texttt{britishracinggreen}. - \end{CustomBox} - \begin{CustomBox}{\faIcon{chart-pie}}{britishracinggreen} - \subsubsection{Custom Box 2} - \vspace{0.5em} - \begin{tikzpicture}[scale=0.6] - \pie [cloud, explode=0.1, text=legend, style=very thin] { - 10/A, - 20/B, - 30/C, - 40/D - } - \end{tikzpicture} - \vspace{0.5em}\\ - Diese Box hat das \texttt{chart-pie}-Icon und die Farbe \texttt{britishracinggreen}. - Sie enthält ein Tortendiagramm im \texttt{cloud}-Stil, das über das \texttt{pgf-pie}-Paket in TikZ erstellt wurde. - \end{CustomBox} - \columnbreak - \begin{InfoBox} - \subsubsection{Innere InfoBox} - Diese InfoBox enthält eine doppelt geschachtelte \texttt{CustomBox}. - - % Nested UserBox - \begin{CustomBox}{\faIcon{user}}{blue} - \subsubsection{User Box} - Diese Box hat das \texttt{user}-Icon und die Farbe \texttt{blue}. - \end{CustomBox} - \end{InfoBox} - \begin{WarningBox} - \subsubsection{Warning Box} - Diese Box ist eine \texttt{WarningBox}. - \end{WarningBox} - \begin{SuccessBox} - \subsubsection{Success Box} - Diese Box ist eine \texttt{SuccessBox}. - \end{SuccessBox} - \end{multicols} -\end{InfoBox} - -\pagebreak - -\section{Code} - -\begin{lstlisting}[language=tex] -\begin{InfoBox} - \subsubsection{Äußere InfoBox} - Diese InfoBox enthält mehrere andere Infoboxen, die über eine \texttt{multicols}-Umgebung in zwei Spalten angeordnet sind. - \vspace*{-1em} - \begin{multicols}{2} - \begin{CustomBox}{\faIcon{user-graduate}}{britishracinggreen} - \subsubsection{Custom Box 1} - Diese Box hat das \texttt{user-graduate}-Icon und die Farbe \texttt{britishracinggreen}. - \end{CustomBox} - \begin{CustomBox}{\faIcon{chart-pie}}{britishracinggreen} - \subsubsection{Custom Box 2} - \vspace{0.5em} - \begin{tikzpicture}[scale=0.6] - \pie [cloud, explode=0.1, text=legend, style=very thin] { - 10/A, - 20/B, - 30/C, - 40/D - } - \end{tikzpicture} - \vspace{0.5em}\\ - Diese Box hat das \texttt{chart-pie}-Icon und die Farbe \texttt{britishracinggreen}. - Sie enthält ein Tortendiagramm im \texttt{cloud}-Stil, das über das \texttt{pgf-pie}-Paket in TikZ erstellt wurde. - \end{CustomBox} - \columnbreak - \begin{InfoBox} - \subsubsection{Innere InfoBox} - Diese InfoBox enthält eine doppelt geschachtelte \texttt{CustomBox}. - - % Nested UserBox - \begin{CustomBox}{\faIcon{user}}{blue} - \subsubsection{User Box} - Diese Box hat das \texttt{user}-Icon und die Farbe \texttt{blue}. - \end{CustomBox} - \end{InfoBox} - \begin{WarningBox} - \subsubsection{Warning Box} - Diese Box ist eine \texttt{WarningBox}. - \end{WarningBox} - \begin{SuccessBox} - \subsubsection{Success Box} - Diese Box ist eine \texttt{SuccessBox}. - \end{SuccessBox} - \end{multicols} -\end{InfoBox} -\end{lstlisting} + \begin{VotingResults}{2}{3}{1} + Soll der Antrag "..."\relax, gestellt von ... von der Verfassten Studierendenschaft aus ...-Mitteln finanziert werden? + \end{VotingResults} +\end{TOP} \ No newline at end of file diff --git a/HSRTReport/HSRTReport.cls b/HSRTReport/HSRTReport.cls index 274e40d..14ca1bd 100644 --- a/HSRTReport/HSRTReport.cls +++ b/HSRTReport/HSRTReport.cls @@ -284,6 +284,9 @@ %---------------------------------------- % TABLE OF CONTENTS %---------------------------------------- +% Set the toc page style to fancy +\tocloftpagestyle{fancy} + % Page Numbering in the Table of Contents \renewcommand\cftchappagefont{\blenderfont\color{gray}} \renewcommand\cftsecpagefont{\blenderfont\color{gray}} @@ -296,6 +299,20 @@ \renewcommand\cftsubsecfont{\blenderfont\color{gray}} \renewcommand\cftsubsubsecfont{\blenderfont\color{gray}} +\newlength\additionalToCIndent +\settowidth\additionalToCIndent{TOP.\hspace*{1em}} + +\addtolength\cftchapnumwidth{\additionalToCIndent} + +\typeout{cftchapnumwidth: \the\cftchapnumwidth} + +\renewcommand\thechapter{TOP.\arabic{chapter}} + +\RedeclareSectionCommand[ + tocindent=0cm, + tocnumwidth=\cftchapnumwidth +]{chapter} + % ---------------------------------------- % Local Imports % ---------------------------------------- @@ -307,5 +324,4 @@ \input{\classPath/Modules/MeetingPresence} \input{\classPath/Modules/InfoBlocks} \input{\classPath/Modules/Watermark} -\input{\classPath/Modules/ToC} -\input{\classPath/Modules/Typography} \ No newline at end of file +\input{\classPath/Modules/Typography} diff --git a/HSRTReport/Modules/ToC.tex b/HSRTReport/Modules/ToC.tex deleted file mode 100644 index a260796..0000000 --- a/HSRTReport/Modules/ToC.tex +++ /dev/null @@ -1,16 +0,0 @@ -% !TEX root = ../../Main.tex -% ==== TOC ==== -% Set the toc page style to fancy -\tocloftpagestyle{fancy} - -% Page Numbering in the Table of Contents -\renewcommand\cftchappagefont{\blenderfont\color{gray}} -\renewcommand\cftsecpagefont{\blenderfont\color{gray}} -\renewcommand\cftsubsecpagefont{\blenderfont\color{gray}} -\renewcommand\cftsubsubsecpagefont{\blenderfont\color{gray}} - -% Chap/Sec/... Title in the Table of Contents -\renewcommand\cftchapfont{\blenderfont\color{gray}} -\renewcommand\cftsecfont{\blenderfont\color{gray}} -\renewcommand\cftsubsecfont{\blenderfont\color{gray}} -\renewcommand\cftsubsubsecfont{\blenderfont\color{gray}} diff --git a/Main.tex b/Main.tex index d9290ff..78d6286 100644 --- a/Main.tex +++ b/Main.tex @@ -21,7 +21,16 @@ {\blenderfont\tableofcontents}\vspace{\fill}\pagebreak % Presence table -\MakePresenceTable\pagebreak +\MakePresenceTable +\begin{CustomBox}{\faIcon{book}}{eggplant} + \chapter*{Begrüßung und Formalia} + \begin{itemize} + \item Die Sitzung wird um \textbf{\meetingStartTime}~eröffnet. + \item Beschlussfähigkeit ist \textbf{\meetingQuorum}. + \item Die Tagesordnung wird genehmigt. + \end{itemize} +\end{CustomBox} +\pagebreak % ===== Content ===== \input{Content/01_content.tex} diff --git a/TeX/Preamble.tex b/TeX/Preamble.tex index a8c037a..5fccbf8 100644 --- a/TeX/Preamble.tex +++ b/TeX/Preamble.tex @@ -14,4 +14,4 @@ % ==== Glossary ==== \input{Content/99_glossary.tex} \makenoidxglossaries -% ==== /Glossary ==== \ No newline at end of file +% ==== /Glossary ==== diff --git a/TeX/Protocol.tex b/TeX/Protocol.tex index e784820..1dd655d 100644 --- a/TeX/Protocol.tex +++ b/TeX/Protocol.tex @@ -6,7 +6,7 @@ \NewEnviron{TOP}[1]{ \goodbreak - \section{#1} + \chapter{#1} \BODY \vspace{1.5em} } @@ -50,7 +50,7 @@ % Command to make the final table \DeclareRobustCommand{\MakePresenceTable}{ \begin{CustomBox}{\faIcon{user}}{eggplant} - \chapter{Anwesenheitsliste} + \chapter*{Anwesenheitsliste} \PresenceTable{ \the\committeeMembers \specialrule{.2em}{.05em}{.05em}\addlinespace[1ex] @@ -58,4 +58,23 @@ \specialrule{.2em}{.05em}{.05em} } \end{CustomBox} +} + +% Task-Box pointing to Nextcloud-Deck-Cards under https://cloud.reutlingen.university/apps/deck/card/ +\newcommand{\urlOfCard}[1]{https://cloud.reutlingen.university/apps/deck/card/#1} + +\NewEnviron{TaskBox}[1]{ + \let\tbBODY=\BODY + \vspace{1em} + \begin{CustomBox}{\faIcon{tasks}}{eggplant} + \section*{Aufgabe} + \tbBODY + \ifthenelse{\equal{#1}{}}{}{ + \begin{center} + \vspace{1em} + \textbf{Link zur Karte:} \url{\urlOfCard{#1}} + \end{center} + } + \end{CustomBox} + \vspace{1em} } \ No newline at end of file diff --git a/TeX/Settings/General.tex b/TeX/Settings/General.tex index 9b31bd3..f32ff6a 100644 --- a/TeX/Settings/General.tex +++ b/TeX/Settings/General.tex @@ -2,14 +2,14 @@ \newcommand{\waterMarkText}{} -\newcommand{\meetingDate}{26.11.2024} +\newcommand{\meetingDate}{XX.XX.XXXX} \newcommand{\meetingLocation}{ % Online % / Hybrid - } -\newcommand{\meetingStartTime}{19:29} -\newcommand{\meetingEndTime}{19:42} +\newcommand{\meetingStartTime}{XX:XX} +\newcommand{\meetingEndTime}{XX:XX} \newcommand{\meetingType}{ Ordentliche Sitzung % Außerordentliche Sitzung