Better references, support for images and subfigures

This commit is contained in:
Valentin Brandl 2021-11-16 14:13:33 +01:00
parent 715e6543db
commit 540d49d160
2 changed files with 33 additions and 25 deletions

24
extended_bibliography.tex Normal file
View File

@ -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

View File

@ -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 :