From b018a571b15ccc472ebc74a0bdb6e8891527394e Mon Sep 17 00:00:00 2001 From: Frederik Beimgraben Date: Thu, 21 Nov 2024 17:24:31 +0000 Subject: [PATCH] Add BibTeX --- Content/01_content.tex | 3 ++- Content/99_bib.tex | 3 +++ Main.tex | 1 + TeX/Classes/HSRTReport/HSRTReport.cls | 5 ++++- TeX/Report.tex | 1 + TeX/Settings/BibTeX.tex | 4 ++++ main.bib | 22 ++++++++++++++++++++++ 7 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 Content/99_bib.tex create mode 100644 TeX/Settings/BibTeX.tex create mode 100644 main.bib diff --git a/Content/01_content.tex b/Content/01_content.tex index 9f8632c..57daf59 100644 --- a/Content/01_content.tex +++ b/Content/01_content.tex @@ -1,5 +1,6 @@ +% !TEX root = ../Main.tex \begin{InfoBox} - \textbf{Hinweis:} \lipsum[75] + \textbf{Hinweis:} \lipsum[75]\cite{wombat2016} \begin{multicols}{2} \begin{CustomBox}{\faIcon{user-graduate}}{britishracinggreen} \textbf{Hinweis:} \lipsum[66] diff --git a/Content/99_bib.tex b/Content/99_bib.tex new file mode 100644 index 0000000..b9dd7a0 --- /dev/null +++ b/Content/99_bib.tex @@ -0,0 +1,3 @@ +% !TEX root = ../Main.tex +\newpage +\printbibliography \ No newline at end of file diff --git a/Main.tex b/Main.tex index c900fd9..9295b97 100644 --- a/Main.tex +++ b/Main.tex @@ -22,6 +22,7 @@ % ===== Content ===== \input{Content/00_toc.tex} \input{Content/01_content.tex} +\input{Content/99_bib.tex} \pagebreak % Print the glossary diff --git a/TeX/Classes/HSRTReport/HSRTReport.cls b/TeX/Classes/HSRTReport/HSRTReport.cls index 99282c1..34a4599 100644 --- a/TeX/Classes/HSRTReport/HSRTReport.cls +++ b/TeX/Classes/HSRTReport/HSRTReport.cls @@ -165,7 +165,7 @@ % ============================================================================= \def\skylinePath{TeX/Assets/Images/Skyline.svg} -\newcommand{\footerYShift}{2em} +\newcommand{\footerYShift}{1.5em} \newcommand{\footerXShift}{0.7em} % Define the logo and its position @@ -178,6 +178,8 @@ \includesvg[height=\imageHeight]{\imagesPath/DUMMY_FOOT.svg} } }; + \ifnum\thepage=1 + \else % For loop to place all logos \foreach \i in {1,...,\value{logoCounter}} { % Calculate name for i-1 @@ -207,6 +209,7 @@ \makeatother }; } + \fi % Skyline \node[anchor=south west, inner sep=0pt, yshift=0em] at (current page.south west) { \includesvg[width=1.5\paperwidth]{\skylinePath} diff --git a/TeX/Report.tex b/TeX/Report.tex index 4cd7876..bafe749 100644 --- a/TeX/Report.tex +++ b/TeX/Report.tex @@ -7,6 +7,7 @@ % ==== Settings ==== \inputrelative{Settings/General} \inputrelative{Settings/Logos} +\inputrelative{Settings/BibTeX} % ==== Tools ==== \inputrelative{Modules/Listings} diff --git a/TeX/Settings/BibTeX.tex b/TeX/Settings/BibTeX.tex new file mode 100644 index 0000000..52cf19f --- /dev/null +++ b/TeX/Settings/BibTeX.tex @@ -0,0 +1,4 @@ +% !TEX root = ../../Main.tex + +% Add main.bib to bibliography +\addbibresource{main.bib} \ No newline at end of file diff --git a/main.bib b/main.bib new file mode 100644 index 0000000..24401f9 --- /dev/null +++ b/main.bib @@ -0,0 +1,22 @@ +@article{wombat2016, + author = {Walther Wombat and Klaus Koala}, + title = {The true meaning of 42}, + journal = {Journal of modern skepticism}, + date = {2016}, + keywords = {trusted}, +} +@book{lion2010, + author = {Laura Lion and Gabrielle Giraffe and Carl Capybara}, + title = {The dangers of asking the wrong question}, + publisher = {publishing house}, + date = {2010}, + keywords = {trusted}, +} +@online{wikibook, + title = {Generating Bibliographies with biblatex and biber}, + organization = {Wikibooks}, + date = {2016}, + urldate = {2016-03-07}, + url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber}, + keywords = {untrusted}, +} \ No newline at end of file