Hi Paul, [Paul Dubois]: > I am writing books that I want to render in html, latexpdf, and epub. > > I want the TOC to include a last line Index that shows or links to > (depending on output format) the page where the index starts.
you may find one path to a solution here: https://docs.typo3.org/News/2016/Index.html#cool-stuff-for-nerds-special-templates-available See what I did there to create a sitemap. The idea is that you have an extra template and select that by means of page properties. My page has normal contents first (that appears in the TOC) and "knows" how to generate the special contents. In my case it's a sitemap, in your case it would be then index. You would have to adapt that somehow similar like:: :template: myindex.html .. _MyIndex: ====================== My Index ====================== .. template 'myindex.html' will insert the Index here below normal contents Patting myself on the shoulders I still find that using page properties like that is a clever idea :-) You would have to create the template file :file:`myindex.html` of course. Martin https://github.com/TYPO3-Documentation/t3SphinxThemeRtd/blob/master/t3SphinxThemeRtd/sitemap.html https://github.com/sphinx-doc/sphinx/blob/master/sphinx/themes/basic/genindex.html -- http://mbless.de -- 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.
