On Mon, Mar 9, 2009 at 10:13 AM, mdb <[email protected]> wrote:

>
> I want simplify creating Latex/Beamer slide files and need help or
> suggestions.
>
> I can do the following
>  --turn a leo node into an external rst or latex file using the rst3
> plugin
>  --translate a rst file to basic Latex or Beamer using a python
> script outside of leo
>           (using docutils and rst2latex.py or rst2beamer.py)
>
> I need some direction or an example leo outline to combine these
> steps.
>
> I was trying to import a derived rst file but I must be missing
> something. I get an error using import or read to create the new node
> (that I hoped would automatically update after editing) when the file
> is created using the rst3 plugin.


The rst3 plugin doesn't create so-called "derived files".  Derived (aka
external) files contain Leo sentinels, but none of the intermediate files
created by the rst3 plugin have sentinels.

If you want to handle the intermediate files, it would probably be best to
use one or more @auto or @edit nodes.

Scripts can reread @auto nodes with::

    fileName = p.atAutoNodeName()
    at.readOneAtAutoNode (fileName,p)

and can reread @edit nodes with::

    fileName = p.atEditNodeName()
    at.readOneAtEditNode (fileName,p)

I'm not sure this exactly answers your question.  Feel free to ask more
questions.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to