I'm using the latest org-plus-contrib package from the org ELPA archive under emacs 24.5 (Linux and OSX). I needed to have a custom title which includes a logo PNG in documents I export from org to PDF. I use the hitec document class as the bae article class.
I don't always need to generate this custom title, so rather than define a new custom class, I add the following to one of my org template files I use when creating a new document. The solution mostly works, but I'm not sure if my approach is really that good and would like to get some feedback or suggestions.
My requirement is to have the title include a PNG logo on the left and have the title, subtitle, author and date on the right (flushright). This is what I have in my latex preamble
\makeatletter
\def\@maketitle{
\begin{minipage}[c][4cm][t]{\linewidth}
\begin{minipage}[t][4cm][c]{4cm}
\includegraphics{/home/tcross/Pictures/unelogo_medium.png}
\end{minipage}
\begin{minipage}[t][5cm][c]{10cm}
\flushright
\Large \textbf{\@title} \\
\vspace{16pt}
\large \@author \\
\normalsize \@date
\end{minipage}
\end{minipage}}
\makeatother
What I do is define a minipage and then inside this minipage, I define two more minipages which are set to be side by side with the left minipage containing the logo and the right minipage containing the title, author, date etc.
This mostly works. I do need to tweak the left minipage a little to get the logo positioned closer to the left margin, but apart from that it seems to work OK (so far).
What I'm wondering is whether this is the best way to structure this title and logo requirement? I thought about using other possible techniques, such as a frame box etc, but reading the manual, there seemed to be other restrictions which might have been a problem.
I've been a LaTeX user for a long time, but up until now, I've just used the default styles. This is the first time I've attempted to modify something like the article title page style in a generic manner which wold work for all my future org documents which need this type of title. I don't necessarily understand exactly how this all works - I got to this point by looking at existing style files and doing a git of googling etc.
org-mode
question, or is it just about latex? You might get better answers from the TeX stackexchange site.