Is it at all possible to set default options for pandoc? For example, I always want to use xelatex to generate PDFs, and as far as I can tell, my options for doing so are to pass --latex-engine=xelatex
to every invocation of pandoc, or to write a wrapper script that just calls pandoc with that option.
Both of these seem suboptimal to me, and nearly every other command-line program has ways to get around this. Sometimes it's done with an environment variable in the shell (something like setting PANDOC_OPTS="--latex-engine=xelatex"
), and other times it's a configuration file (ala ~/.gitconfig
or the like). I know pandoc has a data directory at ~/.pandoc
, but from my reading of the documentation there is no way to do this.
alias
in your~/.bash_profile
or similar file... – Knish