git.iko.soy/typeable/pandoc
on master help sign in
LaTeX template: move title, author, date up to top of preamble.
cc08868John MacFarlane
data/templates/default.latex+29−29
@@ -36,6 +36,35 @@ $for(classoption)$
36 $classoption$$sep$,
36 $classoption$$sep$,
37$endfor$
37$endfor$
38]{$documentclass$}
38]{$documentclass$}
39+$if(title)$
40+\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
41+$endif$
42+$if(subtitle)$
43+$if(beamer)$
44+$else$
45+\usepackage{etoolbox}
46+\makeatletter
47+\providecommand{\subtitle}[1]{% add subtitle to \maketitle
48+ \apptocmd{\@title}{\par {\large #1 \par}}{}{}
49+}
50+\makeatother
51+$endif$
52+\subtitle{$subtitle$}
53+$endif$
54+\author{$for(author)$$author$$sep$ \and $endfor$}
55+\date{$date$}
56+$if(beamer)$
57+$if(institute)$
58+\institute{$for(institute)$$institute$$sep$ \and $endfor$}
59+$endif$
60+$if(titlegraphic)$
61+\titlegraphic{\includegraphics{$titlegraphic$}}
62+$endif$
63+$if(logo)$
64+\logo{\includegraphics{$logo$}}
65+$endif$
66+$endif$
67+
39$if(beamer)$
68$if(beamer)$
40$if(background-image)$
69$if(background-image)$
41\usebackgroundtemplate{%
70\usebackgroundtemplate{%
@@ -423,35 +452,6 @@ $if(csquotes)$
423\usepackage{csquotes}
452\usepackage{csquotes}
424$endif$
453$endif$
425
454
426−$if(title)$
427−\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
428−$endif$
429−$if(subtitle)$
430−$if(beamer)$
431−$else$
432−\usepackage{etoolbox}
433−\makeatletter
434−\providecommand{\subtitle}[1]{% add subtitle to \maketitle
435− \apptocmd{\@title}{\par {\large #1 \par}}{}{}
436−}
437−\makeatother
438−$endif$
439−\subtitle{$subtitle$}
440−$endif$
441−\author{$for(author)$$author$$sep$ \and $endfor$}
442−\date{$date$}
443−$if(beamer)$
444−$if(institute)$
445−\institute{$for(institute)$$institute$$sep$ \and $endfor$}
446−$endif$
447−$if(titlegraphic)$
448−\titlegraphic{\includegraphics{$titlegraphic$}}
449−$endif$
450−$if(logo)$
451−\logo{\includegraphics{$logo$}}
452−$endif$
453−$endif$
454−
455\begin{document}
455\begin{document}
456$if(has-frontmatter)$
456$if(has-frontmatter)$
457\frontmatter
457\frontmatter
test/lhs-test.latex+3−3
@@ -4,6 +4,9 @@
4%
4%
5\documentclass[
5\documentclass[
6]{article}
6]{article}
7+\author{}
8+\date{}
9+
7\usepackage{amsmath,amssymb}
10\usepackage{amsmath,amssymb}
8\usepackage{lmodern}
11\usepackage{lmodern}
9\usepackage{iftex}
12\usepackage{iftex}
@@ -85,9 +88,6 @@
85 \usepackage{selnolig} % disable illegal ligatures
88 \usepackage{selnolig} % disable illegal ligatures
86\fi
89\fi
87
90
88−\author{}
89−\date{}
90−
91\begin{document}
91\begin{document}
92
92
93\hypertarget{lhs-test}{%
93\hypertarget{lhs-test}{%
test/lhs-test.latex+lhs+3−3
@@ -4,6 +4,9 @@
4%
4%
5\documentclass[
5\documentclass[
6]{article}
6]{article}
7+\author{}
8+\date{}
9+
7\usepackage{amsmath,amssymb}
10\usepackage{amsmath,amssymb}
8\usepackage{lmodern}
11\usepackage{lmodern}
9\usepackage{iftex}
12\usepackage{iftex}
@@ -52,9 +55,6 @@
52 \usepackage{selnolig} % disable illegal ligatures
55 \usepackage{selnolig} % disable illegal ligatures
53\fi
56\fi
54
57
55−\author{}
56−\date{}
57−
58\begin{document}
58\begin{document}
59
59
60\hypertarget{lhs-test}{%
60\hypertarget{lhs-test}{%
test/writer.latex+4−4
@@ -4,6 +4,10 @@
4%
4%
5\documentclass[
5\documentclass[
6]{article}
6]{article}
7+\title{Pandoc Test Suite}
8+\author{John MacFarlane \and Anonymous}
9+\date{July 17, 2006}
10+
7\usepackage{amsmath,amssymb}
11\usepackage{amsmath,amssymb}
8\usepackage{lmodern}
12\usepackage{lmodern}
9\usepackage{iftex}
13\usepackage{iftex}
@@ -67,10 +71,6 @@
67 \usepackage{selnolig} % disable illegal ligatures
71 \usepackage{selnolig} % disable illegal ligatures
68\fi
72\fi
69
73
70−\title{Pandoc Test Suite}
71−\author{John MacFarlane \and Anonymous}
72−\date{July 17, 2006}
73−
74\begin{document}
74\begin{document}
75\maketitle
75\maketitle
76
76
test/writers-lang-and-dir.latex+3−3
@@ -5,6 +5,9 @@
5\documentclass[
5\documentclass[
6 english,
6 english,
7]{article}
7]{article}
8+\author{}
9+\date{}
10+
8\usepackage{amsmath,amssymb}
11\usepackage{amsmath,amssymb}
9\usepackage{lmodern}
12\usepackage{lmodern}
10\usepackage{iftex}
13\usepackage{iftex}
@@ -84,9 +87,6 @@
84 \newenvironment{LTR}{\beginL}{\endL}
87 \newenvironment{LTR}{\beginL}{\endL}
85\fi
88\fi
86
89
87−\author{}
88−\date{}
89−
90\begin{document}
90\begin{document}
91
91
92\hypertarget{empty-divs-and-spans}{%
92\hypertarget{empty-divs-and-spans}{%