From 540d49d16042db48419bca1993bfb6c89557e468 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 16 Nov 2021 14:13:33 +0100 Subject: [PATCH] Better references, support for images and subfigures --- extended_bibliography.tex | 24 ++++++++++++++++++++++++ report.tex | 34 +++++++++------------------------- 2 files changed, 33 insertions(+), 25 deletions(-) create mode 100644 extended_bibliography.tex diff --git a/extended_bibliography.tex b/extended_bibliography.tex new file mode 100644 index 00000000..e6206b4e --- /dev/null +++ b/extended_bibliography.tex @@ -0,0 +1,24 @@ +%{{{ archivedat and archivedon for online sources +\NewBibliographyString{archivedat,archivedon} +\DefineBibliographyStrings{english}{% + archivedat = {archived at}, + archivedon = {on}, +} +\DeclareFieldFormat{archiveurl}{\bibstring{archivedat}\space\url{#1}} +\DeclareFieldFormat{archivedate}{\bibstring{archivedon}\space#1} + +\newbibmacro*{archiveurl}{\printfield{archiveurl}} +\newbibmacro*{archivedate}{\printarchivedate} +\renewbibmacro*{url+urldate}{% + \usebibmacro{url}% + \iffieldundef{urlyear} + {} + {\setunit*{\addspace}% + \usebibmacro{urldate}}% + \setunit{\addcomma\space}% + \usebibmacro{archiveurl}% + \iffieldundef{archiveyear} + {} + {\setunit*{\addspace}% + \usebibmacro{archivedate}}} +%}}} archivedat and archivedon for online sources diff --git a/report.tex b/report.tex index 6e6d2b0a..54df6a91 100644 --- a/report.tex +++ b/report.tex @@ -34,36 +34,18 @@ headsepline, % language specific quotes and general recommendations for biblatex \usepackage{lmodern,csquotes,xpatch} +% images +\usepackage{graphicx} +\usepackage{caption} +\usepackage{subcaption} + % acronyms \usepackage{acro} \include{acronyms} % bibliography \usepackage[datamodel=archived,backend=biber]{biblatex} -%{{{ archivedat and archivedon for online sources -\NewBibliographyString{archivedat,archivedon} -\DefineBibliographyStrings{english}{% - archivedat = {archived at}, - archivedon = {on}, -} -\DeclareFieldFormat{archiveurl}{\bibstring{archivedat}\space\url{#1}} -\DeclareFieldFormat{archivedate}{\bibstring{archivedon}\space#1} - -\newbibmacro*{archiveurl}{\printfield{archiveurl}} -\newbibmacro*{archivedate}{\printarchivedate} -\renewbibmacro*{url+urldate}{% - \usebibmacro{url}% - \iffieldundef{urlyear} - {} - {\setunit*{\addspace}% - \usebibmacro{urldate}}% - \setunit{\addcomma\space}% - \usebibmacro{archiveurl}% - \iffieldundef{archiveyear} - {} - {\setunit*{\addspace}% - \usebibmacro{archivedate}}} -%}}} archivedat and archivedon for online sources +\include{extended_bibliography} \addbibresource{bibliography.bib} % OTH specific commands for logos, colors @@ -85,6 +67,8 @@ headsepline, % custom commands \include{commands} +\graphicspath{{assets/dot/}} + \setcounter{tocdepth}{2} \begin{document} @@ -103,4 +87,4 @@ headsepline, \end{document} -% vim: set filetype=tex ts=2 sw=2 tw=0 et : +% vim: set filetype=tex ts=2 sw=2 tw=0 foldmethod=marker et :