summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template.tex13
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)$