From 2f422f590b0f3666e31592a51bcdc91131631ec5 Mon Sep 17 00:00:00 2001 From: Boud Roukema Date: Thu, 26 Nov 2020 22:20:46 +0100 Subject: 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. --- reproduce/analysis/make/paper.mk | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'reproduce') 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 -- cgit v1.2.1