From 66ed198fff937cdd98d530f3ef3d1a46cbe79360 Mon Sep 17 00:00:00 2001
From: Pascal Wagler <Wandmalfarbe@users.noreply.github.com>
Date: Sat, 9 Feb 2019 22:54:19 +0100
Subject: [PATCH] Added support for the `subject` metadata variable to PDF.
 (#5289)

---
 MANUAL.txt                   | 2 +-
 data/templates/default.latex | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

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$