Thursday, November 3, 2011

Latex and Inkscape on Snow Leopard

Recently, I have been using the great Inkscape (version 0.48.2) drawing tool for my work. But, I also needed LaTeX support. I then tried to use the textext plugin, but I faced many problems with inkscape and the plugin extensions, with error messages related to lxml support and others. At the end, what worked was :

  1. Remove the python internal support for inkscape (see the useful blog http://blog.lrem.net/2010/07/05/fixing-inkscape-python-extensions/) :
    cd /Applications/Inkscape.app/Contents/Resources/
    mv python OLD.python

  2. Install, if have not done so already, the lxml and maybe numpy packeges for python:
    easy_install numpy lxml
  3. Move the textext scripts to /Applications/Inkscape.app/Contents/Resources/extensions