[OS X TeX] Mathematica fonts in graphics

Bruno Voisin bvoisin at mac.com
Wed Sep 1 09:26:24 CEST 2004


Le 31 août 04, à 16:59, Siep Kroonenberg a écrit :

> On Tue, Aug 31, 2004 at 04:29:19PM +0200, Bruno Voisin wrote:
>>
>> - The original problem was the following: create from Mathematica an
>> EPS file including characters from the Mathematica Math1 font; apply
>> epstopdf to this file, so as to convert it to PDF; include this PDF
>> file in a LaTeX document compiled with pdfLaTeX; then most characters
>> from Math1 (except the alphabetical ones) are not found, and are
>> replaced by empty boxes in the PDF output. The same does not appear
>> when compilation uses the LaTeX + dvips + pstopdf route.
>
> Try making a custom mapfile just for pdftex in your working
> directory without entries for the mathematica fonts. That might
> persuade pdftex to leave these fonts alone.

First thanks to all of you for your responses, either on- or off-list.

It turns out Siep's remark above solves the problem: run, in 
Terminal.app,

	sudo updmap --disable wolfram.map

then pdfLaTeX the .tex file including the figures that use the 
Mathematica fonts. Everything, then, works as expected and the font 
Math1 looks fine in the output.

The problem is apparently that I had installed the Mathematica fonts, 
from my Mathematica 4.1.5.0, in all the appropriate subfolders of 
texmf.local, and that I had accordingly run

	sudo updmap --enable Map wolfram.map

afterwards (wolfram.map -- the .map file, not the fonts -- is included 
in Gerben's teTeX, at 
/usr/local/teTeX/share/texmf.tetex/dvips/misc/wolfram.map). This was 
mostly for testing purposes, as I don't actually use Mathematica fonts 
directly in my TeX documents.

Now, this seems to have an unfortunate side effect when figures (in 
either .eps or .pdf format), containing subsetted Mathematica fonts, 
are included in a TeX document not otherwise using these fonts: it 
turns out (this is my interpretation, I may be wrong) that pdfTeX 
insists on replacing the subsetted (and possibly re-encoded) versions 
of the fonts included in each .pdf graphics by the version, installed 
in the teTeX tree, specified by wolfram.map, according to

	Math1 Math1 <Math1.pfa

dvips, on the other hand, is clever enough to leave the .eps graphics 
alone, and to only perform re-encoding and downloading for the fonts 
specified in the actual TeX input, not for those in the included .eps 
files.

Thanks for pointing this out, Siep, I would never have guessed 
otherwise.

Bruno Voisin
--------------------- 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 macostex-archives mailing list