Fix citation keys for now

This commit is contained in:
jaseg 2025-10-20 16:02:34 +02:00
parent 8717fc9107
commit 39c0b7b067
2 changed files with 9 additions and 13 deletions

View file

@ -10,23 +10,25 @@ CHAPTERS := $(shell find -maxdepth 1 -type d -name 'chapter-*')
VERSION_STRING := $(shell git describe --always --tags --long)
all: clean thesis.pdf
all: thesis.pdf
# We need three runs for biblatex's defernumbers
%.pdf: %.tex common-packages.tex common-defs.tex main.bib version.tex
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
echo
echo "Undefined biblatex references:"
grep -A2 'Package biblatex Warning: The following entry could not be found' thesis.log | sed -n '3~4{s/(biblatex) *//;p}' || echo "<None>"
.PHONY: preview
preview:
biber --input-directory=.. chapter || true
pdflatex -shell-escape -jobname thesis '\def\thesispreviewmode{}\input{thesis.tex}'
#.PHONY: preview
#preview:
# pdflatex -shell-escape -jobname thesis '\def\thesispreviewmode{}\input{thesis.tex}'
# biber thesis
# pdflatex -shell-escape -jobname thesis '\def\thesispreviewmode{}\input{thesis.tex}'
# pdflatex -shell-escape -jobname thesis '\def\thesispreviewmode{}\input{thesis.tex}'
# pdflatex -shell-escape -jobname thesis '\def\thesispreviewmode{}\input{thesis.tex}'
version.tex: thesis.tex $(addsuffix /chapter.tex,${CHAPTERS})
echo "${VERSION_STRING}" > $@
@ -41,7 +43,7 @@ update-figures:
.PHONY: clean
clean:
rm -f **.aux **.bbl **.bcf **.log **.blg
rm -f **.aux **.bbl **.bcf **.log **.blg **.lof **.lot
rm -f **.mtc **.mtc* **.maf **.toc
rm -f **.out **.run.xml **/texput.log

View file

@ -11,9 +11,6 @@
url=false,
doi=true,
eprint=false,
refsection=chapter,
% Make the split online / other resource bibliographies behave
defernumbers=true,
]{biblatex}
\addbibresource{main.bib}
\DeclareSourcemap{
@ -138,11 +135,8 @@
\newcommand{\chapterbibliography}{
\clearpage % clearpage flushes all figures. force this here so we don't get figures floating in between references.
\newrefcontext[labelprefix={W}]
\printbibliography[type={online},title={Web sources},resetnumbers,heading=subbibintoc]
\newrefcontext
\printbibliography[nottype={online},nottype={patent},resetnumbers,heading=subbibintoc]
\newrefcontext[labelprefix={P}]
\printbibliography[type={patent},title={Patent References},resetnumbers,heading=subbibintoc]
}