aboutsummaryrefslogtreecommitdiff
path: root/reproduce
diff options
context:
space:
mode:
Diffstat (limited to 'reproduce')
-rw-r--r--reproduce/analysis/make/paper.mk31
1 files changed, 21 insertions, 10 deletions
diff --git a/reproduce/analysis/make/paper.mk b/reproduce/analysis/make/paper.mk
index e4eeb59..6a974d9 100644
--- a/reproduce/analysis/make/paper.mk
+++ b/reproduce/analysis/make/paper.mk
@@ -152,33 +152,44 @@ $(texbdir)/paper.bbl: tex/src/references.tex $(mtexdir)/dependencies-bib.tex \
# and one for the appendix), we use 'multibib'. Multibib creates
# a separate '.aux' file for each bibliography.
bibtex paper
- bibtex appendix
+ if [ x"$(noappendix)" != x1 ]; then
+ bibtex appendix
+ fi
# Hack: tidy up eprint+doi style that didn't work in .bst file.
# TODO (better): read Part 4 of
# http://mirrors.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf
# and fix the .bst style properly.
- cp paper.bbl paper-tmp.bbl \
+ cp -pv paper.bbl paper-tmp.bbl \
&& sed -e "s/\'/EOLINE/g" paper-tmp.bbl \
| tr -d '\n' \
| sed -e 's/\([0-9]\)\( \|EOLINE\)}/\1}/g' \
| sed -e 's/\([^,]\) *\( \|EOLINE\) *\\eprint/\1, \\eprint/g' \
| sed -e 's/\([^,]\) *\( \|EOLINE\) *\\doi/\1, \\doi/g' \
| sed -e 's/EOLINE/\n/g' > paper.bbl
- cp appendix.bbl appendix-tmp.bbl \
- && sed -e "s/\'/EOLINE/g" appendix-tmp.bbl \
- | tr -d '\n' \
- | sed -e 's/\([0-9]\)\( \|EOLINE\)}/\1}/g' \
- | sed -e 's/\([^,]\) *\( \|EOLINE\) *\\eprint/\1, \\eprint/g' \
- | sed -e 's/\([^,]\) *\( \|EOLINE\) *\\doi/\1, \\doi/g' \
- | sed -e 's/EOLINE/\n/g' > appendix.bbl
+ if [ x"$(noappendix)" != x1 ]; then
+ cp -pv appendix.bbl appendix-tmp.bbl \
+ && sed -e "s/\'/EOLINE/g" appendix-tmp.bbl \
+ | tr -d '\n' \
+ | sed -e 's/\([0-9]\)\( \|EOLINE\)}/\1}/g' \
+ | sed -e 's/\([^,]\) *\( \|EOLINE\) *\\eprint/\1, \\eprint/g' \
+ | sed -e 's/\([^,]\) *\( \|EOLINE\) *\\doi/\1, \\doi/g' \
+ | sed -e 's/EOLINE/\n/g' > appendix.bbl
+ fi
+ # Paper-specific hacks for reducing very-long author lists.
+ cp -pv paper.bbl paper-tmp.bbl \
+ && sed -e "s/\'/EOLINE/g" paper-tmp.bbl \
+ | tr -d '\n' \
+ | sed -e 's;, D\..Chong[^{]*Forstag; et al.\\/;' \
+ | sed -e 's;, V\..Khodiyar[^{]*Whyte; et al.\\/;' \
+ | sed -e 's/EOLINE/\n/g' > paper.bbl
# The pre-final run of LaTeX after 'paper.bbl' was created.
latex -shell-escape -halt-on-error "$$p"/paper.tex
fi
-
+# | sed -e 's;Chong;HELLO MUM;' \
# The final paper