On Oct 16, 2:25 pm, Roberto Alsina <rals...@netmanagers.com.ar> wrote:
> Why not just use a topic directive with the literalinclude inside it? Does it give as much flexibility? How would captions after the content be handled? For example, .. literalinclude:: examples/example.txt :precaption: My precaption :postcaption: My postcaption .. cssclass:: precaption .. topic:: Test caption .. literalinclude:: examples/example.txt displays as shown in http://imgur.com/S63Pu.png I may of course want to use topics elsewhere and not want to change the CSS for the .topic selector. Using the topic directive appears to add this class to the topic div. As you can see, the topic title styling is a bit too prominent for the intended usage here. Regards, Vinay Sajip -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.