Inkscape is a great program if you want to generate vector graphics. If you don't have it, please type
sudo apt-get install inkscape
Imagine now that you want to generate a figure for your scientific paper (or whatever). Actually, what you want is that this figure has some embedded LaTex formulas.
To show how to do this with Inkscape and LaTex is the aim of this HOWTO.
Step 1 ------ You will need to have LaTex in your system. Check this: https://help.ubuntu.com/community/LaTeX
Step 2 ------ We need an extension for Inkscape called textext. Link to the official web page.
Download the last release from the previous web page. I installed this textext-0.4.4.tar.gz (it was the latest version when I did this tutorial ;) ).
wget http://pav.iki.fi/software/textext/textext-0.4.4.tar.gz
Untar the Textext package and copy its files to Unpack of the Textext package and copy its files to ~/.config/inkscape/extensions/
tar xvfz textext-0.4.4.tar.gz
mv textext-0.4.4/* ~/.config/inkscape/extensions/
Step 3 ------
Install the package pdf2svg. Since Ubuntu 8.10, the package is already in the repositories.
sudo apt-get install pdf2svg
For older versions of Ubuntu you can download it from here. Unpack the file and make the executable
tar -zxf pdf2svg-0.2.1.tar.gz
cd pdf2svg-0.2.1
./configure --prefix=/usr/local
make
sudo make install
Step 4 ------
Restart Inkscape. To create a new LaTeX object, choose Effects -> Tex Text, and type in your LaTeX code. The dialog has two additional fields: -Preamble file: name of a LaTeX preamble file, where you can put common definitions. -Scale factor: this affects how much a newly created LaTeX object is magnified. You can later change/reset this via Object -> Transform -> Matrix.
Afterwards, the object can be re-edited by selecting it and choosing Effects -> Tex Text again.
Related Links & References
Change Log: March, 8, 2011 - Instructions for Ubuntu 10.04 January, 26, 2009 - Instructions for Ubuntu 8.10. First version December,4th,2008