Academic article (R Markdown) as chapter in Quarto book #1635
-
Hi all, This is probably a pretty niche use-case for Quarto, but I'm hoping someone will have an answer. I'm trying to include an academic article as a book chapter (the book is my PhD dissertation). The article is included as a git submodule, where I would like to use the The issue: When I include the .Rmd article file within the .qmd chapter file, i.e. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The issue, I suspect, is that The Lua filter route is to wrap your include call in a div block with a particular class, then have your lua filter find that block, walk its children, and replace headings manually with headings that are one level lower. |
Beta Was this translation helpful? Give feedback.
The issue, I suspect, is that
shift-heading-level-by
is a global yaml option (include
is a pretty blunt tool: it inlines all the code, and the rest of quarto doesn't know that the options you set are only meant for that document). In order for what you're suggesting to work, I think you'd have to do more clever things.The Lua filter route is to wrap your include call in a div block with a particular class, then have your lua filter find that block, walk its children, and replace headings manually with headings that are one level lower.