From 7bc4dc37b26fe849f2df525c32f7149c10920480 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 25 Mar 2012 12:09:59 -0700 Subject: Added PDF metadata (title,author) in LaTeX standalone + PDF output. Closes #459. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Text/Pandoc') 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" -- cgit v1.2.3