Book: Many Pages with a very specific shared layout? (Web + PDF) #12763
Unanswered
cycomachead
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The PDF format is one single document contrary to the HTML format. Maybe look at the "partials" Quarto extension: https://github.com/gadenbuie/quarto-partials |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! I think that might work.
Yeah, I get that... It wasn't clear from the docs whether this was intentional or not. |
Beta Was this translation helpful? Give feedback.
1 reply
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 have a book, which is a reference manual for a programming language (@snap-cloud/manual)
In this book, I want to have ~200 pages, one page per function which essentially follow a common layout.
I was thinking I'd have some
.qmd
files which look like this:The
_block.qmd
template mostly uses a much of{{< meta block_description >}}
type replacements.I have run into two issues, and a 3rd future problem.
meta
replacements do not seem to be rended in the process of compiling the PDF file.What is the best way in Quarto to go abut this?
There seem to be templates, but I don't want to redo the entire book layout, just the contents for 1 type of page.
I've considered going for a pre-render script that uses something like Jinja or liquid to render
qmd
files with everything filled in... that (or a post-render script) would easily let me output JSON, too.However, a pre-render script to essentially render to a custom format seems like an anti-pattern?
Beta Was this translation helpful? Give feedback.
All reactions