Can Pages export a figure in encapsulated postscript (.eps) to use in LaTeX?

I used Pages to compose a diagram for use as a figure in a journal paper. The journal requires papers to be composed in LaTeX.


It works fine to zoom in on the figure in Pages and use the Screenshot app to grab a screen-sized .png image, and import that into the LaTeX document (using \includegraphics). But that limits the resolution of the final figure to the pixel resolution of the screen grab.


I would prefer to use line-art/vector-art defined with 2d coordinates and geometry, as Pages (or Keynote, ...) use. Is there any way to achieve that?

Posted on Oct 25, 2022 05:18 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 25, 2022 05:39 PM

Oops, sorry, never mind. It looks like I can get the effect I want by exporting my Pages document directly to PDF, which LaTeX is happy to use as a graphics source:


\begin{figure*}
    \includegraphics[width=\textwidth]{images/diagram_from_apple_pages.pdf}
    \caption{Diagram.}
    \label{fig:diagram}
\end{figure*}


I mistakenly assumed this required a file in .eps format, but apparently not.

Similar questions

2 replies
Question marked as Top-ranking reply

Oct 25, 2022 05:39 PM in response to cwr

Oops, sorry, never mind. It looks like I can get the effect I want by exporting my Pages document directly to PDF, which LaTeX is happy to use as a graphics source:


\begin{figure*}
    \includegraphics[width=\textwidth]{images/diagram_from_apple_pages.pdf}
    \caption{Diagram.}
    \label{fig:diagram}
\end{figure*}


I mistakenly assumed this required a file in .eps format, but apparently not.

Oct 25, 2022 07:01 PM in response to cwr

Neither Pages, nor Apple's Preview can export .eps or .epsf content. That leaves performing original vector artwork at 300 dpi in Affinity Designer, or the free GIMP, and then exporting it as EPSF-3.0. I use Affinity Designer, while not free, nor subscription, is far cheaper than Adobe alternatives and they have a free trial on their site, and the application is in the Mac App Store.


If you have that high resolution vector artwork (as the 300 dpi example below) you can embed it into a PDF using the following Terminal command — once you have MacTeX 2022 installed:


pdflatex -shell-escape testeps.tex


with this result:



using the source input:



And as you have discovered, exporting to PDF and using that format in LaTeX is much simpler.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can Pages export a figure in encapsulated postscript (.eps) to use in LaTeX?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.