Inserting Latex equations in Inkspace on OSX (10.6.8)

Inkspace v0.48 supports inserting LaTex equations through the Extensions > Render > Latex Formula menu option. For this menu to appear on OSX however, you need to jump through a couple of hoops first. You will need to have lxml and pstoedit installed and configured properly. This can be a hassle on OSX. Here are the instructions which worked for me on OSX 10.6.8 (Snow Leopard). Installing easy_install (required for lxml)

Installing easy_install
>> sudo wget https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py -O - | sudo python

Installing lxml
>> sudo env ARCHFLAGS="-arch i386 -arch x86_64" easy_install lxml

Installing plotutils
>> wget ftp://gnu.mirror.iweb.com/plotutils/plotutils-2.6.tar.gz
>> tar -xzvf plotutils-2.6.tar.gz
>> cd plotutils-2.6
>> ./configure --enable-libplotter
>> make
>> su <admin>
>> sudo make install

Installing pstoedit
% Download via http://sourceforge.net/projects/pstoedit/files/pstoedit/3.62/pstoedit-3.62.tar.gz/download
>> ./configure --with-libplot
>> make
>> su <admin>
>> sudo make install

You can now try out the following under Extensions > Render > Latex Formula:

Latex formula: $\frac{1}{2}$
Additional packages (comma-separated): amsmath

Hopefully this works for you as well !

Advertisements

Protected: Unit vs. Max-unit @ 660k

This content is password protected. To view it please enter your password below:

Protected:

This content is password protected. To view it please enter your password below:

Type 1 vs 3 fonts

If a publisher ever complains about the presence of “Type 3” fonts in your camera ready paper and you’re a python user, the culprit could be your matplotlib figures. From my understanding, type 3 fonts aren’t vectorized and therefore not guaranteed to print well. You’ll need to add the following lines to your figure generating scripts, to force matplotlib to use “Type 1” fonts only:

import matplotlib
matplotlib.rcParams['ps.useafm'] = True
matplotlib.rcParams['pdf.use14corefonts'] = True
matplotlib.rcParams['text.usetex'] = True

You can easily tell which fonts are embedded in your pdf file. Using evince for example: File -> Properties -> Fonts tab.

Tagged

Protected: Beta Adaptation

This content is password protected. To view it please enter your password below: