From b3261a3812ba0f161c6cc1d9e46bdeec624470d1 Mon Sep 17 00:00:00 2001 From: Frederik Beimgraben Date: Wed, 13 Nov 2024 00:55:37 +0000 Subject: [PATCH] Change values specific to origin --- TeX/Classes/HSRTReport/Pages/Titlepage.tex | 4 +- TeX/Imports.tex | 10 +- TeX/Report.tex | 51 ++++---- TeX/Report/Floats.tex | 9 -- TeX/Report/Imports.tex | 129 --------------------- TeX/Report/Listings.tex | 99 ---------------- TeX/Settings/General.tex | 6 +- TeX/Settings/Logos.tex | 4 +- TeX/Tools/Presence.tex | 37 ------ 9 files changed, 34 insertions(+), 315 deletions(-) delete mode 100644 TeX/Report/Floats.tex delete mode 100644 TeX/Report/Imports.tex delete mode 100644 TeX/Report/Listings.tex delete mode 100644 TeX/Tools/Presence.tex diff --git a/TeX/Classes/HSRTReport/Pages/Titlepage.tex b/TeX/Classes/HSRTReport/Pages/Titlepage.tex index 267dc23..5960cb1 100644 --- a/TeX/Classes/HSRTReport/Pages/Titlepage.tex +++ b/TeX/Classes/HSRTReport/Pages/Titlepage.tex @@ -6,8 +6,8 @@ \setlength{\imageHeight}{2cm*\real{\mainLogoScale}*\real{\logosScale}} \begin{titlepage} \begin{tikzpicture}[overlay, remember picture] - \node[anchor=north west, inner sep=0pt, xshift=1.8cm, yshift=-1.5cm] (logo0) at (current page.north west) { - \includesvg[height=\imageHeight]{\imagesPath/DUMMY.svg} + \node[anchor=north west, inner sep=0pt, xshift=1.8cm, yshift=-1.5cm, opacity=0] (logo0) at (current page.north west) { + \includesvg[height=\imageHeight]{\imagesPath/DUMMY_FOOT.svg} }; \SetupTitlePageLogos \end{tikzpicture} diff --git a/TeX/Imports.tex b/TeX/Imports.tex index a7c1b50..57abc31 100644 --- a/TeX/Imports.tex +++ b/TeX/Imports.tex @@ -155,12 +155,4 @@ % Write \currfiledir#1 to the log file \typeout{Importing file: <\currfiledir>} \input{\currfiledir#1} -} - -\DeclareRobustCommand{\inputsettings}[1]{ - \input{TeX/Settings/#1} -} - -\DeclareRobustCommand{\RelativeAsset}[1]{ - \currfiledir#1 -} +} \ No newline at end of file diff --git a/TeX/Report.tex b/TeX/Report.tex index fe30d22..e60013d 100644 --- a/TeX/Report.tex +++ b/TeX/Report.tex @@ -1,37 +1,20 @@ % !TEX root = ../Main.tex \WarningsOff* +% ==== Imports ==== \input{TeX/Imports} -\inputsettings{General} -\inputsettings{Logos} - -% Logo type (either STUPA or HSRT) -\providecommand{\logoType}{HSRT} +% ==== Settings ==== +\inputrelative{Settings/General} +\inputrelative{Settings/Logos} +% ==== Tools ==== \inputrelative{Tools/Listings} \inputrelative{Tools/Floats} \inputrelative{Tools/MeetingPresence} \inputrelative{Tools/InfoBlocks} -%\SetWatermarkText{Stand 06.11.2024} -%\SetWatermarkScale{0.5} - -\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{}Stand 06.11.2024~~\EndAccSupp{}}\\% - \stepcounter{it}% - } - \end{tabular} - }, - color=black!12, -} - +% ==== TOC ==== % Set the toc page style to fancy \tocloftpagestyle{fancy} @@ -47,7 +30,7 @@ \renewcommand\cftsubsecfont{\blenderfont\color{gray}} \renewcommand\cftsubsubsecfont{\blenderfont\color{gray}} -% Custom colors +% ==== 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} @@ -55,10 +38,28 @@ \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} -\input{Content/99_glossary.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{}\waterMarkText~~\EndAccSupp{}}\\% + \stepcounter{it}% + } + \end{tabular} + }, + color=black!12, +} +% ==== Glossary ==== +\input{Content/99_glossary.tex} \makenoidxglossaries \ No newline at end of file diff --git a/TeX/Report/Floats.tex b/TeX/Report/Floats.tex deleted file mode 100644 index abd7a7e..0000000 --- a/TeX/Report/Floats.tex +++ /dev/null @@ -1,9 +0,0 @@ -% !TEX root = ../../Main.tex - -\setlist[itemize]{leftmargin=*, itemsep=0pt, parsep=0pt} -\captionsetup[subfigure]{labelfont=rm,justification=centerlast,font=small,margin=50pt} -\floatsetup[table]{capposition=top} -\floatsetup[image]{capposition=bottom} - -\newcommand{\cmark}{\ding{51}}% -\newcommand{\xmark}{\ding{55}}% diff --git a/TeX/Report/Imports.tex b/TeX/Report/Imports.tex deleted file mode 100644 index 7c958c3..0000000 --- a/TeX/Report/Imports.tex +++ /dev/null @@ -1,129 +0,0 @@ -% !TEX root = ../../Main.tex - -% ==== Imports ==== - -% calc package -\usepackage{calc} - -% fp package -\usepackage[nomessages]{fp}% http://ctan.org/pkg/fp - -% xstring package -\usepackage{xstring} - -% Glossaries package -\usepackage{glossaries} - -% Import multicols -\usepackage{multicol} - -% Silence package warnings -\usepackage{silence} - -% Babel for language support -\usepackage[ngerman]{babel} - -% Bibliography management with biber backend and IEEE style -\usepackage[ - backend=biber, - sorting=none, - style=ieee -]{biblatex} - -% Context-sensitive quotation marks -\usepackage{csquotes} - -% Clever referencing with hyperlinked references -\usepackage[nameinlink, noabbrev]{cleveref} - -% Geometry for setting page dimensions and margins -\usepackage[a4paper, margin=2cm]{geometry} - -% Booktabs for better table formatting -\usepackage{booktabs} - -% Tabularx for tables with fixed width columns -\usepackage{tabularx} - -% Longtable for tables that span multiple pages -\usepackage{longtable} - -% Graphics support -\usepackage{graphicx} - -% Enumitem for customized lists -\usepackage{enumitem} - -% Verbatim for including literal text -\usepackage{verbatim} - -% Captions for customizing figure and table captions -\usepackage{caption} - -% Floatrow for advanced float customization -\usepackage{floatrow} - -% Subcaption for subfigures within a figure -\usepackage[subrefformat=parens]{subcaption} - -% Glossaries for glossary support -\usepackage{glossaries} - -% Blindtext for generating dummy text -\usepackage{blindtext} - -% Listings for including source code with syntax highlighting -\usepackage{listings} - -% Hyphenation support for monospaced fonts -\usepackage[htt]{hyphenat} - -% Color package for text coloring -\usepackage{color} - -% Additional options for captions -\usepackage{caption,xparse} - -% Multirow for table cells spanning multiple rows -\usepackage{multirow} - -% Mathematical symbols and fonts -\usepackage{amssymb} - -% Pifont for dingbat symbols -\usepackage{pifont} - -% Epigraph for quotations -\usepackage{epigraph} - -% Lipsum for generating dummy text -\usepackage{lipsum} - -% Setspace for line spacing -\usepackage{setspace} - -% Lmodern for scalable font -\usepackage{lmodern} - -% Anyfontsize for using arbitrary font sizes -\usepackage{anyfontsize} - -% For dotted lines in tables -\usepackage{arydshln} - -% mdframed -\usepackage{mdframed} - -% twemojis -\usepackage{twemojis} - -% utfsym -\usepackage{eurosym} - -\usepackage{draftwatermark} - -\usepackage{utfsym} - -\usepackage{accsupp} - -\usepackage{tocloft} \ No newline at end of file diff --git a/TeX/Report/Listings.tex b/TeX/Report/Listings.tex deleted file mode 100644 index dd04f03..0000000 --- a/TeX/Report/Listings.tex +++ /dev/null @@ -1,99 +0,0 @@ -% !TEX root = ../../Main.tex - -\lstset{basicstyle=\footnotesize\ttfamily,breaklines=true,numbers=left,frame=single} - -\lstdefinestyle{htmlCode} { - language=html, - basicstyle=\scriptsize\ttfamily, - keywordstyle=\color{blue}\bfseries\ttfamily, - commentstyle=\color{gray}\ttfamily, - escapechar=| % Escape to LaTeX between |...| -} - -\lstdefinestyle{phpCode} { - language=php, - morekeywords={php}, - basicstyle=\footnotesize\ttfamily, - keywordstyle=\color{blue}\bfseries\ttfamily, - commentstyle=\color{gray}\ttfamily, - escapechar=| % Escape to LaTeX between |...| -} - -\lstdefinestyle{jsCode} { - language=javascript, - morekeywords=, - basicstyle=\scriptsize\ttfamily, - keywordstyle=\color{blue}\bfseries\ttfamily, - commentstyle=\color{gray}\ttfamily, - escapechar=| % Escape to LaTeX between |...| -} - -\lstdefinestyle{shellCodeNOPASSWD} { - language=sh, - deletekeywords={for,kill,cat}, - morekeywords={sudo}, - basicstyle=\scriptsize\ttfamily, - keywordstyle=\color{blue}\bfseries\ttfamily, - commentstyle=\color{gray}\ttfamily, - escapechar=|, % Escape to LaTeX between |...| - numbers=none -} - -\lstdefinestyle{shellCode} { - language=sh, - deletekeywords={}, - morekeywords={sudo,chmod,chown,cp,su,rm,python}, - basicstyle=\scriptsize\ttfamily, - keywordstyle=\color{blue}\bfseries\ttfamily, - commentstyle=\color{gray}\ttfamily, - escapechar=| % Escape to LaTeX between |...| -} - -\lstdefinestyle{URL} { - basicstyle=\footnotesize\ttfamily, - commentstyle=\color{gray}\ttfamily, - escapechar=|, % Escape to LaTeX between |...| - numbers=none -} - -% BLST - -\definecolor{light-gray}{gray}{0.80} - -\ExplSyntaxOn -\tl_new:N \l_listings_boxed_options_tl -\keys_define:nn { listings/boxed } - { - caption .tl_set:N = \l_listings_boxed_caption_tl, - shortcaption .tl_set:N = \l_listings_boxed_shortcaption_tl, - label .tl_set:N = \l_listings_boxed_label_tl, - unknown .code:n = - \tl_put_right:NV \l_listings_boxed_options_tl \l_keys_key_tl - \tl_put_right:Nn \l_listings_boxed_options_tl { = #1 , }, - } -\box_new:N \l_listings_boxed_box - -\lstnewenvironment{blstlisting}[1][] - { - \keys_set:nn { listings/boxed } { #1 } - \exp_args:NV \lstset \l_listings_boxed_options_tl - \hbox_set:Nw \l_listings_boxed_box - } - { - \hbox_set_end: - \cs_set_eq:cc {c@figure} {c@lstlisting} - \tl_set_eq:NN \figurename \lstlistingname - \tl_if_empty:NF \l_listings_boxed_caption_tl - { - \tl_if_empty:NTF \l_listings_boxed_shortcaption_tl - { - \captionof{figure}{\l_listings_boxed_caption_tl} - } - { - \captionof{figure}[\l_listings_boxed_shortcaption_tl]{\l_listings_boxed_caption_tl} - } - \tl_if_empty:NF \l_listings_boxed_label_tl { \label{\l_listings_boxed_label_tl} } - } - \leavevmode\box_use:N \l_listings_boxed_box - } -\ExplSyntaxOff \ No newline at end of file diff --git a/TeX/Settings/General.tex b/TeX/Settings/General.tex index 8f94b1f..0ef6f7d 100644 --- a/TeX/Settings/General.tex +++ b/TeX/Settings/General.tex @@ -1,10 +1,10 @@ % !TEX root = ../../Main.tex % Meeting date -\newcommand{\meetingDate}{14.11.2024} +\newcommand{\waterMarkText}{Stand \today} % Current date and time -\createdon{\meetingDate} +\createdon{\today} % Title -\title{Handout zur außerordentlichen STUPA-Sitzung am \meetingDate} +\title{HSRT \LaTeX\ Report Template of @frederikbeimgraben} diff --git a/TeX/Settings/Logos.tex b/TeX/Settings/Logos.tex index e548112..8d45c24 100644 --- a/TeX/Settings/Logos.tex +++ b/TeX/Settings/Logos.tex @@ -3,10 +3,10 @@ %%%% ORDER IS CRITICAL %%%% % STUPA Logo -\AddLogo{TeX/Assets/Images/STUPA.png}{1.1}{0.3}{1}{0} +%\AddLogo{TeX/Assets/Images/STUPA.png}{1.1}{0.3}{1}{0} % HSRT Logo -\AddLogo{TeX/Assets/Images/HSRT.png}{1.4}{0.0}{2}{1} +\AddLogo{TeX/Assets/Images/HSRT.png}{1.4}{0.0}{1}{0} % METI Logo % \AddLogo{TeX/Assets/Images/METI.png}{1.1}{0.3}{3}{2} diff --git a/TeX/Tools/Presence.tex b/TeX/Tools/Presence.tex deleted file mode 100644 index 0c1bd82..0000000 --- a/TeX/Tools/Presence.tex +++ /dev/null @@ -1,37 +0,0 @@ -% !TEX root = ../../Main.tex -\DeclareRobustCommand{\tableDot}[1]{ - \strcompare{#1}{true}{ - $\bullet$ - }{ - \hspace{1em} - } -} - -\DeclareRobustCommand{\PresenceTableLine}[8]{ -% Name | Note | ab* | bis* | STUPA? | AStA? | Anwesend? | Online? - #1 & \textit{#2} & #3 & #4 & \tableDot{#5} & \tableDot{#6} & \tableDot{#7} & \tableDot{#8} \\[-1em] -} - -\DeclareRobustCommand{\PresenceTableSums}[4]{ - \textbf{Summe} & & & & \textbf{#1} & \textbf{#2} & \textbf{#3} & \textbf{#4} \\ -} - -\DeclareRobustCommand{\rotFull}[1]{ - \rotatebox{90}{#1} -} - -\DeclareRobustCommand{\rotFF}[1]{ - \rotatebox{45}{#1} -} - -\newcommand{\dotsColumnWidth}{0.75em} - -\DeclareRobustCommand{\PresenceTable}[1] { - \begin{center} - \begin{tabularx}{\textwidth}{X X | >{\centering\arraybackslash}p{2.5em} >{\centering\arraybackslash}p{2.5em} | >{\centering\arraybackslash}p{\dotsColumnWidth} >{\centering\arraybackslash}p{\dotsColumnWidth} >{\centering\arraybackslash}p{\dotsColumnWidth} >{\centering\arraybackslash}p{\dotsColumnWidth}} - \textbf{Name} & \textit{\textbf{Notiz/Rolle*}} & \textbf{\textit{ab*}} & \textit{\textbf{bis*}} & \rotFull{\textbf{STUPA}} & \rotFull{\textbf{AStA}} & \rotFull{\textbf{Präsent}} & \rotFull{\textbf{Online}} \\ - \specialrule{.2em}{.05em}{.05em} \addlinespace[1ex] - #1 - \end{tabularx} - \end{center} -} \ No newline at end of file