There used to be a TOC for an article, but that is now disabled in the xhtml.xsl file. However, the TOC is still generated in the PDF.
I would like either a) for TOCs to be turned on again for articles or b) to have a flag in the publican.cfg file for turning TOCs off and on.
I think b) would be cool, but it's probably easier to do a).
In which brands are you seeing this? And which versions of those brand packages?
The brand I'm using is...
And the publican version is ...
The setting is in /usr/share/publican/xsl/xhtml-common.xsl, so it should be applied to every publican build, regardless of version. The snippet I'm referring to begins around line 60...
It is set not to generate a TOC for the article. However, this is the setting for the pdf (in pdf.xsl, beginning at line 252):
See, article TOC is enabled there.
> The setting is in /usr/share/publican/xsl/xhtml-common.xsl, so it should be
> applied to every publican build, regardless of version. The snippet I'm
> referring to begins around line 60...
Yes, we turned off Tables of Contents by default for articles in HTML some time ago (but obviously forgot to do that for PDF output as well).
However, this behaviour is overridden by the the Red Hat brand, which since version 1.5 has explicitly turned on tables of contents for HTML articles. You should see this in your /usr/share/publican/Common_Content/RedHat/xsl/html.xsl:
When I build HTML articles with Publican 1.6.3 and publican-redhat 1.8, I get tables of contents as expected.