aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Wagler <Wandmalfarbe@users.noreply.github.com>2019-02-09 22:54:19 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2019-02-09 13:54:19 -0800
commit66ed198fff937cdd98d530f3ef3d1a46cbe79360 (patch)
treebfd020a71a37499929c40277b5c6b8eb9d7d8951
parentba61dc35d82daaefc60eaaf0f2e5401519a457bc (diff)
downloadpandoc-66ed198fff937cdd98d530f3ef3d1a46cbe79360.tar.gz
Added support for the `subject` metadata variable to PDF. (#5289)
-rw-r--r--MANUAL.txt2
-rw-r--r--data/templates/default.latex3
2 files changed, 4 insertions, 1 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 70192595a..19905a849 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -1394,7 +1394,7 @@ Metadata variables
and AsciiDoc metadata; repeat as for `author`, above
`subject`
-: document subject, included in ODT, docx and pptx metadata
+: document subject, included in ODT, PDF, docx and pptx metadata
`description`
: document description, included in ODT, docx and pptx metadata. Some
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 8a37e7e7f..bd089cd1c 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -205,6 +205,9 @@ $endif$
$if(author-meta)$
pdfauthor={$author-meta$},
$endif$
+$if(subject)$
+ pdfsubject={$subject$},
+$endif$
$if(keywords)$
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$endif$