-
DescriptionI am trying to create a paramterised report using typst. The issue is i am not able to pass params to typst template as a result of which placeholders doesnt change. The file name gets changed. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Parameters are for computations (code cells) not for metadata. See the documentation: https://quarto.org/docs/computations/parameters.html See also the documentation about Pandoc's template system: https://pandoc.org/MANUAL.html#template-syntax What you need is to change metadata, you can find multiple examples of this in the other discussions. One example: See other discussions about Typst: https://github.com/quarto-dev/quarto-cli/discussions?discussions_q=is%3Aopen+label%3Atypst |
Beta Was this translation helpful? Give feedback.
-
Thanks. So I understand that I have to use {}. but how to run it using purrr or something? is there a way? |
Beta Was this translation helpful? Give feedback.
-
Perfect!! Thanks
…On Fri, Aug 22, 2025 at 10:15 PM Mickaël Canouil ***@***.***> wrote:
If you intend to use the R wrapper, I strongly suggest to read the
documentation of the function you are using.
—
Reply to this email directly, view it on GitHub
<#13262 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APQKHS25I5IASPPVGKJQL733O5CKNAVCNFSM6AAAAACERYK4XOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJZGE4DINQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
follow up to this. Now i am trying to change colours dynamically. When i manually change species in Yaml of penguins.qmd, it works. But when i use |
Beta Was this translation helpful? Give feedback.
-
I am sorry. I thought since it is same thread GitHub repo was available.
The issue is this:
I have penguins.qmd which is parameterised. The qmd file works as expected
and creates a dynamic report which has also some nice colour codes based on
the input parameter. But when I use render.R to create reports for all
species, everything works except the colour coding. I can’t find a way to
do this
…On Fri, 5 Sep 2025 at 11:47 AM, Mickaël Canouil ***@***.***> wrote:
You need to provide a clear description with a small reproducible example
when asking something or your chances to get a useful answer is close to
zero.
This being said, there are also other threads discussing this kind of
things.
—
Reply to this email directly, view it on GitHub
<#13262 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APQKHS4HXLSMRDNYIQOHB7T3RETI7AVCNFSM6AAAAACERYK4XOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMZRGQ2TMNI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Parameters are for computations (code cells) not for metadata. See the documentation: https://quarto.org/docs/computations/parameters.html
See also the documentation about Pandoc's template system: https://pandoc.org/MANUAL.html#template-syntax
What you need is to change metadata, you can find multiple examples of this in the other discussions.
One example:
See other discussions about Typst: https://github.com/quarto-dev/quarto-cli/discussions?discussions_q=is%3Aopen+label%3Atypst