I want to add a front cover for my Org document which will export as a PDF (#+LaTeX_CLASS: article
). I don't want to modify my org-latex-classes
and apply globally.
I tried to add the following block before first outline of the Org document, but it will insert the cover under the contents.
Is there any way to insert a LaTeX block to generate front cover for an individual Org article?
#+BEGIN_LaTeX latex
\newcommand*{\titleGP}{\begingroup % Create the command for including the title page in the document
\centering % Center all text
\vspace*{\baselineskip} % White space at the top of the page
\rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % Thick horizontal line
\rule{\textwidth}{0.4pt}\\[\baselineskip] % Thin horizontal line
{\LARGE THE BIG BOOK\\ OF \\[0.3\baselineskip] \LaTeX ~TEMPLATES}\\[0.2\baselineskip] % Title
\rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % Thin horizontal line
\rule{\textwidth}{1.6pt}\\[\baselineskip] % Thick horizontal line
\scshape % Small caps
A number of fascinating and life-changing templates \\ % Tagline(s) or further description
presented in a clear and useable way \\[\baselineskip] % Tagline(s) or further description
New Zealand, 2011--2012\par % Location and year
\vspace*{2\baselineskip} % Whitespace between location/year and editors
Edited by \\[\baselineskip]
{\Large JOHN SMITH \\ JANE SMITH \\ JAMES SMITH\par} % Editor list
{\itshape The University of California \\ Berkeley\par} % Editor affiliation
\vfill % Whitespace between editor names and publisher logo
{\scshape 2012} \\[0.3\baselineskip] % Year published
{\large THE PUBLISHER}\par % Publisher
\endgroup}
\titleGP % This command includes the title page
#+END_LaTeX
org-latex-title-command
to include\titleGP
which should be loaded in the preamble.