Consistency between PDF and HTML regarding TOC and chapter/table/figure numbering #10417
Replies: 1 comment 3 replies
-
I believe it has been remove from TOC on purpose, at least for the default style Maybe there should be an option, or it should take Let's note that there is the inverse demand of removing the appendices from TOC in PDF: Anyhow, you can opt-out appendix processing by using
There is indeed currently now way in single document. One would need to use JS script probably or Lua filter to tweak the numbering. We do process appendicies differently in Books though. Books are really the format where the notion of Chapters is considered, and so Appendix chapters is. Those are good feedback - we'll add them to backlog. Thanks ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I want to publish a scientific article as an HTML page and offer an identical PDF version. The Quarto script below produces a pdf document as I envision it. However, despite some time spent learning Lua filters, I have not been able to create an HTML document that matches the PDF.
The pdf TOC looks like this:
This is the html TOC:

There are three inconsistencies:
I am aware that some of these issues could be resolved with a Quarto book. However, I would find it extremely useful if Quarto offered these functionalities for simple HTML documents with just a single qmd file.
The most significant benefit, in my opinion, would be if the appendix chapters appeared in the TOC (1). I do not understand why this is not the default behavior. Regarding the alphabetical numbering of appendices (2) and the chapter-wise numbering of figures and tables (3), I assume users have different preferences (and 2 & 3 are probably easier to implement via custom Lua filters than 1). But it would still be nice to have the option of easily selecting a corresponding numbering from the yaml header.
Wouldn't it be desirable, for the sake of consistency between PDF and HTML formats, to enable the creation of an HTML article from a single qmd file that closely matches the PDF output in terms of the TOC and the numbering of headings, tables, and figures?
Beta Was this translation helpful? Give feedback.
All reactions