Replies: 1 comment 1 reply
-
Note that what happens in these cases is that the value becomes a list (so you could iterate over it using Why this feature? I am not sure I remember all the reasons, to be honest. But here are two relevant facts:
|
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
-
We have this in the docs:
So given this
test.yaml
defaults file:...this
test.md
Markdown...This output (only the bits of relevant LaTeX are shown):
If we override the defaults
metadata
with command-line values we get this:The
colorlinks
boolean is not overridden (possibly it becomes a stringtruefalse
?) and thefontsize
becomes12pt14pt
, i.e. merged. It seems that this behaviour is not ideal for metadata / variables as we would want to merge thekey
s but not merge thevalue
for the samekey
? Usingvariables
in the YAML and-V
command-line doesn't change this. What is the benefit of merging values for metadata/variable items?note: if the markdown file itself has the metadata:
Then overriding from the command-line works fine:
Beta Was this translation helpful? Give feedback.
All reactions