Path expansions for variables #9812
-
My goal is to specify a css file for revealjs given a generic path. The following defaults file works as expected to: revealjs
variables:
css: ['/home/myusername/.local/share/pandoc/revealjs.css'] However, when it is changed to css: ['~/.local/share/pandoc/revealjs.css'] pandoc gives a warning,
But for some reason setting css: ['"$HOME"/.local/share/pandoc/layouts/revealjs.css'] results in pandoc not complaining about "could not fetch resource". Without a warning, the user expects pandoc to have found the file, but the resulting output is without style (possible bug? at least it should show a warning). Now that none of this work, is it possible to at least have pandoc look for revealjs.css file within its css: ['revealjs.css'] results in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Did you try the syntax like: csl: ${HOME}/mycsldir/special.csl
|
Beta Was this translation helpful? Give feedback.
Did you try the syntax like:
${HOME}
,${USERDATA}
and${.}
are supported, though not in all defaults fields (only those that accept paths), butcss
should work...https://pandoc.org/MANUAL.html#defaults-files