Revert "LaTeX template: move title, author, date up to top of preamble."
This reverts commit cc088687b4
and PR #7295.
This fixes issues people had when using LaTeX commands defined later
in the preamble (or in some cases UTF-8 text) in the title or author
fields. Closes #7422.
This commit is contained in:
parent
e00e5a4cc2
commit
972db3cdca
5 changed files with 42 additions and 42 deletions
|
@ -36,35 +36,6 @@ $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{%
|
||||
|
@ -452,6 +423,35 @@ $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
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
%
|
||||
\documentclass[
|
||||
]{article}
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{lmodern}
|
||||
\usepackage{iftex}
|
||||
|
@ -88,6 +85,9 @@
|
|||
\usepackage{selnolig} % disable illegal ligatures
|
||||
\fi
|
||||
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\hypertarget{lhs-test}{%
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
%
|
||||
\documentclass[
|
||||
]{article}
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{lmodern}
|
||||
\usepackage{iftex}
|
||||
|
@ -55,6 +52,9 @@
|
|||
\usepackage{selnolig} % disable illegal ligatures
|
||||
\fi
|
||||
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\hypertarget{lhs-test}{%
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
%
|
||||
\documentclass[
|
||||
]{article}
|
||||
\title{Pandoc Test Suite}
|
||||
\author{John MacFarlane \and Anonymous}
|
||||
\date{July 17, 2006}
|
||||
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{lmodern}
|
||||
\usepackage{iftex}
|
||||
|
@ -71,6 +67,10 @@
|
|||
\usepackage{selnolig} % disable illegal ligatures
|
||||
\fi
|
||||
|
||||
\title{Pandoc Test Suite}
|
||||
\author{John MacFarlane \and Anonymous}
|
||||
\date{July 17, 2006}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
\documentclass[
|
||||
english,
|
||||
]{article}
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{lmodern}
|
||||
\usepackage{iftex}
|
||||
|
@ -87,6 +84,9 @@
|
|||
\newenvironment{LTR}{\beginL}{\endL}
|
||||
\fi
|
||||
|
||||
\author{}
|
||||
\date{}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\hypertarget{empty-divs-and-spans}{%
|
||||
|
|
Loading…
Reference in a new issue