aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-16 14:35:13 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-16 14:35:13 -0700
commitcc088687b4013c2b8b744eb337ed04fc63f315f2 (patch)
treedc27a23bf4a1e5b55cda2933b3ed87d2c69db678 /data
parentd92622ba3cae5ced69a256472d367a53fc5878a1 (diff)
downloadpandoc-cc088687b4013c2b8b744eb337ed04fc63f315f2.tar.gz
LaTeX template: move title, author, date up to top of preamble.
This allows header-includes to use them, and puts them in a position where you can see them immediately. Closes #7295.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex58
1 files changed, 29 insertions, 29 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 04784b971..61402c605 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -36,6 +36,35 @@ $for(classoption)$
$classoption$$sep$,
$endfor$
]{$documentclass$}
+$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}}{}{}
+}
+\makeatother
+$endif$
+\subtitle{$subtitle$}
+$endif$
+\author{$for(author)$$author$$sep$ \and $endfor$}
+\date{$date$}
+$if(beamer)$
+$if(institute)$
+\institute{$for(institute)$$institute$$sep$ \and $endfor$}
+$endif$
+$if(titlegraphic)$
+\titlegraphic{\includegraphics{$titlegraphic$}}
+$endif$
+$if(logo)$
+\logo{\includegraphics{$logo$}}
+$endif$
+$endif$
+
$if(beamer)$
$if(background-image)$
\usebackgroundtemplate{%
@@ -423,35 +452,6 @@ $if(csquotes)$
\usepackage{csquotes}
$endif$
-$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}}{}{}
-}
-\makeatother
-$endif$
-\subtitle{$subtitle$}
-$endif$
-\author{$for(author)$$author$$sep$ \and $endfor$}
-\date{$date$}
-$if(beamer)$
-$if(institute)$
-\institute{$for(institute)$$institute$$sep$ \and $endfor$}
-$endif$
-$if(titlegraphic)$
-\titlegraphic{\includegraphics{$titlegraphic$}}
-$endif$
-$if(logo)$
-\logo{\includegraphics{$logo$}}
-$endif$
-$endif$
-
\begin{document}
$if(has-frontmatter)$
\frontmatter