diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-11-20 14:26:12 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-11-20 14:26:12 -0800 |
commit | 4ac59af2429d97c1bb1f54088453a97205c0fcdc (patch) | |
tree | 96be6aceb5f692f367e75e07ae2f3748488e600d | |
parent | 769581dfe27ec7385be34355f47d2a5ff3c1a3bb (diff) | |
download | pandoc-4ac59af2429d97c1bb1f54088453a97205c0fcdc.tar.gz |
latex: Use \subtitle command for subtitle, and give fallback defn.
The fallback definition is a no-op. In a class that does not
define `\subtitle`, the `subtitle` will not appear.
This changes earlier behavior, which was to add the subtitle
to the title. This had bad results with page headers etc.
-rw-r--r-- | default.latex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/default.latex b/default.latex index cae95759b..f4f2d629a 100644 --- a/default.latex +++ b/default.latex @@ -166,7 +166,11 @@ $if(dir)$ $endif$ $if(title)$ -\title{$title$$if(subtitle)$\\\vspace{0.5em}{\large $subtitle$}$endif$} +\title{$title$} +$endif$ +$if(subtitle)$ +\providecommand{\subtitle}[1]{} +\subtitle{$subtitle$} $endif$ $if(author)$ \author{$for(author)$$author$$sep$ \and $endfor$} |