[Tex/LaTex] Create eps files from LaTeX figures

epsfloatspdftex

I recently submitted a paper in a journal that was accepted but the editor is requesting all the Figures to be exported in an .eps format. My figures are using different eps files every time but most of my figures have subfigures that have different scales, minipages and so on. For instance Figure 1 has 4 subfigures (each of them is already an eps image) but the editor requires an eps image that has those subfigures placed the way I want them to be placed in the article. I know how to export a LaTeX file as a pdf but I do not know if it is possible to export a LaTeX file as eps file. Also I want to keep the quality of the images intact so I would like to save them with the highest resolution possible. Does anyone know how to do that?

Best Answer

If you don't mind doing it manually, you can open the paper PDF using inkscape (a vector graphics editor), where you will be prompted to select one of the pages to edit.

From there, you can select the vector objects corresponding to the figure, go to File > Document Properties > Resize page to content .... You should probably delete the other objects, in case the journal eps rendering doesn't respect the new bounding box. Then File > Save As and select EPS in the file type.

MWE

Code

\documentclass{article}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
  \begin{figure}
    \begin{subfigure}{0.5\linewidth}
      \includegraphics[width=\linewidth]{latex.eps}
      \caption{these fonts won't match}
    \end{subfigure}%
    \begin{subfigure}{0.5\linewidth}
      \includegraphics[width=\linewidth]{latex.eps}
      \caption{but that's the journal's problem}
    \end{subfigure}
  \caption{I'm sorry you have to do this}
  \end{figure}
\end{document}

Result

result


Aside: sounds like this journal needs to update their toolchain. This feels very wrong...