5

I'm using the alabaster sphinx theme, and have local table of contents (TOC) on each page which automatically include my section headers. Is there a way to also include figures/images in the TOC?

I'm including figures like:

.. image:: ./figs/1982MNRAS.200..115S_fig2.png
    :width: 500px
    :align: center
bad_coder
  • 11,289
  • 20
  • 44
  • 72
DilithiumMatrix
  • 17,795
  • 22
  • 77
  • 119
  • Do you want a list of figures? Why should a normal picture appear in a local ToC? No book does that. – Paebbels Apr 01 '17 at 23:49
  • 1
    @Paebbels because I want it in a TOC? So that you can click and get there? So you know which sections have figures? So you have a list of figures that shows where they are in the text? I didn't realize I cross-posted to *proper-book-etiquette.SE*... my bad – DilithiumMatrix Apr 01 '17 at 23:52
  • Currently, there is no list of figures or list of tables. It's common in LaTeX to have such lists, but not locally per page. So I think you could create a feature request at Sphinx and ask for a list of tables/figures including a local version. – Paebbels Apr 01 '17 at 23:56
  • You can still create your own list with labels and an enumeration. Moreover, all your images need a title. – Paebbels Apr 01 '17 at 23:57

0 Answers0