Categories
Mathematica

Mathematica and greek letters (v7 and v8)

Mathematica versions 7 and 8 and specifically on Linux, have issues with the greek letter rendering. This is an article describing a workaround for the issue.

The rendering problem is that mathematica handles greek letters even in text strings differently from other characters, because greek letters are important for mathematics. So when you use greek characters in strings on Linux, in Graphics or Graphics3D objects the font used is not the custom one you specify. The result is a really awful rendering of greek fonts.

A workaround is to use custom modified Unicode mapping files for mathematica kernel :

  • Let’s say your installation of mathematica on linux is in /usr/local.
  • Go to the directory /usr/local/Wolfram/Mathematica/<Version number>/SystemFiles/FrontEnd/TextResources/. The <Version number> is 8.0 and 7.0 for your specific version of mathematica.
  • The file to be customized is UnicodeFontMapping.tr. Make a backup of the file.
  • Download the custom mapping file for version 7.0 and version 8.0.
  • Replace the file UnicodeFontMapping.tr with the downloaded file.
  • – Done!

Now the font use in mathematica for greek texts and all the Style settings work fine as you can see on the picture below:

Leave a Reply

Your email address will not be published. Required fields are marked *