# How to upload an article to arXiv.org that uses TikZ 3.0?

Since arXiv is still using outdated libraries, it doesn't have an up to date TikZ version, which is very inconvenient for me since I'm using TikZ 3.0. Consequently, I get lots of error messages when I submit my article like missing `tikzlibraryquotes.code.tex` or `tikz-cd` isn't working properly or doesn't accept certain arguments.

What do I do?

• externalise your images – percusse Jan 14 '16 at 13:01
• @percusse, if you use `tikz-externalise`, your article will still try to use the same packages, so e.g. the error with `tikzlibraryquotes.code.tex` will not go away – Turion Jan 14 '16 at 13:02
• I meant only externalize not TikZ library – percusse Jan 14 '16 at 13:43
• @percusse, then I don't understand what your solution is. Can you post an answer? – Turion Jan 14 '16 at 18:20
• arXiv will be rebuilding their TeX in the next few months. You might try again once they roll out the new build. – shmuel Nov 1 '16 at 18:17

Until arXiv have updated their TexLive distribution, and you don't want to upload your graphics as separate, precompiled files, you can only upload all of TikZ and PGF together with your article. Here is how (assuming Linux):

Create an empty directory `pgftikz` and copy all files that belong to TikZ and PGF in there, without the directory structure ("flatly"):

``````find /usr/share/texmf-site/tex/generic/pgf/ -type f -exec cp {} pgftikz/ \;
``````

The path of your TikZ and PGF package might differ.

Put all these files in a `.tar.gz` archive (without the `pgftikz` directory) and upload that to your submission.

• @percusse, it's a nasty, nasty workaround, and I asked the arXiv admin whether it really has to be done, but he stopped responding at some point. – Turion Jan 14 '16 at 18:20
• Just wanted to say that arXiv people have finally responded, they're busy people :) – Turion Jan 14 '16 at 22:08
• And what did they say in their response? I've done a similar thing to use breqn in a submission which needs to be updated soon. – Nathan Musoke Jan 23 '16 at 9:32
• @msk, I had already uploaded the article with the above strategy, so there was nothing else to be said – Turion Jan 23 '16 at 11:01
• On OS X, using MacTeX, you'll need to replace the path above with `/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/`, changing the year as appropriate. – Scott Morrison Jan 2 '17 at 22:23

arXiv just updated to TeXLive 2016 last week, see https://arxiv.org/new#feb10_2017