aboutsummaryrefslogtreecommitdiff
path: root/reproduce/analysis/make
diff options
context:
space:
mode:
authorBoud Roukema <boud@cosmo.torun.pl>2020-11-26 22:20:46 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-11-27 22:40:29 +0000
commit2f422f590b0f3666e31592a51bcdc91131631ec5 (patch)
tree2420deee596b6b61d95c643cf71460d4ab11a052 /reproduce/analysis/make
parentd540cddaad7b9e1369f4520e2e6c97b7fd730956 (diff)
Fix paper.bbl flaw; reduce long author lists: save 70 words
This commit fixes the error of trying to run bibtex on appendix.tex when the --no-appendix option is selected. A hardwired hack, appropriate only for this specific paper, replaces the more-than-three-author parts of two long author lists by "et al." To test this without having to redownload the menke file, first do "rm -fv .build/tex/build/*.aux .build/tex/build/*.bbl" and then "./project make --no-appendix" a few times. This commit should reduce the word length by about 70 words.
Diffstat (limited to 'reproduce/analysis/make')
-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