taskReproducible paper template - Tasks: task #15392, Cleaner distribution tarball for...


You are not allowed to post comments on this tracker with your current authentication level.

task #15392: Cleaner distribution tarball for arXiv (LaTeX package source)

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Mon 16 Sep 2019 12:22:23 AM UTC  
Should Start On:  Sun 15 Sep 2019 11:00:00 PM UTC Should be Finished on:  Sun 15 Sep 2019 11:00:00 PM UTC
Category:  Analysis Priority:  5 - Normal
Status:  Postponed Privacy:  Public
Percent Complete:  0% Assigned to:  None
Open/Closed:  Open Effort:  0.00

Tue 26 May 2020 01:56:36 AM UTC, comment #1: 

Part of the solution to this is

latexpand --expand-bbl paper.bbl $$p/paper.tex | \
  sed -e 's/\\bibliographystyle[^ }]*}//' > paper-full.tex

and adding latexpand to the list of texlive packages.
This way, ArXiv or the journal do not have to know anything
about biber/bibtex/latex or .bib files. This does require the
authors to choose a style that is reasonably close to the
journal's requested style, which is advisable in any case.

I think I posted a proposed branch to maneage with this plus
a few more steps, but I've lost track of where :P.
In any case, I can propose a new branch later, which
will probably be better anyway, since it will be better

Boud Roukema <boud>
Project Member
Mon 16 Sep 2019 12:22:23 AM UTC, original submission:  

With the following command, a distribution-ready tarball is created that is ready to be uploaded to servers like arXiv for the publication of the paper.

./project make dist

But differing LaTeX package versions (between the project and server's running LaTeX) can cause problems while building the project's PDF on such servers.

One special case that immediately caused problems in building the template output on arXiv was BibLaTeX. arXiv won't run Biber (to create the necessary `.bbl' file), so we need to put the `.bbl' file in the distribution tarball. But the creator and reader of the `.bbl' file have to have the same version, so arXiv would crash on reading the `.bbl' file.

To solve such problems currently, when building the distribution tarball, the whole BibLaTeX source is copied into the top-level directory tarball. This fixes the problem and arXiv builds the PDF successfully.

But this isn't an elegant way and puts many extra files in the top-level distribution tarball. I don't know if LaTeX has a special kind of startup file, or environment variable, or a special macro in the preamble, that can allow us to put the LaTeX package source files in a sub-directory. It would be good if we can find such a solution and put a copy of all the high-level (non-binary) LaTeX packages sources that are used in the project (and cited in the paper) in the distribution tarball.

Mohammad Akhlaghi <makhlaghi>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by boud (Posted a comment)
  • -email is unavailable- added by makhlaghi (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5