Hi,

I'd like to set the background color and font type for a block of text that 
would be rendered correctly both in html and pdflatex outputs. What I tried 
so far without success:

- .. parsed-literal directive
  This renders a gray background color only in the html output, the 
pdflatex output renders the text on a white background which can't be 
changed. Also I'd like to avoid having line breaks where the .rst version 
has a line break, instead I'd like the lines to be automatically reflowed 
based on available width as for normal text. (I know I can make long lines 
break automatically, but this is not what I want.)

- .. note/warning etc. directives
  These add the "Note", "Warning" etc. captions which I don't want.

- .. container:: class
  This allows for a custom html syling by adding a .css style for "class", 
but the pdflatex output won't have any markup that I could use (redefine) 
for a custom style. .. role's emit a \DUrole markup which I think could be 
used for custom styles, but I want something for a whole block of text, 
that is for an rst directive.

Is there some way (using the above or some other approach) to do what I 
want?

I believe it could be done with a sphinx extension, if so could someone 
provide a sketch for this to get me started?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" 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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to