Explain how to get subtitle
to work with latex article etc.
Thanks to Andrew Dunning.
This commit is contained in:
parent
efb34a125e
commit
ad3ef55031
1 changed files with 12 additions and 2 deletions
14
README
14
README
|
@ -1023,8 +1023,9 @@ depending on the output format, but include metadata fields as well as the follo
|
||||||
|
|
||||||
`subtitle`
|
`subtitle`
|
||||||
: document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx;
|
: document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx;
|
||||||
renders in LaTeX only when using a document class that supports `\subtitle`,
|
renders in LaTeX only when using a document class that supports
|
||||||
such as `beamer` or the [KOMA-Script] series (`scrartcl`, `scrreprt`, `scrbook`)
|
`\subtitle`, such as `beamer` or the [KOMA-Script] series (`scrartcl`,
|
||||||
|
`scrreprt`, `scrbook`).[^subtitle]
|
||||||
|
|
||||||
`abstract`
|
`abstract`
|
||||||
: document summary, included in LaTeX, ConTeXt, AsciiDoc, and Word docx
|
: 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`
|
`meta-json`
|
||||||
: JSON representation of all of the document's metadata
|
: 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
|
Language variables
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue