git.iko.soy/typeable/pandoc
on master help sign in
Explain how to get `subtitle` to work with latex article etc.
ad3ef55John MacFarlane
README+12−2
@@ -1023,8 +1023,9 @@ depending on the output format, but include metadata fields as well as the follo
1023
1023
1024`subtitle`
1024`subtitle`
1025: document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx;
1025: document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx;
1026− renders in LaTeX only when using a document class that supports `\subtitle`,
1026+ renders in LaTeX only when using a document class that supports
1027− such as `beamer` or the [KOMA-Script] series (`scrartcl`, `scrreprt`, `scrbook`)
1027+ `\subtitle`, such as `beamer` or the [KOMA-Script] series (`scrartcl`,
1028+ `scrreprt`, `scrbook`).[^subtitle]
1028
1029
1029`abstract`
1030`abstract`
1030: document summary, included in LaTeX, ConTeXt, AsciiDoc, and Word docx
1031: 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
1056`meta-json`
1057`meta-json`
1057: JSON representation of all of the document's metadata
1058: JSON representation of all of the document's metadata
1058
1059
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+
1059Language variables
1069Language variables
1060------------------
1070------------------
1061
1071