Comment 2 for bug 171476

Revision history for this message
Ketil Malde (ketil-ii) wrote :

Fore presentation, I generally make a layered figure, and generate individual slides by making various layers visible. Last time, I wrote a small script to do this automatically, using xmlstarlet. For instance, this command

    xmlstarlet ed -P -N svg=http://www.w3.org/2000/svg -u '//*/svg:g[@id="layer1"]/@style' -v display:inline figure.svg > slide-1.svg

will generate slide-1.svg from figure.svg by setting layer1 visible. (I generally save from Inkscape with all layers invisible, but you can hide layers similarly, by setting style to display:none. I then generate pdfs with inkscape, e.g.

   inkscape -A slide-1.pdf slide-1.svg