I have been thinking about the feature with `${HOME}` etc. in default file paths. It would be good to also have `${OUTPUTFORMAT}` (or just `${FORMAT}` like the Lua variable) so that you could do things like this:
``````yaml
defaults:
- ${.}/defaults/${FORMAT}.yaml
``````
Filters, CSS, includes and metadata/variables come to mind as things which often should be different based on the output format in a single-source scenario which could be handled this way, but there probably would be other uses which at least I can't foresee.
While there certainly are situations where you could invert this and say
``````yaml
defaults:
- ${.}/defaults/common.yaml
``````
in `./defaults/latex.yaml` there certainly are situations where including the format-specific file from the common file will be more intuitive.
/bpj