Skip to content

Commit ed4673d

Browse files
committed
pdf_document: ensure that no center environment is created if no title, author, or date is specified
1 parent 8c8720f commit ed4673d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

inst/rmd/latex/default.tex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,22 @@
144144

145145
\begin{document}
146146

147-
\begin{center}
148147
$if(title)$
148+
\begin{center}
149149
\huge $title$ \\[0.2cm]
150+
\end{center}
150151
$endif$
151152
$if(author)$
153+
\begin{center}
152154
\large \emph{$for(author)$$author$$sep$ \and $endfor$}\\[0.1cm]
155+
\end{center}
153156
$endif$
154157
$if(date)$
158+
\begin{center}
155159
\large \emph{$date$} \\
160+
\end{center}
156161
$endif$
157162
\normalsize
158-
\end{center}
159163

160164
$if(abstract)$
161165
\begin{abstract}

0 commit comments

Comments
 (0)