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}