Consider the following two LaTeX source files:
First, manually producing a title using a new environment (eww):
\documentclass[a4paper,10pt]{article}
\parindent0cm%
\newenvironment*{mytitle}{\begin{LARGE}\bf}{\end{LARGE}\\[1.5ex]}%
\begin{document}
\begin{mytitle}This is a test document\end{mytitle}
\end{document}
Secondly, redefining \maketitle
using the titling
package:
\documentclass[a4paper,10pt]{article}
\parindent0cm%
\usepackage{titling}
\pretitle{\begin{LARGE}\bf}%
\posttitle{\end{LARGE}\\[1.5ex]}%
\preauthor{}%
\postauthor{}%
\predate{}%
\postdate{}%
\title{This is a test document}
\date{}
\begin{document}
\maketitle
\end{document}
Why does the second "proper" solution give substantially more vertical whitespace before the title? What can I do about it?
[ Context: I am turning a horrible "let's pretend LaTeX is a word processor" TeX template for a conference into a proper class, and I need to match the spacing. ]
pre
andpost
commands have an effect?