On Oct 8, 7:41 am, "Edward K. Ream" <[email protected]> wrote:
> Here is a tested @button script that creates all missing slides in a
> given range::
The scripts I am discussing will be part of LeoDocs.leo.
When copying Joe Orr's slides I find it useful to number slides
sequentially. However, you can pick any name you want for an @slide
node--the plugin ignores whatever follows @slide.
With that in mind, here is a tested script that renumbers slides, say
after inserting, deleting or moving slides:
QQQQQ
'''Renumber @slide nodes under p, an @slideshow node.'''
if g.match_word(p.h,0,'@slideshow'):
n = 1
for child in p.children():
if g.match(child.h,0,'@slide'):
child.h = '@slide %03d' % n
n += 1
c.redraw()
else:
g.error('not an @slideshow node',p.h)
QQQQQ
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.