summaryrefslogtreecommitdiff
path: root/pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-09-01 15:54:48 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-09-01 15:54:48 -0700
commit39cdafd50598d58daad5cb6483f19268f7a06316 (patch)
treec22e00a7f832525452cad59caa72c679721b9204 /pandoc.hs
parent53f61019e27dcc14112136609a72b27e17e0eb06 (diff)
Restore --bibliography, --csl, --citation-abbreviations.
These are now implemented as: --bibliography FILE => --metadata bibliography=FILE --filter pandoc-citeproc --csl FILE => --metadata csl=FILE --citation-abbreviations FILE => --metadata csl-abbreviations=FILE
Diffstat (limited to 'pandoc.hs')
-rw-r--r--pandoc.hs27
1 files changed, 27 insertions, 0 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 57840c2ef..0d493d403 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -655,6 +655,33 @@ options =
"PROGRAM")
"" -- "Name of latex program to use in generating PDF"
+ , Option "" ["bibliography"]
+ (ReqArg
+ (\arg opt ->
+ return opt{ optMetadata = ("bibliography",arg) :
+ optMetadata opt
+ , optPlugins = externalFilter "pandoc-citeproc"
+ : optPlugins opt
+ })
+ "FILE")
+ ""
+
+ , Option "" ["csl"]
+ (ReqArg
+ (\arg opt ->
+ return opt{ optMetadata = ("csl",arg) :
+ optMetadata opt })
+ "FILE")
+ ""
+
+ , Option "" ["citation-abbreviations"]
+ (ReqArg
+ (\arg opt ->
+ return opt{ optMetadata = ("csl-abbreviations",arg) :
+ optMetadata opt })
+ "FILE")
+ ""
+
, Option "" ["natbib"]
(NoArg
(\opt -> return opt { optCiteMethod = Natbib }))