Skip to content

Commit

Permalink
Add subtitle that includes version information
Browse files Browse the repository at this point in the history
Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge committed Mar 10, 2022
1 parent 535b31c commit 357bf8c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/spec-template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,19 @@
$if(title)$
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
$endif$
$if(subtitle)$
$if(beamer)$
$else$
\usepackage{etoolbox}
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
\apptocmd{\@title}{\par {\large \emph{#1} \par}}{}{}
}
\makeatother
$endif$
$if(version)$
\subtitle{Version $version$}
$endif$
$if(subtitle)$
\subtitle{$subtitle$}
$endif$
\author{$for(author)$$author$$sep$ \and $endfor$}
Expand Down

0 comments on commit 357bf8c

Please sign in to comment.