aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-01-03 10:11:21 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-01-03 10:11:21 -0800
commit9ae10b43524e85fb90273f99e307da66607293c7 (patch)
tree9b549674eb70756129197eaa0f061bd7afb3c170
parent93eac713837083d92df44036aa04fb44975eb18b (diff)
downloadpandoc-9ae10b43524e85fb90273f99e307da66607293c7.tar.gz
The `--bibliography` option now sets the `biblio-files` variable.
So, if you're using `--natbib` or `--biblatex`, you can just use `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
-rw-r--r--pandoc.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 2c81db9f2..e49b3b9cf 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -667,6 +667,9 @@ options =
(\arg opt -> return opt{ optMetadata = addMetadata
"bibliography" (readMetaValue arg)
$ optMetadata opt
+ , optVariables =
+ ("biblio-files", dropExtension arg) :
+ optVariables opt
})
"FILE")
""