git.iko.soy/typeable/pandoc
on master help sign in
Explain how to get `subtitle` to work with latex article etc.

Thanks to Andrew Dunning.

commitad3ef5503183c0cd23d26e0fd48be5b7c219d0d5 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 18 Dec 2015, 23:47 (11 years ago) parentefb34a1
1 file changed+12−2
README+12−2
README+12−2
@@ -1023,8 +1023,9 @@ depending on the output format, but include metadata fields as well as the follo
10231023
10241024`subtitle`
10251025: document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx;
1026− renders in LaTeX only when using a document class that supports `\subtitle`,
1027− such as `beamer` or the [KOMA-Script] series (`scrartcl`, `scrreprt`, `scrbook`)
1026+ renders in LaTeX only when using a document class that supports
1027+ `\subtitle`, such as `beamer` or the [KOMA-Script] series (`scrartcl`,
1028+ `scrreprt`, `scrbook`).[^subtitle]
10281029
10291030`abstract`
10301031: 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
10561057`meta-json`
10571058: JSON representation of all of the document's metadata
10581059
1060+[^subtitle]: To make `subtitle` work with other LaTeX
1061+ document classes, you can add the following to `header-includes`:
1062+
1063+ \providecommand{\subtitle}[1]{%
1064+ \usepackage{titling}
1065+ \posttitle{%
1066+ \par\large#1\end{center}}
1067+ }
1068+
10591069Language variables
10601070------------------
10611071