I am not sure if this would help, but we use `${USERDATA}` e.g. ```yaml css: - "${USERDATA}/epub-css.css" epub-fonts: - "${USERDATA}/fonts/fontname-*.ttf" ``` This is the root of your folder with the `defaults` folder/ `defaults.yaml` file in it. We then call Pandoc with `--data-dir` argument if it is not the default location and of course your desired defaults file with `--defaults=xxxx` On Sunday, 22 May 2022 at 21:15:46 UTC+1 BP wrote: > > > Den sön 22 maj 2022 18:28John MacFarlane skrev: > >> >> I'm pretty sure that the expansion doesn't work for 'defaults:', >> but I can't now recall whether there was a reason for that. >> Maybe submit a bug report? >> > > I will, because this breaks my workflow where I use the same top level > defaults file on different machines. > > > > >> BPJ writes: >> >> > I forgot to mention the vital points that `${HOME}...` works with `css: >> []` >> > in the same file and that everything works if I use an absolute path in >> the >> > `defaults: []` entry. >> > >> > Den lör 21 maj 2022 20:45BPJ skrev: >> > >> >> In a defaults file in the current directory I have the lines: >> >> >> >> ``````yaml >> >> defaults: >> >> - ${HOME}/style/ling-html2pdf.yaml >> >> `````` >> >> >> >> I'm sure that file exists but pandoc complains and says it doesn't. >> Might >> >> Pandoc's idea of what `${HOME}` expands to differ from the shell's >> idea of >> >> what `$HOME` expands to? >> >> >> >> >> >> >> > >> > -- >> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhC5X%2BsNjQEFX9mHPryV93TRYBenqVZreU%2B3BdVb7-5V7w%40mail.gmail.com >> . >> > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6766afed-d65b-4853-a07c-d4400063f2c9n%40googlegroups.com.