[OS X TeX] Compile Mathematica files "saved as" Tex

Bruno Voisin bvoisin at mac.com
Thu Jan 20 04:19:11 EST 2005


Le 20 janv. 05, à 04:34, Amy Lee Wangsness a écrit :

> I found the folders with the
> style and font files, etc. in my Mathematica 4 folder labeled doc,  
> dvips, fonts, and tex,
> and have copied them to the directory Library:texmf:tex:latex:MathTex.
>
> When I try to compile the file in TeXShop, I still get the following  
> error:
>
> Transcript written on mfput.log.mktextfm: `mf-nowin -progname=mf  
> \mode:=ljfour; mag:=1;
> nonstopmode; input zwarm' failed.! Font OT1/zwar/m/n/7=zwarm at 7.0pt  
> not loadable: Metric (TFM)
> file not found.
> <to be read again>
>                    relax
> l.33 p\(
>         =\)4 q\(=\)6 n\(=\)22 has P0,1-completion
> ?

TeX isn't finding the fonts. Here's what I think you should do (I have  
Mathematica 4.1, which runs on OS X directly, thus things may be a bit  
different for you):

- Necessary for use of the fonts with TeX: copy the Math*.pfa files from

	Mathematica 4.app/SystemFiles/Fonts/Type1/ ->
		~/Library/texmf/fonts/type1/wolfram/

- Necessary for use of the fonts with OS X applications (like Adobe  
Illustrator): copy the file MathFonts.dfont from

	Mathematica 4.app/SystemFiles/Fonts/Macintosh/ ->
		~/Library/Fonts/

- Necessary for use of the fonts with Classic applications (like Claris  
Draw): get

	Mathematica 4.app/SystemFiles/Fonts/Type1/MathT1.sit.hqx
	<http://support.wolfram.com/mathematica/systems/macintosh/general/ 
MathFonts_TrueType.sea.hqx>

then unarchive them and drag the resulting files to (you'll get  
messages telling stuff should be put at appropriate locations, answer  
yes)

	/System Folder/

- Necessary for use of the fonts with dvipdfm: copy the Math*.afm files  
from

	Mathematica 4.app/SystemFiles/Fonts/AFM/ ->
		~/Library/texmf/fonts/afm/wolfram/

- The rest of the instructions is necessary for use of the fonts with  
TeX (all variants).

- Copy

	Mathematica 4.app/SystemFiles/IncludeFiles/TeX/texmf/doc/wolfram ->
		~/Library/texmf/doc/fonts/wolfram

- Copy

	Mathematica 4.app/SystemFiles/IncludeFiles/TeX/texmf/fonts/tfm/wolfram  
->
		~/Library/texmf/fonts/tfm/wolfram

- Copy

	Mathematica 4.app/SystemFiles/IncludeFiles/TeX/texmf/fonts/vf/wolfram  
->
		~/Library/texmf/fonts/vf/wolfram

- Copy

	Mathematica 4.app/SystemFiles/IncludeFiles/TeX/texmf/tex/latex/wolfram  
->
		~/Library/texmf/tex/latex/wolfram

- Copy (for TL2004 and beyond)

	Mathematica  
4.app/SystemFiles/IncludeFiles/TeX/texmf/dvips/init/wolfram.map ->
		~/Library/texmf/fonts/map/dvips/misc/wolfram.map

then run, in Terminal,

	sudo updmap --enable Map wolfram.map

For TL2003, the target location should be, I think,

		~/Library/texmf/dvips/misc/wolfram.map

- Finally, if you intend to use the fonts with GhostScript (for example  
when converting a .eps or .ps file containing these fonts to .pdf by  
using drag-n-drop onto TeXShop, or by applying the scripts epstopdf and  
ps2pdf), you need to follow instructions posted by Tom Kiffe:

> 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.

with Fontmap.Wolfram containing:

> %%%%%  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) ;

Hope this works (there may be inaccuracies, I'm writing this in a rush  
and there's been some time since I've last installed the fonts),

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 MacOSX-TeX mailing list