Am Freitag, 3. Februar 2012 20:50:39 UTC+1 schrieb Kathy:
> I found an extension for this. This solves exactly what we needed. > > https://bitbucket.org/arjones6/sphinx-numfig/wiki/Home > > arjones6 / sphinx-numfig > > An extension for sphinx that adds the ability to reference figures by > number or > page. Also can be used to modify figure captions in html rendering to > include a > figure number. > > :num: Provides a link to the referenced figure, with the text of > the link being > the figure number instead of the figure caption. To include more than just > the > figure number in the link, use the role as follows :num:`figure > #reftarget`. > Provided that reftarget refers to the 3rd figure, this would be replaced > with a > link that says "figure 3". > > :page: The reference will be replaced by the page number the > referenced figure > occurs on. This only works with latex output and is ignored for other > outputs. > > Note: The :page: does not display correctly in HTML. But, I didn't need > that > feature (though I posted an issue since I might like it later). > This is so useful. Now more then one year later might this already be part of Sphinx itself? -- 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/groups/opt_out.
