I am trying to replicate the standard LaTeX fonts within Mathematica, and I am struggling to get it to work correctly, particularly with Greek letters.

More specifically, I have downloaded the Latin Modern Math font, and asking Mathematica to use that font family is at least vaguely successful at producing something that looks like TeX output. Thus, entering

text = Style["ωt=π", FontFamily -> "Latin Modern Math"]

will produce text like


on my system. This is definitely an improvement in terms of getting closer to the TeX output compared to the usual fare, but it's still not there: it needs to look like

TeX output

and both Greek letters are quite different. Is there a way to replicate the correct font within Mathematica?

(All of this, by the way, on v10.4 over Ubuntu 15.10.)

  • 1
    $\begingroup$ Possible duplicates: (13196), (84968) $\endgroup$ – Mr.Wizard Jun 9 '16 at 11:45
  • $\begingroup$ Have you tried MaTeX? The spacing is not a feature of the font. It's a feature of the typesetting engine. $\endgroup$ – Szabolcs Jun 9 '16 at 12:00
  • $\begingroup$ @Szabolcs I did try MaTeX; I found it a bit unwieldy and I'm looking for other options. In any case, I find it really weird that this is so hard. $\endgroup$ – Emilio Pisanty Jun 9 '16 at 12:05
  • $\begingroup$ @Mr.Wizard I'm having some trouble with both of those. Re (13196), I can't find any UnicodeFontMapping.tr file at all. $\endgroup$ – Emilio Pisanty Jun 9 '16 at 12:07
  • 1
    $\begingroup$ The glyph system changed in version 10 so I think my answer to the first referenced question isn't useful now. :-( $\endgroup$ – Mr.Wizard Jun 9 '16 at 12:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.