I want to use the Clutter based presentation tool Opt for a presentation tomorrow. I also want to embed an application into the presentation….Quick and Dirty Hack ™
Archive for July, 2007
I use LaTeX for document typesetting and generally use Inkscape for drawing diagrams.
When using a makefile to make your LaTeX document, autogenerate the EPS file from the Inkscape SVG. This saves having to add the binary EPS file to the source repository (source control is my religion .
inkscape –without-gui –export-bbox-page –export-eps=images/foo.eps images/foo.svg
This also works for pdf files when using PDFLaTeX
Don’t save the font in the EPS file, or convert the font to a path. By doing this, TeX will typeset the font within the diagram and you get the same typeface in the whole document
When using the graphix LaTeX package you may not specify the .eps or .pdf of the image file, eg:
This means that you can switch between latex (which expects eps image files) and pdflatex (which expects pdf image files) as compiling commands. This is useful if you need to use another package which only works well with with one of the above (eg: ps-tricks only works with latex, not pdflatex).
As far as I know EPS files do not support transparency. This means that your beautiful picture of Venn-2 (two intersecting sets) might look nice in SVG and PDF, but you’ll have to manually draw in the intersection in EPS (simple in Inkscape, use the intersection option).
That is all….