# Org Export Latex: Defining Custom Classes for a Title Page From #+TITLE, etc keywords

I stumbled upon this archived email: https://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg01281.html and a suggestion is to create a custom title page that picks up the title, author, and date from the org file. There is a code block in the post that contains the syntax:

 address@hidden
\newpage
\null
\begin{center}%
\let \footnote \thanks
{\usebox{\FIRM}}%
\vskip 3em%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{c}%
\end{tabular}\par}%
\vskip 1em%
\end{center}%
\par
\vskip 1.5em}


, but the post does not specify a way to add this to the org-latex-classes, on top of that, the post is really old and not up to date with the org-version I use (9.1.9). There are several posts in here that ask how to add custom classes to latex but I'm trying to do both add a custom title page that reads from the org metadata latex headers. Given that I have this written in my init.el:

;; Org Mode Custom Classes for Latex

'("article"
"\\documentclass{article}"
\newpage
\null
\begin{center}%
\let \footnote \thanks
{\usebox{\FIRM}}%
\vskip 3em%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{c}%
\end{tabular}\par}%
\vskip 1em%
\end{center}%
\par
\vskip 1.5em}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))


and that I am new to org-mode. How can I accomplish this by editing an existing org file that contains this:

#+TITLE: testing out org mode export latex
#+AUTHOR: me
#+EMAIL: me@meme.com
#+LANGUAGE: es
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [12pt,titlepage]
#+EXPORT_FILE_NAME: export_with_custom_title
#+OPTIONS: f:t toc:nil |:t
#+STARTUP: showall

#+BEGIN_ABSTRACT
lorem ipsum lorem ipsum ....
#+END_ABSTRACT
#+BEGIN_LATEX latex
\thispagestyle{empty}
\newpage
\doublespacing
#+END_LATEX
#+BEGIN_LATEX latex
\singlespacing
\thispagestyle{empty}
\newpage
\setcounter{page}{1}
#+END_LATEX


So, how do I add a custom page title that modifies my title but retains the structure I have in my current org file? So, I am thinking that what I am trying to do is modify the custom article class so that it modifies only the title section by using #+TITLE:..., #+EMAIL:.. and #+AUTHOR:.. but keeps the rest of the edits.
• I agree. This is very specific to Org Mode. However, I have narrowed down to editing custom-variables org-latex-hyperref-template and org-latex-title-command. i'll open another question just about org-latex-title-command – avocadoras Jan 23 at 0:27