From 14b3508561bce09fa921987b15d3b0000f571596 Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Fri, 6 Jun 2025 23:45:59 +0200 Subject: [PATCH 1/3] exclude any pdf output files --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 747d42e..d03ff84 100644 --- a/.gitignore +++ b/.gitignore @@ -23,7 +23,7 @@ # *.pdf ## Generated if empty string is given at "Please type another file name for output:" -.pdf +*.pdf ## Bibliography auxiliary files (bibtex/biblatex/biber): *.bbl From fa9925cf00697b62228f6c501b7b9bd0d0c05bff Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Fri, 6 Jun 2025 23:46:24 +0200 Subject: [PATCH 2/3] refactored and commented Preamble --- main.tex | 97 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 44 deletions(-) diff --git a/main.tex b/main.tex index 5efccdd..78452d6 100644 --- a/main.tex +++ b/main.tex @@ -1,43 +1,44 @@ \documentclass[a4paper]{article} -\usepackage[onehalfspacing]{setspace} -\usepackage{geometry} % Required for adjusting page dimensions and margins -\usepackage{amsmath,amsfonts,stmaryrd,amssymb,mathtools,dsfont} % Math packages -\usepackage{tabularx} -\usepackage{colortbl} -\usepackage{listings} -\usepackage{amsmath} -\usepackage{amssymb} -\usepackage{amsthm} -\usepackage{enumerate} -\usepackage{enumitem} -\usepackage{subcaption} -\usepackage{float} -\usepackage[table,xcdraw]{xcolor} -\usepackage{tikz-qtree} -\usepackage{tikz} -\usepackage{pgfplots} +\usepackage[ruled]{algorithm2e} % For writing algorithms with structured formatting +\usepackage{amsmath} % Advanced math typesetting +\usepackage{amssymb} % Additional math symbols +\usepackage{amsthm} % Theorem environments +\usepackage{amsfonts} % Additional math fonts +\usepackage{bookmark} % Improves PDF bookmarks (better than hyperref's default) +\usepackage{changepage,titlesec,fancyhdr} % Adjusting layout, section titles, and headers/footers +\usepackage[ddmmyyyy]{datetime} % Custom date formatting +\usepackage{cleveref} % Smarter cross-referencing (e.g., auto "Figure", "Table") +\usepackage{colortbl} % Coloring table rows and cells +\usepackage{diagbox} % Diagonal split in table cells +\usepackage{dsfont} % Double stroke fonts (e.g., for indicator function) +\usepackage{enumitem} % Better control over list environments +\usepackage{float} % Precise control over figure/table placement +\usepackage{forest} % Drawing tree structures +\usepackage{geometry} % Customizing page dimensions and margins +\usepackage{hyperref} % Clickable links for references and URLs +\usepackage{listings} % Source code formatting +\usepackage[framemethod=tikz]{mdframed} % Creating framed environments using TikZ +\usepackage{mathtools} % Extensions to amsmath (e.g., \coloneqq) +\usepackage{microtype} % Enhances typographic appearance (kerning, spacing) +\usepackage[onehalfspacing]{setspace} % Set line spacing to 1.5 +\usepackage{pgfplots} % Plotting graphs and data +\usepackage{subcaption} % Subfigures and subcaptions +\usepackage{stmaryrd} % Extra math symbols (e.g., semantic brackets) +\usepackage{tabularx} % Tables with automatic column width adjustment +\usepackage[table,xcdraw]{xcolor} % Coloring text and tables +\usepackage{tikz} % Drawing diagrams and illustrations +\usepackage{tikz-qtree} % Easy syntax for trees with TikZ + +% Package configurations + \pgfplotsset{compat=1.17} -\usepackage{forest} -\usepackage{changepage,titlesec,fancyhdr} % For styling Header and Titles + \pagestyle{fancy} -\renewcommand{\headrulewidth}{0.5pt} % Linienbreite anpassen, falls gewünscht -\renewcommand{\headrule}{ - \makebox[\textwidth]{\rule{1.0\textwidth}{0.5pt}} -} -\usepackage{amsmath} -\pagestyle{fancy} -\usepackage{diagbox} -\usepackage{xfrac} -\usepackage{enumerate} % Custom item numbers for enumerations -\usepackage[ruled]{algorithm2e} % Algorithms -\usepackage[framemethod=tikz]{mdframed} % Allows defining custom boxed/framed environments -\usepackage{listings} % File listings, with syntax highlighting + \lstset{ basicstyle=\ttfamily, % Typeset listings in monospace font } -\usepackage[ddmmyyyy]{datetime} - \geometry{ paper=a4paper, % Paper size, change to letterpaper for US letter size top=3cm, % Top margin @@ -49,22 +50,30 @@ headsep=1cm, % Space from the top margin to the baseline of the header } + +\renewcommand{\headrulewidth}{0.5pt} % Adjust lineheight of the header rule +\renewcommand{\headrule}{ + \makebox[\textwidth]{\rule{1.0\textwidth}{0.5pt}} +} + % Default config -\lhead{[Subject Name]]\\[Term]} -\chead{\bfseries{\vspace{0.5\baselineskip}[Assignment Title]}} -\rhead{[Name of 1st Author], [Matr. Nr of 1st Author]\\[Name of 2nd Author], {Matr. Nr of 2nd Author]}} +\lhead{Subject Name\\Term} +\chead{\bfseries{\vspace{0.5\baselineskip}Assignment Title}} +\rhead{Name of 1st Author, Matr. Nr of 1st Author\\Name of 2nd Author, {Matr. Nr of 2nd Author}} % UNCOMMENT TO USE: Config for Single Author -% \lhead{\vspace{0.5\baselineskip}[Assignment Title]} -% \chead{\bfseries{[Subject Name]\\[Term]}} -% \rhead{\vspace{0.5\baselineskip}[Name of 1st Author], [Mtr. Nr of 1st Author]} +% \lhead{\vspace{0.5\baselineskip}Assignment Title} +% \chead{\bfseries{Subject Name\\Term}} +% \rhead{\vspace{0.5\baselineskip}Name of 1st Author, Mtr. Nr of 1st Author} % UNCOMMENT TO USE: Config for 3-4 Authors -% \lhead{[Name of 1st Author], [Matr. Nr of 1st Author]\\[Name of 2nd Author], [Matr. Nr of 2nd Author]} -% \chead{\bfseries{\vspace{0.5\baselineskip}HL-BPR Praktikum SS25\\Blatt 06}} -% \rhead{[Name of 3rd Author], [Matr. Nr of 3rd Author]\\[Name of 4th Author], [Matr. Nr of 4th Author]} +% \lhead{Name of 1st Author, Matr. Nr of 1st Author\\Name of 2nd Author, Matr. Nr of 2nd Author} +% \chead{\bfseries{\vspace{0.5\baselineskip}Subject Name\\Assignment Title}} +% \rhead{Name of 3rd Author, Matr. Nr of 3rd Author\\Name of 4th Author, Matr. Nr of 4th Author} + \fancyheadoffset[R]{0cm} - +\setcounter{section}{4} % Start section numbering from 4 (e.g. for Assignment 4) +\setcounter{page}{1} % Start page numbering from 1 \begin{document} - +\subsection{} \end{document} From d51026ffb98ec6e92bf3e12d38b84887d865ad85 Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Fri, 6 Jun 2025 23:46:41 +0200 Subject: [PATCH 3/3] adjusted refactor from previous commit --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b0494c3..756c4c6 100644 --- a/README.md +++ b/README.md @@ -17,24 +17,24 @@ To use a 1, 3 or 4 Author configuration, do as follows: 1. Comment out the enabled config as follows: ```tex % Default config -% \lhead{[Subject Name]]\\[Term]} -% \chead{\bfseries{\vspace{0.5\baselineskip}[Assignment Title]}} -% \rhead{[Name of 1st Author], [Matr. Nr of 1st Author]\\[Name of 2nd Author], {Matr. Nr of 2nd Author]}} +% \lhead{Subject Name\\Term} +% \chead{\bfseries{\vspace{0.5\baselineskip}Assignment Title}} +% \rhead{Name of 1st Author, Matr. Nr of 1st Author\\Name of 2nd Author, {Matr. Nr of 2nd Author}} ``` 2. Choose Your desired configuration and uncomment it as follows: - Single-Author: ```tex % UNCOMMENT TO USE: Config for Single Author - \lhead{\vspace{0.5\baselineskip}[Assignment Title]} - \chead{\bfseries{[Subject Name]\\[Term]}} - \rhead{\vspace{0.5\baselineskip}[Name of 1st Author], [Mtr. Nr of 1st Author]} + \lhead{\vspace{0.5\baselineskip}Assignment Title} + \chead{\bfseries{Subject Name\\Term}} + \rhead{\vspace{0.5\baselineskip}Name of 1st Author, Mtr. Nr of 1st Author} ``` - 3- or 4-Authors: ```tex % UNCOMMENT TO USE: Config for 3-4 Authors - \lhead{[Name of 1st Author], [Matr. Nr of 1st Author]\\[Name of 2nd Author], [Matr. Nr of 2nd Author]} - \chead{\bfseries{\vspace{0.5\baselineskip}HL-BPR Praktikum SS25\\Blatt 06}} - \rhead{[Name of 3rd Author], [Matr. Nr of 3rd Author]\\[Name of 4th Author], [Matr. Nr of 4th Author]} + \lhead{Name of 1st Author, Matr. Nr of 1st Author\\Name of 2nd Author, Matr. Nr of 2nd Author} + \chead{\bfseries{\vspace{0.5\baselineskip}Subject Name\\Assignment Title}} + \rhead{Name of 3rd Author, Matr. Nr of 3rd Author\\Name of 4th Author, Matr. Nr of 4th Author} ``` *Note*: For this variant with a 3 Author config, simply remove the last part of the `\rhead` tag with the linebreak! 3. Recompile!