I have recently been trying to recompile ArXiV papers (in math and physics) based on the source code ArXiV provided (since I would like to use the geometry package to resize the articles for an ebook reader), but I've been having issues with articles with included figures and images. In most articles I've seen, such as this article, the source code is unusable for my TeX editor (TeXworks), since ArXiV seems to encode the information of the images in a way that's hard to use. Is there any way to get around this and recompile these articles myself, images and all?
The source files downloaded from the arXiv (via Other formats>Download source) have no file extension and are usually either a gzipped tar archive
.tar.gz or a single gzipped file.
As a first try add
.tar.gz to the extension-less file you downloaded and try to unpack it (using
tar on Unixoid systems or 7zip/PeaZip or similar software on Windows).
The article source on the arXiv that can be accessed via Other formats in the sidebar
and then Download source under the Source heading
usually leads to a file without any extension. In the example the downloaded file is just called
As the download page explains, this file may have different types depending on the submission
Delivered as a gzipped tar (
.tar.gz) file if there are multiple files, otherwise as a PDF file, or a gzipped TeX, DVI, PostScript or HTML (
.html.gz) file depending on submission format.
In any case it is extremely unlikely that the file can be opened directly. Most submissions nowadays seem to involve several files (especially when images are involved), so adding the extension
.tar.gz (in the example we would rename
0312480.tar.gz) and trying to uncompress the file (with
tar -vxzf 0312480.tar.gz on Unixoid systems or 7zip/PeaZip or similar software on Windows) usually gives the right result.
Indeed, opening the renamed file
0312480.tar.gz with PeaZip I get