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.
This commit is contained in:
John MacFarlane 2015-11-20 14:26:12 -08:00
parent 769581dfe2
commit 4ac59af242

View file

@ -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$}