[OS X TeX] eps/fonts problem with pdflatex

Peter Dyballa Peter_Dyballa at Web.DE
Sun Oct 28 05:21:09 EDT 2007


Am 28.10.2007 um 00:54 schrieb André Bellaïche:

> /usr/texbin/dvips: Font Myriad-Bold used in file ./NEW/ 
> HubbardFig02.eps is not in the mapping file.
> /usr/texbin/dvips: Font Myriad-Bold used in file ./NEW/ 
> HubbardFig02.eps is not in the mapping file.
> [...]

Where are the Myriad font files? What type are they (probably True-  
or OpenType)? OpenType will be a problem. Can you imagine to change  
the EPS files to use different fonts, those that are already  
installed in TeX?

Font Book (Livre des polices) can give you the font names (« Nom  
PostScript ») – that's the entity dvips actually sees. Then you could  
create a new directory ('sudo mkdir /usr/local/gwTeX/texmf.pkgs/fonts/ 
map/dvips/local' or 'sudo mkdir /usr/local/texlive/texmf-local/fonts/ 
map/dvips/local') and create a new MAP file fragment Myriad.map in  
that directory with nano or pico editor and a contents like:

	«font name» «font name»		<«font file name with extension»

for each font (the text between ``«´´ and ``»´´ has to be substituted  
with real names, the one ``<´´ is part of the syntax). I am  
neglecting any font re-encoding here! I hope any re-encoding is  
recorded in the EPS file. Then you would need to "install" the fonts  
in TeX:

	sudo mdkir -p /usr/local/gwTeX/texmf.pkgs/fonts/truetype/Myriad (or  
'sudo mkdir -p /usr/local/texlive/texmf-local/fonts/truetype/Myriad')
	cd /usr/local/gwTeX/texmf.pkgs/fonts/truetype/Myriad (or 'cd /usr/ 
local/texlive/texmf-local/fonts/truetype/Myriad')

Now comes a tricky part: you would need to tell on the command line  
all the Myriad font files, like for example

	sudo apply 'ln -s' /Library/Fonts/MyriadPro-*

If it's not that simple with a wild-card (*), then name all file path  
names after the command 'ln -s'. Check with 'ls -l' that the work was  
done properly and type kind of a good bye: 'cd'. Now it's time to  
update TeX:

	sudo texhash
	sudo updmap-sys --enable Map=Myriad.map


It seems that the Myriad fonts are not included in the EPS (so they  
are no valid EPS) files. Therefore dvips needs to find their font  
files in the system. This is done via the MAP file psfonts.map, which  
is built from a lot of MAP file fragments. A new one needs to be  
created, Myriad.map, to tell dvips the mapping of font name to file  
name. The MAP file (and their fragments) have a structure of

	«TeX font name» «real font name»	<«glyphs coming from font file name»

and can contain information about re-encoding of the fonts  
(PostScript fonts are usually "8a" encoded and TeX uses OT1 ["7r" in  
file name], T1 ["8r" in file name], TS1 ["8c" in file name], plus  
some more font encodings).

--
Greetings

   Pete

What’s the difference between OS X and Vista?

Microsoft employees are excited about OS X…



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list