aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-18 23:47:25 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-19 00:00:04 -0800
commitad3ef5503183c0cd23d26e0fd48be5b7c219d0d5 (patch)
treeb2307ef937970fa74e91e6d7eef47910ddbde8a7
parentefb34a125e093ba0c3565d8cba004a633eae393b (diff)
downloadpandoc-ad3ef5503183c0cd23d26e0fd48be5b7c219d0d5.tar.gz
Explain how to get `subtitle` to work with latex article etc.
Thanks to Andrew Dunning.
-rw-r--r--README14
1 files changed, 12 insertions, 2 deletions
diff --git a/README b/README
index 952952d6a..aa56fbde7 100644
--- a/README
+++ b/README
@@ -1023,8 +1023,9 @@ depending on the output format, but include metadata fields as well as the follo
`subtitle`
: document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx;
- renders in LaTeX only when using a document class that supports `\subtitle`,
- such as `beamer` or the [KOMA-Script] series (`scrartcl`, `scrreprt`, `scrbook`)
+ renders in LaTeX only when using a document class that supports
+ `\subtitle`, such as `beamer` or the [KOMA-Script] series (`scrartcl`,
+ `scrreprt`, `scrbook`).[^subtitle]
`abstract`
: document summary, included in LaTeX, ConTeXt, AsciiDoc, and Word docx
@@ -1056,6 +1057,15 @@ depending on the output format, but include metadata fields as well as the follo
`meta-json`
: JSON representation of all of the document's metadata
+[^subtitle]: To make `subtitle` work with other LaTeX
+ document classes, you can add the following to `header-includes`:
+
+ \providecommand{\subtitle}[1]{%
+ \usepackage{titling}
+ \posttitle{%
+ \par\large#1\end{center}}
+ }
+
Language variables
------------------