Skip to content

Instantly share code, notes, and snippets.

@bstellato
Created August 31, 2016 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstellato/6593bf508b232fa857d8b9835314c8d0 to your computer and use it in GitHub Desktop.
Save bstellato/6593bf508b232fa857d8b9835314c8d0 to your computer and use it in GitHub Desktop.
#!/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/2015
# 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 sections/ arxiv_package/sections/
cp -r img/ arxiv_package/img/
# 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/koma-script/*.* arxiv_package/
cp $TEXLIVE/texmf-dist/tex/latex/hyperref/*.* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment