Latex template: only show \author if there are some...
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1789 788f1e2b-df1e-0410-8736-df70ead52e1b
commita5110bec7b4cd0c5fc22d0cb25655fc9f919a4aa
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateSat 2 Jan 2010, 21:05 (17 years ago)
parent945ae2b
templates/latex.template+2
@@ -64,7 +64,9 @@ $endfor$
6464$if(title)$
6565\title{$title$}
6666$endif$
67+$if(author)$
6768\author{$for(author)$$author$$sep$\\$endfor$}
69+$endif$
6870$if(date)$
6971\date{$date$}
7072$endif$
tests/lhs-test.latex−1
@@ -6,7 +6,6 @@
66\setlength{\parskip}{6pt plus 2pt minus 1pt}
77\setcounter{secnumdepth}{0}
88
9−\author{}
109
1110\begin{document}
1211
tests/lhs-test.latex+lhs−1
@@ -8,7 +8,6 @@
88\setlength{\parskip}{6pt plus 2pt minus 1pt}
99\setcounter{secnumdepth}{0}
1010
11−\author{}
1211
1312\begin{document}
1413