git.iko.soy/typeable/pandoc
on master help sign in
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.

commit4ac59af2429d97c1bb1f54088453a97205c0fcdc authorJohn MacFarlane <jgm@berkeley.edu> dateFri 20 Nov 2015, 14:26 (11 years ago) parent769581d
1 file changed+5−1
default.latex+5−1
default.latex+5−1
@@ -166,7 +166,11 @@ $if(dir)$
166166$endif$
167167
168168$if(title)$
169−\title{$title$$if(subtitle)$\\\vspace{0.5em}{\large $subtitle$}$endif$}
169+\title{$title$}
170+$endif$
171+$if(subtitle)$
172+\providecommand{\subtitle}[1]{}
173+\subtitle{$subtitle$}
170174$endif$
171175$if(author)$
172176\author{$for(author)$$author$$sep$ \and $endfor$}