> Give me a LyX scripting language, and I'll redo the lgt :-)
Actually, the suggesting from Alejandro to use the LyX server is excellent for
this purpose!
You can get a primitive graphical tutorial going with this, without us having
to change a single line of code in LyX.
Check out the "development/lyxserver/sampleclient.tcl" example in your LyX
distribution, and use that as a template to get an externally script to do the
graphical tutorial. Then edit your lyxrc to enable the LyX-server. This is as
simple as commenting out a line and changing the path to your own
home-directory.
It should be entirely possible to do the entire tutorial with this.
The command "self-insert" will insert text (i.e. "self-insert ERT rules" does
what you would expect), while the other needed command-names can be seen in the
minibuffer if you use the mouse to trigger them (along with the short-cut key.)
If you happend to need one that you don't know the name of, just ask on this
list, and we can dig it out of our memory, or the sources.
It's worth trying out, if you have the time.
If you want to use a different language than TCL, just get a sample LyXServer
application running. In this process using "lyx -dbg 8192" is a good idea,
because this turns on LyXServer debugging. (It's also a good idea to do this
with the sampleclient in TCL to see whats going on.)
If you get this stuff working, I'm sure we will include it in the v1.0.0
release as an ultra-cool feature.
Good luck,
Asger