[Tex/LaTex] Producing arXiv-submittable documents with figures using plain TeX

arxivgraphicsplain-tex

I am proficient with TeX but have never used LaTeX and would prefer not to learn it – though perhaps that preference is the sole source of my difficulties.

I am trying to figure out how to produce TeX source that will (a) allow me to include figures in my papers and (b) be acceptable to the arXiv. I can do (a) or (b), but not both at once.

To include figures in my papers, I use the \includegraphics command from LaTeX. To make this possible, I input the file miniltx.tex, a subset of LaTeX written by David Carlisle. I then input the file graphicx.tex (by David Carlisle and Daniel Luecking), which slightly extends miniltx.tex. Now \includegraphics works. Sort of.

Namely:

  1. If I produce my figures as PDFs, and hand the PDF files to the \includegraphics command, and then run everything through pdftex, I get a PDF file which looks exactly as it should look. For most purposes, this is all I need. However, if I want to submit to the arXiv, they insist on receiving the TeX source. Here's where the trouble starts…

  2. If I produce my figures as PDFs, hand the PDF files to the \includegraphics command, and then run everything through TeX, I get the error "Cannot determine size of graphic in schematic.pdf (no BoundingBox)."

  3. If I produce my figures in any other format (BMP, JPG, etc), hand them to the \includegraphics command, and then run everything through TeX, I get the error message "Unknown graphics extension".

  4. If I produce my figures as anything other than BMPs, give up on miniltx and just use the TeX \special command (I am using MikTeX), TeX appears to run properly, but my previewer chokes on the DVI file, complaining of an "Unknown graphics inclusion type".

  5. If I produce my figures as BMPs, give up on miniltx and just use the TeX \special command, TeX appears to run properly, and the previewer doesn't complain, but the figures are badly distorted and entirely the wrong size.

  6. Since I have no TeX source that can produce a readable DVI file, I want to simply apply pdftex and submit the resulting PDF to the arxiv. The arXiv rejects the paper because it was produced from TeX, which means that I am required to submit the TeX source.

  7. I try to bypass this problem by printing the PDF and scanning it, to produce a new pdf that bears no trace of having come from TeX. The arXiv rejects scanned PDFs.

  8. I try to bypass this problem by converting from PDF to Postscript and then back to PDF again, erasing the telltale traces of TeX along the way. The arXiv insists that this is a "scanned PDF" and rejects it.

So the only alternatives I can see are:

A. Don't submit papers with figures to the arxiv, or

B. Learn LaTeX.

Is there an alternative (C)?

Best Answer

Reading http://arxiv.org/help/submit, I see that that it says

Figures for a submission can be in a number of common formats. These include:

  • PostScript (PS/EPS, most common for line drawings, plots, etc.)
  • JPEG (ideal for photographic images)
  • GIF or PNG (best for non-photographic images, bitmaps)
  • PDF figures (only with PDFLaTeX)

and

For plain TeX submissions, use the plain tex interface to the graphics package (graphicx.tex) or a macro package like epsf or epsfig

strongly suggesting that PDF graphics can only be used with pdfLaTeX.

The implication is that for plain TeX submissions you have to use the traditional dvips route, and thus EPS graphics. That would explain the messages you get: TeX is running in DVI-output mode, so the graphics package is trying (and failing) to read the bounding box data for your images.

You don't say what the source of your images is, so you may have to convert from PDF to EPS, or may be able to directly generate EPS files.

Related Question