diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2025-07-26 23:16:26 +0200 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2025-07-26 23:16:26 +0200 |
commit | 406f4ac24823387e29667ff4fa98746f28ea386c (patch) | |
tree | 6b7960c07651b7227e8502f543ea826180dafca3 /reproduce/analysis | |
parent | e8ed6d942bede306fd455d02743d5d991fe2b01a (diff) |
Distribution tarball: edited for A&A's BibTeX formatjournal-a-and-a
Until now, the rule to build the contents of 'make dist' assumed the
default BibLaTeX peculiarities of the main Maneage branch. However, A&A
doesn't use that format and it was problematic for people submitting to
that journal.
With this commit, the necessary corrections have been made to the rule.
Diffstat (limited to 'reproduce/analysis')
-rw-r--r-- | reproduce/analysis/make/initialize.mk | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/reproduce/analysis/make/initialize.mk b/reproduce/analysis/make/initialize.mk index 1f2158a..442adfc 100644 --- a/reproduce/analysis/make/initialize.mk +++ b/reproduce/analysis/make/initialize.mk @@ -280,9 +280,6 @@ distclean: clean $$sys_rm -f .local .build - - - # Packaging rules # --------------- # @@ -305,7 +302,8 @@ $(project-package-contents): paper.pdf | $(texdir) printf "\tpdflatex -shell-escape -halt-on-error paper\n" >> $$m echo "paper.bbl: tex/src/references.tex" >> $$m printf "\tpdflatex -shell-escape -halt-on-error paper\n" >> $$m - printf "\tbiber paper\n" >> $$m + printf "\tbibtex paper\n" >> $$m + printf "\tpdflatex -shell-escape -halt-on-error paper\n" >> $$m echo ".PHONY: clean" >> $$m echo "clean:" >> $$m printf "\trm -f *.aux *.auxlock *.bbl *.bcf\n" >> $$m @@ -344,8 +342,8 @@ $(project-package-contents): paper.pdf | $(texdir) # temporary archive directory that we are now copying to). We will be # using Bash's extended globbing ('extglob') for excluding this # directory. - shopt -s extglob - cp -r tex/build/!($(project-package-name)) $$dir/tex/build + cp -r tex/build/build tex/build/macros tex/build/figures \ + $$dir/tex/build # Clean up the $(texdir)/build* directories in the archive (when # building in a group structure, there will be 'build-user1', @@ -370,10 +368,20 @@ $(project-package-contents): paper.pdf | $(texdir) # same BibLaTeX version to interpret the '.bbl' file. TIP: you can # use the same strategy for other LaTeX packages that may cause # problems on the arXiv server. - cp tex/build/build/paper.bbl $$dir/ - tltopdir=.local/texlive/maneage/texmf-dist/tex/latex - find $$tltopdir/biblatex/ -maxdepth 1 -type f -print0 \ - | xargs -0 cp -t $$dir +# +# NOT NECESSARY FOR BIBTEX +# cp tex/build/build/paper.bbl $$dir/ + +# For BibTex: merge the citations and bring them into the top source +# directory as well as the A&A style files. + cat tex/src/references.tex \ + tex/build/macros/dependencies-bib.tex > $$dir/references.bib + cp tex/src/aa.bst tex/src/aa.cls $$dir/ + +# Commented because arXiv is now using the latest TeXlive. +# tltopdir=.local/texlive/maneage/texmf-dist/tex/latex +# find $$tltopdir/biblatex/ -maxdepth 1 -type f -print0 \ +# | xargs -0 cp -t $$dir # Just in case the package users want to rebuild some of the figures # (manually un-comment the 'makepdf' command we commented above), @@ -382,6 +390,13 @@ $(project-package-contents): paper.pdf | $(texdir) sed -e's|{tikz/}|{tex/tikz/}|' $$pgfsettings > $$pgfsettings.new mv $$pgfsettings.new $$pgfsettings +# Remove all FITS and postscript files from the directory to be +# distributed (they consume a lot of space and are binary!). + cd $(texdir) + find $(project-package-name) -name \*.ps -delete + find $(project-package-name) -name \*.fits -delete + cd $(curdir) + # PROJECT SPECIFIC # ---------------- # Put any project-specific distribution steps here. |