15

I want to be able to use Mathematica fonts with LaTeX. I find two sets of instructions for this:

  1. Robert's post there

  2. Kuska's instructions in mysymdoc.pdf, a file in the Mathematica 8 folder SystemFiles/IncludeFiles/TeX/texmf/doc.

Method (1) explicitly assumes one is using linux, although robert indicates the method should work for OS X.

Method (2) uses files that are distributed with Mathematica for OS X, but Kuska refers only to MikTeX on Windows and teTeX on Unix.

Which works with TeXLive 2011 under OS X?

Also, method (1) says to edit the two .mapfiles so as to change .pfb to .pfa (presumably because the Wolfram-supplied Type 1 font files have extension .pfa.

Why edit the .map files like that instead of changing the extensions of the font files themselves to .pfb?

3
  • Method (1) is not good for TeX Live 2011.
    – egreg
    Apr 12, 2012 at 21:30
  • 1
    What about considering the mathematica package which provides support for virtual fonts?
    – Werner
    Apr 13, 2012 at 5:57
  • I thought robert said his files included the mathematica package, by Kuska, that you cite. And Kuska's package is, I believe, the same thing that's supplied with Mathematica itself, in the SystemFiles/IncludeFiles/TeX folder.
    – murray
    Apr 13, 2012 at 14:58

1 Answer 1

10
+50

The instructions you mention are rather outdated.

  1. Modify wolfram.map to have .pfa instead of .pfb (to reflect the format of the font files) and remove all from Janson Text onwards, as those fonts are not provided.

  2. Copy wolfram.map to

    /usr/local/texlive/texmf-local/fonts/map/dvips/wolfram/wolfram.map
    
  3. Copy all subfolders from texmf/fonts (afm/wolfram …) to the corresponding folders in /usr/local/texlive/texmf-local/fonts.

  4. Copy the directory texmf/tex/latex/wolfram to /usr/local/texlive/texmf-local/tex/latex/wolfram

  5. Copy texmf/doc/wolfram to /usr/local/texlive/texmf-local/doc/latex/wolfram

  6. Run mktexlsr so that TeX Live will know about these files

  7. Run updmap-sys --enable Map=wolfram.map

  8. Enjoy

All steps from 2 to 7 should be done as Administrator (prefix the commands with sudo, typing the Administrator's password when requested)

Note that the 7z archive linked to in the blog article seems to be corrupt, while the .zip file is good.


Update

From TeX Live 2013 onwards, it's better to add the line

Map wolfram.map

to the file

/usr/local/texlive/texmf-local/web2c/updmap.cfg

(also requires Administrator privileges) and subsequently run

updmap-sys

without options. This replaces step 7 above.

21
  • The .zip file contents, robert says, is a subset of what's in the 7z file. In any case, I was able to unarchive the 7z file without any error message.
    – murray
    Apr 13, 2012 at 0:19
  • I keep all personal additions, including fonts inside ~/Library/texmf. I'm the only user, with an admin account. Should that not work? Is it essential, instead, to put wolfram.map (for my setup) in ~/Library/texmf/fonts/map/dvips/wolfram/? E.g., I copied wolfram.map to ~/Library/texmf/fonts/dvips/config. And I added the entry Map wolfram.map #localtexmf/dvips/config/wolfram.map to file ~/Library/texmf/web2c/updmap.cfg before running mktexlsr and updmap-sys.
    – murray
    Apr 13, 2012 at 0:25
  • 1
    @murray What's most important is not using updmap that may create problems in using fonts when they are updated via tlmgr.
    – egreg
    Apr 13, 2012 at 9:01
  • I am using Mathematica 9.0.1: I copied all necessary files in steps 2-5, and successfully got 6 to work. At step 7 I got error Unknown option: enable-map. Any ideas? Would it work if I just skipped this step?
    – QuantumDot
    Aug 26, 2014 at 20:10
  • I tried to compile my LaTeX document with \usepackage{wrisym} but it failed: mktexpk: don't know how to create bitmap font for Mathematica1. So clearly I'm doing something wrong. Any ideas?
    – QuantumDot
    Aug 26, 2014 at 20:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .