diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-12-10 02:25:44 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-12-10 02:26:28 +0100 |
commit | 6b43289e74928059924fa990caf9e90316985491 (patch) | |
tree | 7a9f236f44f632d3b37210917c2946c77150e00b | |
parent | 6a7541c5e9e044b680fd3fa38ddbb221ef32b085 (diff) |
Support subtitle (not done with documentclass paper).
-rw-r--r-- | template.tex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/template.tex b/template.tex index 8cdbd0f..3f8103d 100644 --- a/template.tex +++ b/template.tex @@ -131,6 +131,19 @@ $endif$ $if(title)$ \title{$title$} $if(subtitle)$ +% add subtitle in \maketitle, if not done already by documentclass "paper" +\IfFileExists{xifthen.sty}{% + \usepackage{xifthen} + \ifthenelse{\isnamedefined{subtitle}}{}{% + \def\@subtitle{} \def\subtitle##1{\gdef\@subtitle{##1}} + \IfFileExists{titling.sty}{% + \usepackage{titling} + \posttitle{\par\end{center}} % avoid immediate \vskip + \renewcommand{\maketitlehookb}{% + \begin{center}\Large \@subtitle \par\end{center}\vskip 0.5em} + }{} + } + }{} \subtitle{$subtitle$} $endif$ $if(author)$ |