Fix bibliography fuckup for now

This commit is contained in:
jaseg 2025-10-21 12:42:50 +02:00
parent d959b48b1c
commit 9dc3c32d58
2 changed files with 6 additions and 7 deletions

View file

@ -11,7 +11,7 @@
url=false,
doi=true,
eprint=false,
defernumbers=true,
refsegment=chapter,
]{biblatex}
\addbibresource{main.bib}
\DeclareSourcemap{
@ -137,15 +137,16 @@
\DeclareRefcontext{webref}{labelprefix=W}
\DeclareRefcontext{patref}{labelprefix=P}
\DeclareRefcontext{defref}{}
\DeclareFieldFormat{labelprefix}{\textsuperscript{\sffamily#1}}
\newcommand{\chapterbibliography}{
\clearpage % clearpage flushes all figures. force this here so we don't get figures floating in between references.
\newrefcontext{webref}
\printbibliography[type={online},title={Web sources},resetnumbers,heading=subbibintoc]
\printbibliography[type={online},title={Web sources},heading=subbibintoc,resetnumbers=false,segment=\therefsegment]
\newrefcontext{defref}
\printbibliography[nottype={online},nottype={patent},resetnumbers,heading=subbibintoc]
\printbibliography[nottype={online},nottype={patent},heading=subbibintoc,resetnumbers=false,segment=\therefsegment]
\newrefcontext{patref}
\printbibliography[type={patent},title={Patent References},resetnumbers,heading=subbibintoc]
\printbibliography[type={patent},title={Patent References},heading=subbibintoc,resetnumbers=false,segment=\therefsegment]
}
\newrefcontext{defref}

View file

@ -18,6 +18,7 @@
\renewcommand{\figurepath}{#1/figures}
\graphicspath{{\figurepath}}
\input{#1/chapter.tex}
\chapterbibliography
}
\title{Bootstrapping Physical Security with Inertial Hardware Security Modules}
@ -44,7 +45,4 @@
\appendix
\chapter*{Bibliography}
\chapterbibliography
\end{document}