Hi all,
In a related matter with the recent thread about viewing pdfs, I'm
having a lot of joy using the combination of Leo to write
reStructuredText documents and using the pure python tool rst2pdf to
export them in pdf with the proper styling in the predefined styles.
Then I just open them with okular and enjoy the output.
I would like to give some ideas about this experience, so may be it can
be "provided by default" with Leo, smoothing the use of Leo in the fluid
writing of structured text that can be universally read using the pdf
format as output.
* Being rst2pdf a pure python program, that can be installed using
"easy_install", should be nice if we could have a button called "create
pdf". It takes a @rst or @auto-rst tree as input and makes this:
* see if rst2pdf is installed, if not it invoke the "easy_install
rst2pdf" and makes it available as a site-package in the same python
that is running Leo (in case that we have in the future portable
versions of Leo).
* creates the proper external file from the @auto-rst or @rst tree and
* runs rst2pdf <external_file> creating in this way external_file.pdf
* gives a message about the output and let the user to invoke a
program to view the pdf. Something like "external_file.pdf has been
properly created. Do you want to open it" with a Yes/No buttons. May be
if we have, in the future, support for viewing pdfs inside Leo, it
should render the pdf inside Leo.
I am having some issues with @auto-rst and @rst directives that I should
comment in a separate thread.
Cheers,
Offray
--
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.