help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to avoid mini toc in HTML output


From: Gavin Smith
Subject: Re: How to avoid mini toc in HTML output
Date: Sat, 30 Dec 2023 19:44:18 +0000

On Sat, Dec 30, 2023 at 06:38:07PM +0100, Patrice Dumas wrote:
> The level could depend on the split option, the document seems to be
> split at sections.

Yes, it appears that the section toc is needed if the nodes are in a
different HTML file, but not needed/wanted if they are in the same file.

One option that does not need any changes to be made to texi2any, or for
an init file to be used (which is difficult for users) is to use
the @subheading command.  So instead of

  @node Daily Workflow
  @section Daily Workflow
  
  ...
  
  @node Automate your image
  @subsection Automate your image
  
  ...

it would become instead


  @node Daily Workflow
  @section Daily Workflow
  
  ...
  
  @subheading Automate your image
  
  ...

This would have the side-effect that "Automate your image" would not
appear in the main table of contents (although the manual in question
doesn't appear to have a detailed table of contents, only a list of
the top-level chapters).  The numbering of the heading would also
disappear (so no "9.5.1") would appear before the heading.

If you needed to link to the subsection/subheading, you would have to
add an anchor:

  @node Daily Workflow
  @section Daily Workflow
  
  ...
  
  @anchor{Automate your image}
  @subheading Automate your image
  
  ...

Do you think this would be an acceptable workaround?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]