[OS X TeX] Mathematica fonts in graphics
Bruno Voisin
bvoisin at mac.com
Fri Sep 3 03:59:59 EDT 2004
For those that had been following this thread: off-list Tom Kiffe has
kindly offered his help at solving the problem, and a lot of debugging
has taken place behind the scene. I am now summarizing Tom's
elucidation of the problem.
First one must remark a basic difference between the way dvips and
ps2pdf work on one hand, and pdfTeX on the other hand. dvips and ps2pdf
(the two programs involved in TeXShop's "TeX + Ghostscript" mode) seem
to be quite happy to use whichever font is embedded in an included EPS
file, in whichever custom encoding is specified for this font, whereas
pdfTeX acts differently. As Tom put it:
> Pdflatex always loads fonts referenced in the included pdf file, even
> if they are already embedded, provided the font is listed in one of
> pdflatex' mapping files. I am not sure exactly why pdflatex does this,
> but your problem arises because Math1 is embedded with ansi encoding
> and pdflatex' mapping file tells it to use the Standard Postscript
> encoding, hence 'glyph not found' error messages.
It turns out that I had installed in /Library/Fonts a copy of the file
MathFonts.dfont, taken from "/Applications/Mathematica
4.1.app/SystemFiles/Fonts/Macintosh/MathFonts.dfont". Then, Tom's
elucidation of the problem is the following (the use of Ghostscript
here refers to the conversion of the EPS files, produced by
Mathematica, to PDF format by the script epstopdf, before inclusion in
the LaTeX file to be processed by pdfLaTeX):
> I finally realize what is going on with your Mathematica fonts. I bet
> that you did not configure
> ghostscript to embed the pfa versions of the Mathematica fonts. Your
> ghostscript8.13 is using the
> TrueType fonts included in MathematicaFonts.dfont that you put in
> ~/Library/Fonts. Your Adobe
> Illustrator is also using TrueType fonts which use the ansi encoding.
>
> My ghostscript is configured to use the Postscipt pfa Mathematica
> fonts. I have attached a copy of the
> field5hig025.pdf that I get with my configuration. Checking the fonts
> in Adobe Reader show Math1
> embedded with a Custom, not ansi encoding. If I change your test.tex
> to include just field5hig025
> I get no error messages from pdflatex.
As to how to configure Ghostscript to add new fonts, I had no idea how
this could be done. Here too Tom was helpful:
> If you want to configure ghostscript to use the pfa Mathematica fonts
> you need to do three things.
>
> 1) Copy all of the Mathematica pfa files to
> /usr/local/share/ghostscript/fonts.
> 2) Add the line
> (Fontmap.Wolfram) .runlibfile
> to /usr/local/share/ghostscript/8.13/lib/Fontmap.
> 3) Move the attached Fontmap.Wolfram to
> /usr/local/share/ghostscript/8.13/lib.
The content of Fontmap.Wolfram is included below.
Thanks Tom!
Bruno Voisin
%%%%% Content of Fontmap.Wolfram %%%%%
% Old Mathematica Fonts
/Math1 (Math1.pfa) ;
/Math1-Bold (Math1-Bold.pfa) ;
/Math1Mono (Math1Mono.pfa) ;
/Math1Mono-Bold (Math1Mono-Bold.pfa) ;
/Math2 (Math2.pfa) ;
/Math2-Bold (Math2-Bold.pfa) ;
/Math2Mono (Math2Mono.pfa) ;
/Math2Mono-Bold (Math2Mono-Bold.pfa) ;
/Math3 (Math3.pfa) ;
/Math3-Bold (Math3-Bold.pfa) ;
/Math3Mono (Math3Mono.pfa) ;
/Math3Mono-Bold (Math3Mono-Bold.pfa) ;
/Math4 (Math4.pfa) ;
/Math4-Bold (Math4-Bold.pfa) ;
/Math4Mono (Math4Mono.pfa) ;
/Math4Mono-Bold (Math4Mono-Bold.pfa) ;
/Math5 (Math5.pfa) ;
/Math5-Bold (Math5-Bold.pfa) ;
/Math5Mono (Math5Mono.pfa) ;
/Math5Mono-Bold (Math5Mono-Bold.pfa) ;
%###########################################################
% Version 4.2 fonts
%###########################################################
/Mathematica1 (Mathematica1.pfa) ;
/Mathematica2 (Mathematica2.pfa) ;
/Mathematica3 (Mathematica3.pfa) ;
/Mathematica4 (Mathematica4.pfa) ;
/Mathematica5 (Mathematica5.pfa) ;
/Mathematica6 (Mathematica6.pfa) ;
/Mathematica7 (Mathematica7.pfa) ;
/Mathematica1-Bold (Mathematica1-Bold.pfa) ;
/Mathematica2-Bold (Mathematica2-Bold.pfa) ;
/Mathematica3-Bold (Mathematica3-Bold.pfa) ;
/Mathematica4-Bold (Mathematica4-Bold.pfa) ;
/Mathematica5-Bold (Mathematica5-Bold.pfa) ;
/Mathematica6-Bold (Mathematica6-Bold.pfa) ;
/Mathematica7-Bold (Mathematica7-Bold.pfa) ;
/Mathematica1Mono (Mathematica1Mono.pfa) ;
/Mathematica2Mono (Mathematica2Mono.pfa) ;
/Mathematica3Mono (Mathematica3Mono.pfa) ;
/Mathematica4Mono (Mathematica4Mono.pfa) ;
/Mathematica5Mono (Mathematica5Mono.pfa) ;
/Mathematica6Mono (Mathematica6Mono.pfa) ;
/Mathematica7Mono (Mathematica7Mono.pfa) ;
/Mathematica1Mono-Bold (Mathematica1Mono-Bold.pfa) ;
/Mathematica2Mono-Bold (Mathematica2Mono-Bold.pfa) ;
/Mathematica3Mono-Bold (Mathematica3Mono-Bold.pfa) ;
/Mathematica4Mono-Bold (Mathematica4Mono-Bold.pfa) ;
/Mathematica5Mono-Bold (Mathematica5Mono-Bold.pfa) ;
/Mathematica6Mono-Bold (Mathematica6Mono-Bold.pfa) ;
/Mathematica7Mono-Bold (Mathematica7Mono-Bold.pfa) ;
%#---------------------------------------------------------
%# CMTT fonts
%#---------------------------------------------------------
/Wttr8a (wttr8a.pfa) ;
/Wttro8a (wttro8a.pfa) ;
/Wttb8a (wttb8a.pfa) ;
/Wttbo8a (wttbo8a.pfa) ;
/Wttr8a (wttr8a.pfa) ;
/Wttro9a (wttro8a.pfa) ;
/Wttb8r (wttb8a.pfa) ;
/Wttbo8r (wttbo8a.pfa) ;
%#---------------------------------------------------------
/Mathematica1CMTT (Mathematica1CMTT.pfa) ;
/Mathematica2CMTT (Mathematica2CMTT.pfa) ;
/Mathematica3CMTT (Mathematica3CMTT.pfa) ;
/Mathematica4CMTT (Mathematica4CMTT.pfa) ;
/Mathematica5CMTT (Mathematica5CMTT.pfa) ;
/Mathematica6CMTT (Mathematica6CMTT.pfa) ;
/Mathematica7CMTT (Mathematica7CMTT.pfa) ;
/Mathematica1CMTT-Bold (Mathematica1CMTT-Bold.pfa) ;
/Mathematica2CMTT-Bold (Mathematica2CMTT-Bold.pfa) ;
/Mathematica3CMTT-Bold (Mathematica3CMTT-Bold.pfa) ;
/Mathematica4CMTT-Bold (Mathematica4CMTT-Bold.pfa) ;
/Mathematica5CMTT-Bold (Mathematica5CMTT-Bold.pfa) ;
/Mathematica6CMTT-Bold (Mathematica6CMTT-Bold.pfa) ;
/Mathematica7CMTT-Bold (Mathematica7CMTT-Bold.pfa) ;
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list