Keep the \author{} command even if author is not specified (#5961)
Otherwise there will be a LaTeX warning "No \author given" when the .tex file is compiled.
This does not affect spacing in the title block.
commitee44d44f20d2a06648efe72a6836c24a179c8146
authorYihui Xie <xie@yihui.name>
dateThu 5 Dec 2019, 12:22 (7 years ago)
parente7833c4
data/templates/default.latex−2
@@ -383,9 +383,7 @@ $else$
383383$endif$
384384\subtitle{$subtitle$}
385385$endif$
386−$if(author)$
387386\author{$for(author)$$author$$sep$ \and $endfor$}
388−$endif$
389387\date{$date$}
390388$if(beamer)$
391389$if(institute)$
test/lhs-test.latex+1
@@ -82,6 +82,7 @@
8282 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
8383\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
8484
85+\author{}
8586\date{}
8687
8788\begin{document}
test/lhs-test.latex+lhs+1
@@ -49,6 +49,7 @@
4949 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
5050\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
5151
52+\author{}
5253\date{}
5354
5455\begin{document}
test/writers-lang-and-dir.latex+1
@@ -78,6 +78,7 @@
7878 \newenvironment{LTR}{\beginL}{\endL}
7979\fi
8080
81+\author{}
8182\date{}
8283
8384\begin{document}