Book: Difference TOC entries from HTML and PDF/latex #13232
Unanswered
cycomachead
asked this question in
Q&A
Replies: 1 comment
-
There is no built-in way. Meanwhile, I made a Lua filter extension last week that could help but it's not tested on books. Accessibility: To improve accessibility, please add alternative text to your screenshots. This helps all users, including those using screen readers, to understand the context of the images. A brief description can make a big difference! See Good Alt Text, Bad Alt Text — Making Your Content Perceivable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am working on a book, which has ~25 regular chapters, but more than 200 entries in the appendix organized into 10 or sections. Is there a way to essentially have a different
tac-depth
for the "main" TOC and for the appendix?On the web, this works out fine, because I can expand/collapse the subsections. However, in the PDF, I'd like to exclude the individual subentries and just have the 10 sections.
My
_quarto.yml
looks something like this:It's the individual "chapters" of each part I'd like excluded.
Essentially, the stuff in the red boxes are what I'd like to exclude.
In each file, I define the title as:
# `move steps` {.unnumbered}
.unnumbered
is necessary because with 200+ entries, we quickly exceed the lettering scheme. And.unnlisted
isn't quite right because I wan't them to appear in the web TOC.I'm not sure if I should go about trying to modify the tex output, or if it would be best to try to write a lua filter for just the PDF processing?
Beta Was this translation helpful? Give feedback.
All reactions