otfried / ipe

The Ipe extensible drawing editor
http://ipe.otfried.org
160 stars 15 forks source link

Export all slides to svg #483

Closed dominikscheder closed 1 year ago

dominikscheder commented 1 year ago

For my Html lecture notes I often create "carousels", for example illustrating an algorithm. Here is an example

To create this, I first create a presentation in Ipe with several slides/views. Then I export every page to an svg file. By hand. I go on every slide/view, and hit the key for "export to svg". This becomes tedious / repetitive / time consuming because sometimes I have over 30, sometimes even 50 pages.

Question: is there a way to export all slides to svg, like creating fifty contiguously numbered svg files? If not, can I write some ipelet / lua script to accomplish this? What would be a good point to start learning this?

otfried commented 1 year ago

One way to do this would be to make a shell script that calls iperender on each view. The only problem with doing that is that you would need to know the number of pages and the number of views per page, and getting those is not as easy as it should be.

Here is an ipelet that does what you want:

splitviews.zip

dominikscheder commented 1 year ago

Awesome! Thank you so much, Otfried!