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 :