-
Descriptioni wish to dynamically populate author info from _variables.yml so that it is reusable across projects. i am not able to get there. my _quarto.yml file
my variables.qmd file
my _variables.yml file
i wish to know how we can use the entire author information and also only selected author in a later project |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
The author content you have in
With those options, you can have metadata that can be merged with others. Did you try those options ? |
Beta Was this translation helpful? Give feedback.
-
Thanks. These are great tricks I did not notice. But my issue is that {{ < var author >}} is not working. I was thinking of case of starting a new project where only two authors are involved, I could copy the _variables.yml and then use a subset of the authors |
Beta Was this translation helpful? Give feedback.
-
author:
|
Beta Was this translation helpful? Give feedback.
-
Update: This works. But it would have been still nice to have a way to populate a list |
Beta Was this translation helpful? Give feedback.
-
Please find the repo |
Beta Was this translation helpful? Give feedback.
-
i was wondering if there is a way to populate list here
|
Beta Was this translation helpful? Give feedback.
I think you are expecting something that will not happen. See our doc : https://quarto.org/docs/authoring/variables.html#var
so you can't expect some sort of metadata expansion, where using
var
shortcode will magically fill up the wholeauthor
field when you doGenerally to use variable you need to retrieved value by value. So maybe using
{{< var author.2.name >}}
for the second name. You wo…