Modyfying the \maketitle
command with the titling
package is challenging, as the documentation has very little explanation and examples to let users like me understand what to do.
This gets even trickier when we have to follow style sheets telling us to have line spacing above and below parts of the title with so-and-so many points.
So this is what I now have to implement:
- The title in 18bp, linespacing 18bp. Centered.
Ok, so this I can do, I think:
\usepackage{titling}
\pretitle{\begin{center}\fontsize{18bp}{18bp}\selectfont}
\posttitle{\par\end{center}}
- One 18bp blank line.
Hm? Is that taken care of with the \fontsize{18bp}{*18bp*}\selectfont}
above? I'm not sure.
- The author name in 14bp, linespacing 14bp. Centered.
Ok, as above:
\preauthor{\begin{center}\fontsize{14bp}{14bp}\selectfont}
\postauthor{\par\end{center}}
- Two 12bp blank lines.
Yikes! Can I do \postauthor{\par\end{center}\vspace{24bp}}
?
That's it. No date. So I add this:
\predate{}
\date{}
\postdate{}
Ok, so now in theory I should be done. A MWE below. I clearly do not have two blank 12bp lines between the author name and the section heading. How can I implement these things accurately?
\documentclass{article}
\usepackage{titling}
\pretitle{\begin{center}\fontsize{18bp}{18bp}\selectfont}
\posttitle{\par\end{center}}
\preauthor{\begin{center}\fontsize{14bp}{14bp}\selectfont}
\postauthor{\par\end{center}\vspace{24bp}}
\predate{}
\date{}
\postdate{}
\begin{document}
\title{This is my first article}
\author{Sverre}
\maketitle
\section{My first section}
\end{document}
center
introduces some extra vertical space.titling
didn't accept\centering
(or at least I wasn't able to figure out how to do it).