Compare commits

...

2 Commits

9 changed files with 133 additions and 54 deletions

View File

@ -41,4 +41,8 @@
\begin{CustomBox}{\faIcon{user}}{blue} \begin{CustomBox}{\faIcon{user}}{blue}
\textbf{Info:} \lipsum[1] \textbf{Info:} \lipsum[1]
\end{CustomBox} \end{CustomBox}
\begin{VotingResults}{3}{2}{3}
\textbf{Abstimmung:} \lipsum[75]
\end{VotingResults}

View File

@ -1,5 +1,13 @@
% !TEX root = ../../Main.tex % !TEX root = ../../Main.tex
% ==== Colors ====
\definecolor{britishracinggreen}{rgb}{0.0, 0.26, 0.15}
\definecolor{eggplant}{rgb}{0.38, 0.25, 0.32}
\definecolor{hanblue}{rgb}{0.27, 0.42, 0.81}
\definecolor{navyblue}{rgb}{0.0, 0.0, 0.5}
\definecolor{pansypurple}{rgb}{0.47, 0.09, 0.29}
\definecolor{shockingpink}{rgb}{0.99, 0.06, 0.75}
% ==== Base Case ==== % ==== Base Case ====
% Define a counter to track nesting level % Define a counter to track nesting level
\newcounter{coloredBoxLevel} \newcounter{coloredBoxLevel}
@ -124,12 +132,12 @@
% Derived from `ColoredBox` % Derived from `ColoredBox`
\NewEnviron{SuccessBox}[1][ \NewEnviron{SuccessBox}[1][
icon={\faCheckCircle}, icon={\faCheckCircle},
icon.color={britishracinggreen}, icon.color={green},
icon.prefix={}, icon.prefix={},
icon.fontsize={24pt}, icon.fontsize={24pt},
icon.offset.x={0pt}, icon.offset.x={0pt},
icon.offset.y={2pt}, icon.offset.y={2pt},
background.color={britishracinggreen} background.color={green}
]{ ]{
\let\sBODY\BODY \let\sBODY\BODY
\begin{ColoredBox}[#1] \begin{ColoredBox}[#1]
@ -176,4 +184,76 @@
\cBODY \cBODY
\end{ColoredBox} \end{ColoredBox}
} }
% ==== /Simpler Custom Boxes ==== % ==== /Simpler Custom Boxes ====
% ==== Voting results Environment ====
% Using vote-yea Icon from fontawesome
\NewEnviron{VotingResultsBox}[1]{
\let\VotingResultsBODY\BODY
\begin{ColoredBox}[
icon={\faVoteYea},
icon.color={#1},
icon.prefix={},
icon.fontsize={24pt},
icon.offset.x={-0.2cm},
icon.offset.y={0pt},
background.color={#1}
]
\VotingResultsBODY
\end{ColoredBox}
}
% ==== /Voting results Environment ====
% ==== Voting Results ====
% Derived from `VotingResultsBox`
\NewEnviron{VotingResults}[3]{
\let\voteBODY\BODY
% Choose the color based on the vote results
\ifnum#1>#2
\def\voteColor{britishracinggreen}
\else
\ifnum#1<#2
\def\voteColor{red}
\else
\def\voteColor{eggplant}
\fi
\fi
\begin{VotingResultsBox}{\voteColor}
\voteBODY
\begin{multicols}{3}
\begin{CustomBox}{\faThumbsUp}{britishracinggreen}
\textbf{Ja:} #1
\end{CustomBox}
\columnbreak
\begin{CustomBox}{\faThumbsDown}{red}
\textbf{Nein:} #2
\end{CustomBox}
\columnbreak
\begin{CustomBox}{\faQuestion}{eggplant}
\textbf{Enthaltung:} #3
\end{CustomBox}
\end{multicols}
\end{VotingResultsBox}
}
% ==== /Voting Results ====
% ==== Discussion Box ====
% Derived from `ColoredBox`
\NewEnviron{DiscussionBox}[1][
icon={\faComments},
icon.color={hanblue},
icon.prefix={},
icon.fontsize={24pt},
icon.offset.x={0pt},
icon.offset.y={0pt},
background.color={hanblue}
]{
\let\dBODY\BODY
\begin{ColoredBox}[#1]
\dBODY
\end{ColoredBox}
}
% ==== /Discussion Box ====

16
TeX/Modules/ToC.tex Normal file
View File

@ -0,0 +1,16 @@
% !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}}

View File

@ -0,0 +1,6 @@
% !TEX root = ../../Main.tex
% ==== Page Style ====
\pagestyle{fancy}
% Line spacing
\renewcommand{\baselinestretch}{1.5}

16
TeX/Modules/Watermark.tex Normal file
View File

@ -0,0 +1,16 @@
% !TEX root = ../../Main.tex
% ==== Watermark ====
\newcounter{it}
\DraftwatermarkOptions{
scale=0.08,
angle=45,
text={\begin{tabular}{c}%
\setcounter{it}{1}%
\whiledo{\theit<100}{%
\foreach \col in {0,...,15}{\color{black!5}\BeginAccSupp{ActualText=}\waterMarkText~~\EndAccSupp{}}\\%
\stepcounter{it}%
}
\end{tabular}
},
color=black!12,
}

View File

@ -9,56 +9,13 @@
\inputrelative{Settings/Logos} \inputrelative{Settings/Logos}
% ==== Tools ==== % ==== Tools ====
\inputrelative{Tools/Listings} \inputrelative{Modules/Listings}
\inputrelative{Tools/Floats} \inputrelative{Modules/Floats}
\inputrelative{Tools/MeetingPresence} \inputrelative{Modules/MeetingPresence}
\inputrelative{Tools/InfoBlocks} \inputrelative{Modules/InfoBlocks}
\inputrelative{Modules/Watermark}
% ==== TOC ==== \inputrelative{Modules/ToC}
% Set the toc page style to fancy \inputrelative{Modules/Typography}
\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}}
% ==== Colors ====
\definecolor{britishracinggreen}{rgb}{0.0, 0.26, 0.15}
\definecolor{eggplant}{rgb}{0.38, 0.25, 0.32}
\definecolor{hanblue}{rgb}{0.27, 0.42, 0.81}
\definecolor{navyblue}{rgb}{0.0, 0.0, 0.5}
\definecolor{pansypurple}{rgb}{0.47, 0.09, 0.29}
\definecolor{shockingpink}{rgb}{0.99, 0.06, 0.75}
% ==== Page Style ====
\pagestyle{fancy}
% Line spacing
\renewcommand{\baselinestretch}{1.5}
% ==== Watermark ====
\newcounter{it}
\DraftwatermarkOptions{
scale=0.08,
angle=45,
text={\begin{tabular}{c}%
\setcounter{it}{1}%
\whiledo{\theit<100}{%
\foreach \col in {0,...,15}{\color{black!5}\BeginAccSupp{ActualText=}\waterMarkText~~\EndAccSupp{}}\\%
\stepcounter{it}%
}
\end{tabular}
},
color=black!12,
}
% ==== Glossary ==== % ==== Glossary ====
\input{Content/99_glossary.tex} \input{Content/99_glossary.tex}