How do I edit PDF files produced by LaTeX in Illustrator? Fonts are not found
Moving fonts
As Patrick Gundlach and pluton suggest, you can just make the fonts available to Illustrator. They're in your system's texmf, which you can find by running
kpsewhich -var-value TEXMFDIST
For TeX Live 2011, $TEXMFDIST
is by default at
- Windows:
C:\texlive\2011\texmf-dist
- OS X:
/usr/local/texlive/2011/texmf-dist
All the CM*
fonts are at $TEXMFDIST/fonts/type1/public/amsfonts/cm
, and the MS*
fonts are at $TEXMFDIST/fonts/type1/public/amsfonts/symbols
. You can install these as system fonts if you want to. But if you don't want to clutter your system fonts, you can copy all the pfb
and pfm
files to Adobe's local font folder:
- Windows:
Program Files\Common Files\Adobe\Fonts
- OS X:
Library/Application Support/Adobe/Fonts
If you don't actually have TeX, there's also an incomplete collection of TeX fonts here.
XeLaTeX
For easy compatability with Illustrator, you can use XeLaTeX and fontspec to write your LaTeX document in a font available to your system. For math, download a Unicode math font and use it with unicode-math.
Minimal example:
\documentclass{article}
\usepackage[no-math]{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Times LT Std}
\usepackage{unicode-math}
\setmathfont{XITS-Math.otf}
\begin{document}
This is some text\par
This is some text with numbers 01234567\par
\[\left(\frac{\omega^2\rho}{\hat{\jmath}}\right)=\int \sqrt{\mathcal{M}(f)}\;dx\]
\end{document}
Bonus: Your PDF will be tiny.
Downside: Math spacing issues introduced with unicode-math. Limited microtype support.
Other solutions
If you want to guarantee that Illustrator won't mess up your LaTeX document's formatting...
This page suggests using Ghostscript to outline all text on the page:
gs -sDEVICE=pswrite -dNOCACHE -sOutputFile=nofont-Myfile.ps -q -dbatch -dNOPAUSE Myfile.pdf -c quit
You can also do that in Illustrator, as shown in this video. But this means you can't edit the text – just reposition elements. It will also probably inflate your PDF's size quite a bit.
If you just want to draw on top of the LaTeX document, you can make a new PDF in Illustrator and Place the LaTeX PDF in the background, as in the first part of that video. Make your doodles, remove the background, save the PDF, and overlay it on one of your LaTeX document's pages using \includegraphics
.
Moving fonts, Windows 10, CS6
In Windows 10, using CS6, I could only find the fonts in Adobe Illustrator when putting the tex fonts into the folder below
C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Support Files\Required\Fonts
In Windows 10, it did not work to paste the tex files into
C:\Program Files\Common Files\Adobe\FontsRecommended
C:\Program Files\Common Files\Adobe\FontsRequired
in the Common Files folder as suggested above.