diff --git a/doc.mk.nw b/doc.mk.nw index e8d6bc2..0e2139a 100644 --- a/doc.mk.nw +++ b/doc.mk.nw @@ -247,3 +247,6 @@ TEX2TEXTFLAGS?= ${TEX2TEXT} ${TEX2TEXTFLAGS} $< > $@ @ + +%%%%% +\printbibliography diff --git a/exam.mk.nw b/exam.mk.nw index 4b2d182..3b503c3 100644 --- a/exam.mk.nw +++ b/exam.mk.nw @@ -166,3 +166,6 @@ endef $(foreach id,${EXAM_IDS},$(eval $(call questions_target,${id}))) @ + +%%%% +\printbibliography diff --git a/haskell.mk.nw b/haskell.mk.nw index 2063b7b..301b996 100644 --- a/haskell.mk.nw +++ b/haskell.mk.nw @@ -22,3 +22,7 @@ programs. .hs.o .lhs.o: ghc ${HSFLAGS} -c $< @ + + +%%%% +\printbibliography diff --git a/makefiles.tex b/makefiles.tex index ad1b32b..15f8474 100644 --- a/makefiles.tex +++ b/makefiles.tex @@ -78,5 +78,6 @@ \chapter{results.mk} %\input{miun.port.tex} -\printbibliography[heading=bibintoc]{} +%\printbibheading[heading=bibintoc] +%\bibbysection[heading=none] \end{document} diff --git a/noweb.mk.nw b/noweb.mk.nw index e18cea6..3fff35a 100644 --- a/noweb.mk.nw +++ b/noweb.mk.nw @@ -208,3 +208,7 @@ NOWEB_SUFFIXES+= .sh NOTANGLEFLAGS.sh?= ${NOTANGLEFLAGS} NOTANGLE.sh?= ${NOTANGLE} ${NOTANGLEFLAGS.sh} -R$@ $< > $@ @ + + +%%%% +\printbibliography diff --git a/pkg.mk.nw b/pkg.mk.nw index cccb47b..5281083 100644 --- a/pkg.mk.nw +++ b/pkg.mk.nw @@ -215,3 +215,7 @@ for f in ${PKG_INSTALL_FILES-$(1)}; do \ [ -d "$$$$f" ] || ${INSTALL} -t ${PKG_PREFIX-$(1)}${PKG_INSTALL_DIR-$(1)}/ "$$$$f"; \ done @ + + +%%%% +\printbibliography diff --git a/portability.mk.nw b/portability.mk.nw index 3df847c..227a7f1 100644 --- a/portability.mk.nw +++ b/portability.mk.nw @@ -299,3 +299,7 @@ UNZIP?= unzip -DD endif EXTRACT.zip?= ${UNZIP} $$< $$@ @ + + +%%%% +\printbibliography diff --git a/preamble.tex b/preamble.tex index fdccc72..61f3a9d 100644 --- a/preamble.tex +++ b/preamble.tex @@ -7,6 +7,7 @@ \usepackage{csquotes} \usepackage{authblk} \usepackage[defblank]{paralist} +\usepackage{xparse} \usepackage{amsmath} \usepackage{mathtools} @@ -33,6 +34,17 @@ \addbibresource{transform.bib} \addbibresource{tex.bib} +\let\biblatexbibliography\printbibliography +\DeclareDocumentCommand{\printbibliography}{o}{% + \IfValueTF{#1}{% + \biblatexbibliography[title={References},heading=subbibintoc,#1] + }{% + \biblatexbibliography[title={References},heading=subbibintoc] + } + \newrefsection +} +\AtBeginDocument{\newrefsection} + \usepackage[single]{acro} \DeclareAcronym{ILO}{% short = {ILO}, diff --git a/pub.mk.nw b/pub.mk.nw index d778e19..b078fee 100644 --- a/pub.mk.nw +++ b/pub.mk.nw @@ -467,3 +467,7 @@ cd ${ROOT} \ && svn copy trunk tags/${PUB_TAG_NAME} \ && svn commit ${PUB_COMMIT_OPTS}; @ + + +%%%% +\printbibliography diff --git a/results.mk.nw b/results.mk.nw index 8c137b4..f031630 100644 --- a/results.mk.nw +++ b/results.mk.nw @@ -339,3 +339,7 @@ else \ ${MV} ${out}.new ${out}; \ fi @ + + +%%%% +\printbibliography diff --git a/subdir.mk.nw b/subdir.mk.nw index e8b0f65..ebdfe93 100644 --- a/subdir.mk.nw +++ b/subdir.mk.nw @@ -48,3 +48,7 @@ ${.DEFAULT_GOAL}: ${SUBDIR} endif @ We note that this will cause the default goal of each subdirectory to be built, not the same goal which is the default goal in the root. + + +%%%% +\printbibliography diff --git a/tex.mk.nw b/tex.mk.nw index 112adaa..15e049e 100644 --- a/tex.mk.nw +++ b/tex.mk.nw @@ -687,3 +687,7 @@ clean-rfc: ${RM} rfc.bib @ + + +%%% +\printbibliography diff --git a/transform.mk.nw b/transform.mk.nw index 763dfa0..e03d11d 100644 --- a/transform.mk.nw +++ b/transform.mk.nw @@ -254,3 +254,7 @@ The set up we must do for this to work is to set a Git attribute. *.asc filter=git-crypt @ This will yield similar behaviour as with the makefile approach, except that many things are automated further. + + +%%%% +\printbibliography