On 22 May 2023, at 0:19, Albert Krewinkel wrote:

Oliver Baumann <news-WPTjrydoUPgeaOpM6FAJmWZHpeb/A1Y/@public.gmane.org.net> writes:

Hi there, I am using Defaults files to give my documents a standard
look. This works absolutely fantastic.
However sometimes I want to overwrite settings from the Defaults file
in the document YAML block, but this doesn't always work.

The defaults files should be thought of defining default values for
*command line arguments*.

Good point. Thanks!

Instead, you may want to use `--metadata-file`, which can be thought of
a defaults file for metadata, as those values _can_ be overridden by the
YAML in the document itself.

Tried this - and it sort of works. Problem is, list fields like geometry or header-includes are overwritten, not added to. But I guess that’s just what it is...

Thanks in any case!

Olli

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/B45E906F-AE1C-4BF7-BDE7-DCE54E83EEEC%40halloleo.hailmail.net.