I am struggling with rst layout settings in a Leo file and consulted the
documentation where it reads:

    @rst-options <ignored-text>
    
    Set options from body text. The body text should contain nothing but 
lines of the form:
    
    <option>=<value>
    
[see 
http://leoeditor.com/rstplugin3.html?highlight=stylesheet_path#option-doc-parts]

But when I create an @rst-options node in my file and use this body text:
    stylesheet_path=./css
    stylesheet_name=mycss.css
    
...nothing happens.

What am I doing wrong??

I organized my file as follows:

@settings
-> @bool rst3_call_docutils = True
-> @string rst3_write_intermediate_extension = .rst
        -> @string rst3_stylesheet_name = mycss.css
-> @rst-options mylayoutsettings
stylesheet_path=./css
stylesheet_name=mycss.css
My Text
-> @rst text1
[-> @rst-options mylayoutsettings]
->
->
...
-> @rst text2
[-> @rst-options mylayoutsettings]
->
->
...
-> @rst text3
[-> @rst-options mylayoutsettings]
->
->
...

My intention was to define stylesheet_name and _path on file level and 
expected
them to be used whenever I run the rst3 command. But this approach did not 
work
if not I write an option doc part into each body of the @rst nodes.  Is 
there a
way to tweak Leo to do this without having to write the same option doc
part like (@ @rst-options...@c) into each rst-node? The option doc part is
the only mechanism where stylesheet_path or stylesheet_name takes effect as
far as I see.

How could I set up my Leo file to globally define those parameters (both
@rst-options node and "@rst-option stylesheet_name=mycss.css" would be great
but is not doing the trick)??

Any advice greatly appreciated...

Best,
Franz (Leo 5.0-final build March 5)

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to