On Sat, Mar 14, 2015 at 5:08 AM, lewis <[email protected]> wrote:
I use reStructured Text to display tables of data and need to specify the > bodytext in a monospaced font to make the table editing easy. > How do I do this? I followed http://leoeditor.com/customizing.html > @font Body text contains a font description > > I've tried the following in the body text: > > > *@language rest@font* > *body_text_font_family Liberation Mono* > (and also:) > *@font body_text_font_family Liberation Mono* > > I also tried selecting the table text, entering 'show-fonts' in the > minibuffer - selecting Liberation Mono > Neither worked so I'm obviously missing something..... > @font is a setting, not a Leo directive. That is, you can only use @font in a settings file. Happily, the richtext plugin can display a richtext editor in the body pane. In my test file, this displays body text in <pre> format, which of course is monospaced. For more details, look at the docstring of the richtext.py plugin. If you have the plugin enabled, you can see the docstring by choosing it from the Plugins menu. Viewrendered windows display the table as expected with *@language rest.* > That's good ;-) I'm actually none too clear about controlling the output of the vr window. It *might* be possible to use rST settings to customize that, but I don't know for sure. I don't use the vr window much for reviewing Leo's docs. Instead, I use the rst3 command to create a text output file, then run sphinx's make html command to create the corresponding .html file. I then review the .html file in a browser. This is reliable, if perhaps a bit slow. Edward -- 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.
