diff options
Diffstat (limited to 'reproduce')
-rw-r--r-- | reproduce/analysis/make/paper.mk | 17 | ||||
-rw-r--r-- | reproduce/software/config/texlive-packages.conf | 3 |
2 files changed, 17 insertions, 3 deletions
diff --git a/reproduce/analysis/make/paper.mk b/reproduce/analysis/make/paper.mk index f363b6f..29a1ea0 100644 --- a/reproduce/analysis/make/paper.mk +++ b/reproduce/analysis/make/paper.mk @@ -48,10 +48,18 @@ $(mtexdir)/project.tex: $(mtexdir)/verify.tex # Put a LaTeX input command for all the necessary macro files. # 'hardware-parameters.tex' is created in 'configure.sh'. - rm -f $(mtexdir)/project.tex + projecttex=$(mtexdir)/project.tex + rm -f $$projecttex for t in $(subst paper,,$(makesrc)) hardware-parameters; do - echo "\input{tex/build/macros/$$t.tex}" >> $(mtexdir)/project.tex + echo "\input{tex/build/macros/$$t.tex}" >> $$projecttex done + + # Add the necessary macro to include appendix or not. + if [ x"$(noappendix)" = x1 ]; then + echo "\newcommand{\noappendix}{}" >> $$projecttex + fi + + # The paper shouldn't be built. else echo echo "-----" @@ -129,7 +137,12 @@ $(texbdir)/paper.bbl: tex/src/references.tex $(mtexdir)/dependencies-bib.tex \ # option for better security. See # https://savannah.nongnu.org/task/?15694 for details. latex -shell-escape -halt-on-error "$$p"/paper.tex + + # Since we have multiple bibliographies (one for the main body, + # and one for the appendix), we use 'multibib'. Multibib creates + # a separate '.aux' file for each bibliography. bibtex paper + bibtex appendix # Hack: tidy up eprint+doi style that didn't work in .bst file. # TODO (better): read Part 4 of diff --git a/reproduce/software/config/texlive-packages.conf b/reproduce/software/config/texlive-packages.conf index d88a0bf..fd66da9 100644 --- a/reproduce/software/config/texlive-packages.conf +++ b/reproduce/software/config/texlive-packages.conf @@ -18,4 +18,5 @@ # want their versions. texlive-typewriter-pkgs = courier inconsolata xkeyval upquote texlive-packages = times IEEEtran cite xcolor pgfplots ps2eps \ - listings ulem etoolbox $(texlive-typewriter-pkgs) + listings ulem etoolbox multibib \ + $(texlive-typewriter-pkgs) |