Skip to content

Instantly share code, notes, and snippets.

@lqhl
Created August 12, 2016 03:30
Show Gist options
  • Save lqhl/23e99ba005fd0236ac07a1ed946713d5 to your computer and use it in GitHub Desktop.
Save lqhl/23e99ba005fd0236ac07a1ed946713d5 to your computer and use it in GitHub Desktop.
Make arXiv compatible submission
#!/bin/bash
# arXiv uses an outdated TexLive distribution. This script is used to package
# all neccesary files so my paper can be compiled on arXiv...
# path to the texlive distribution
TEXLIVE=/usr/local/texlive/2016
# prepare the diretory for my submission
rm arXiv-package.zip
rm -rf arXiv-package
mkdir arXiv-package
# copy all my sources and figures; note that you need to include *.sty, *.cls,
# and *.bbl files
cp *.sty *.tex *.bbl *.cls arXiv-package/
cp -r figs/ arXiv-package/figs/
cp -r tables/ arXiv-package/tables/
# this is the tricky step. we need to include biblatex, algorithm2e and
# pgfplots since these packages are outdated on arXiv.
cp $TEXLIVE/texmf-dist/tex/latex/biblatex/*.* arXiv-package/
cp $TEXLIVE/texmf-dist/tex/latex/biblatex/bbx/*.* arXiv-package/
cp $TEXLIVE/texmf-dist/tex/latex/biblatex/cbx/*.* arXiv-package/
cp $TEXLIVE/texmf-dist/tex/latex/biblatex/lbx/*.* arXiv-package/
cp $TEXLIVE/texmf-dist/tex/latex/biblatex-ieee/*.* arXiv-package/
cp $TEXLIVE/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty arXiv-package/
find $TEXLIVE/texmf-dist/tex/generic/pgf/ -type f -exec cp {} arXiv-package/ \;
find $TEXLIVE/texmf-dist/tex/generic/pgfplots/ -type f -exec cp {} arXiv-package/ \;
# zip it
zip -r arXiv-package.zip arXiv-package
@egri-nagy
Copy link

very helpful! Thanks!
shame on arXiv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment