Skip to content
Discussion options

You must be logged in to vote

Profiles are the right approach here. To answer your questions directly:

1. book: chapters: in a profile appends, it doesn't replace. Quarto's profile merging concatenates arrays and deduplicates. So your base _quarto.yml lists only the PDF chapters, and _quarto-online.yml adds the HTML-only ones. This is documented behavior: "objects and arrays are merged rather than overwritten" (see Metadata Merging).

2. No built-in per-chapter format exclusion, but profiles solve this cleanly without needing one.

3. Cross-references to missing chapters won't gracefully degrade. In PDF (LaTeX), you'll get ?? from an unresolved ef{}; in HTML you'd get bold ?@sec-discrim. The build continues with a warn…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@friendly
Comment options

@mcanouil
Comment options

Comment options

You must be logged in to vote
3 replies
@mcanouil
Comment options

@cderv
Comment options

@mcanouil
Comment options

Answer selected by friendly
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
crossref books latex LaTeX engines related libraries and technologies projects html Issues with HTML and related web technology (html/css/scss/js) lua Issues related to the lua codebase, filter chain, etc
3 participants