From 39c0b7b06714c8e5b0b8a684ef57bd90ed15b0cd Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 20 Oct 2025 16:02:34 +0200 Subject: [PATCH] Fix citation keys for now --- Makefile | 16 +++++++++------- common-defs.tex | 6 ------ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 5061385..598898e 100644 --- a/Makefile +++ b/Makefile @@ -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 "" -.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 diff --git a/common-defs.tex b/common-defs.tex index ef90eb2..c91ca38 100644 --- a/common-defs.tex +++ b/common-defs.tex @@ -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] }