Skip to content

Commit

Permalink
Switched to titling package and maketitle for latex
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Sep 14, 2014
1 parent dd26b68 commit 10f2085
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions inst/rmd/latex/default.tex
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@
\fi
$endif$

%%% Change title format to be more compact
\usepackage{titling}
\setlength{\droptitle}{-2em}
\pretitle{\vspace{\droptitle}\centering\huge}
\posttitle{\par}
\preauthor{\centering\large\emph}
\postauthor{\par}
\predate{\centering\large\emph}
\postdate{\par}

$if(title)$
\title{$title$}
$endif$
Expand All @@ -142,24 +152,10 @@
$header-includes$
$endfor$


\begin{document}

$if(title)$
\begin{center}
\huge $title$ \\[0.2cm]
\end{center}
$endif$
$if(author)$
\begin{center}
\large \emph{$for(author)$$author$$sep$ \and $endfor$}\\[0.1cm]
\end{center}
$endif$
$if(date)$
\begin{center}
\large \emph{$date$} \\
\end{center}
$endif$
\normalsize
\maketitle

$if(abstract)$
\begin{abstract}
Expand Down

0 comments on commit 10f2085

Please sign in to comment.