I'm using titled (and numbered) tables, figures and code blocks with sphinx 1.3b3, but they have some limitations, for instance: I cannot change the caption placement from top to bottom or vice-versa, and I can only have a single element, or a specific type, in each block (see issues #1723 and #1728 in github). So, I'm trying to create a new directive for a generic titled block, with arbitrary content, it's intended to be use like this:
Lorem ipsum dolor .. float:: :type: figure :caption: Float caption :caption-top: This is the content of the float === === === 1 2 3 4 5 6 === === === .. math:: E = mc^2 Lorem ipsum dolor The block contains a paragraph, a table and an equation, all with a single caption (placed on top), and I want it named and numbered as a figure (with numfig=True). I have it working, at least with the HTML writer, but I don't know how to get the last part: having it named and numbered as a figure. I could maybe achieve this modifying the sphinx code in several places, but how can I do it within a extension? Any help is appreciated. Thanks, Ignacio -- 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 http://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
