How to set/use $title$ in format.pdf.include-before-body
includes?
#10799
Replies: 6 comments 15 replies
-
You can't. You need to use partials as documented, see https://quarto.org/docs/journals/templates.html#overview. Also, do not use raw language without telling Quarto/Pandoc you are using it, see https://quarto.org/docs/authoring/markdown-basics.html#raw-content. |
Beta Was this translation helpful? Give feedback.
-
I wasn't aware of that. Thanks.
I'm not entirely sure what mean, even after reading the section you linked. And why is that relevant? Quarto seems to parse that just fine 🤔 I'm confused 😅 |
Beta Was this translation helpful? Give feedback.
-
While I agree to use partials, especially if you want to reuse a format, you can use the "\newcommand" trick mentioned in this forum some time ago (#5526, #5538):
BTW: Since Quarto as of 1.5.57 provides the "Lorem Ipsum Text Shortcodes", you don't need the "blindtext" package. |
Beta Was this translation helpful? Give feedback.
-
i am exactly having a problem here. in which part of the partial should running header be defined? |
Beta Was this translation helpful? Give feedback.
-
I want to define a custom short title to YAML, pass this as running header in my article
the _quarto.yml file
also my latex preamble
|
Beta Was this translation helpful? Give feedback.
-
Thanks!! That Worked
…On Sun, Oct 13, 2024 at 11:53 PM Mickaël Canouil ***@***.***> wrote:
Because you used include.
Variables only work in partials/templates.
—
Reply to this email directly, view it on GitHub
<#10799 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APQKHS5LCJQ5QCFOVJCL23DZ3K3D5AVCNFSM6AAAAABOGBQXU6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJTGAYDCOA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Until now, I only worked with a quarto book project. Now I've set up a “self-contained” file to render. My issue is that I can't access metadata field like
title
in includes in this set-up.Why isn't
title
populated in this set-up / How would I use metadata correctly, here?I expected
My Fancy Document
to show up in the header. What am I missing?Beta Was this translation helpful? Give feedback.
All reactions