\documentclass{article} \usepackage[utf8]{inputenc}
\begin{document} \begin{titlepage}
\title{AAAAAAAAAAAAAAAAAAAAAAA} \author{CCCCC
\\ University of sdfsdfsdf} \date{December 1, 2016}
\null \vfill \centering{BBBBBBBBBBBBBBB}
\maketitle \end{titlepage}
\section*{Preface}
\end{document}
For some reason, BBBBBBBBBBBBBB is at the bottom of the first page of the document. And AAAAAAAAAAA is on the title page (labelled as Page 2).
Can someone please suggest to me how I should fix this?
Thanks!
\vfillandAAAAAAAAAAbeing on the title page is as expected since by using\titleyou are asking LaTeX to put it on the title page. – A Feldman Nov 30 '16 at 01:56titlepageenvironment and\maketitleare different things. With this code you have a first title page with justBBBBBB…at the bottom, and a second title page, made by\maketitle. Further,\title,\author,\dateshould be in the preamble. What you need is thetitlingpackage, which lets you customise the result of the `\maketitle`` command. – Bernard Nov 30 '16 at 01:56titlingpagewhich is something in-between ;). – cfr Nov 30 '16 at 02:50