git.iko.soy/typeable/pandoc
on master help sign in
Added PDF metadata (title,author) in LaTeX standalone + PDF output.

Closes #459.

commit7bc4dc37b26fe849f2df525c32f7149c10920480 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 25 Mar 2012, 12:09 (15 years ago) parenta2e5de1
5 files changed+21−1
src/Text/Pandoc/Writers/LaTeX.hs+2 templates+1−1 tests/lhs-test.latex+6 tests/lhs-test.latex+lhs+6 tests/writer.latex+6
src/Text/Pandoc/Writers/LaTeX.hs+2
@@ -134,6 +134,8 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do
134134 [ ("toc", if writerTableOfContents options then "yes" else "")
135135 , ("body", main)
136136 , ("title", titletext)
137+ , ("title-meta", stringify title)
138+ , ("author-meta", intercalate "; " $ map stringify authors)
137139 , ("date", dateText)
138140 , ("documentclass", if writerBeamer options
139141 then "beamer"
templates+1−1

Submodule changed.

tests/lhs-test.latex+6
@@ -39,10 +39,16 @@
3939 \usepackage[setpagesize=false, % page size defined by xetex
4040 unicode=false, % unicode breaks when used with xetex
4141 xetex,
42+ bookmarks=true,
43+ pdfauthor={},
44+ pdftitle={},
4245 colorlinks=true,
4346 linkcolor=blue]{hyperref}
4447\else
4548 \usepackage[unicode=true,
49+ bookmarks=true,
50+ pdfauthor={},
51+ pdftitle={},
4652 colorlinks=true,
4753 linkcolor=blue]{hyperref}
4854\fi
tests/lhs-test.latex+lhs+6
@@ -21,10 +21,16 @@
2121 \usepackage[setpagesize=false, % page size defined by xetex
2222 unicode=false, % unicode breaks when used with xetex
2323 xetex,
24+ bookmarks=true,
25+ pdfauthor={},
26+ pdftitle={},
2427 colorlinks=true,
2528 linkcolor=blue]{hyperref}
2629\else
2730 \usepackage[unicode=true,
31+ bookmarks=true,
32+ pdfauthor={},
33+ pdftitle={},
2834 colorlinks=true,
2935 linkcolor=blue]{hyperref}
3036\fi
tests/writer.latex+6
@@ -38,10 +38,16 @@
3838 \usepackage[setpagesize=false, % page size defined by xetex
3939 unicode=false, % unicode breaks when used with xetex
4040 xetex,
41+ bookmarks=true,
42+ pdfauthor={John MacFarlane; Anonymous},
43+ pdftitle={Pandoc Test Suite},
4144 colorlinks=true,
4245 linkcolor=blue]{hyperref}
4346\else
4447 \usepackage[unicode=true,
48+ bookmarks=true,
49+ pdfauthor={John MacFarlane; Anonymous},
50+ pdftitle={Pandoc Test Suite},
4551 colorlinks=true,
4652 linkcolor=blue]{hyperref}
4753\fi