aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-03-25 12:09:59 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-03-25 12:10:43 -0700
commit7bc4dc37b26fe849f2df525c32f7149c10920480 (patch)
treed77c95ad7ee9861869dff134eeb3d22f1dc7b31c /src/Text/Pandoc
parenta2e5de1d1180c196f6b4bdfdfcadc80911e2b7c6 (diff)
downloadpandoc-7bc4dc37b26fe849f2df525c32f7149c10920480.tar.gz
Added PDF metadata (title,author) in LaTeX standalone + PDF output.
Closes #459.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 0a6f8669c..9536a3c87 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -134,6 +134,8 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
[ ("toc", if writerTableOfContents options then "yes" else "")
, ("body", main)
, ("title", titletext)
+ , ("title-meta", stringify title)
+ , ("author-meta", intercalate "; " $ map stringify authors)
, ("date", dateText)
, ("documentclass", if writerBeamer options
then "beamer"