[Tex/LaTex] Alternative for maketitle and titlepage

titles

Is there another alternative for maketitle than \begin{titlepage}...\end{titlepage}?

The latter doesn't work for me since I am working with the documentclass article and I dont want the title on an extra page.

In fact I just want the title in 12pt bold font at the very top of my document, under that my name, after that list of contents. But all at the very first page.

The main article could also start at the first page.

What are my options?

Best Answer

Quick hack: simply place the elements manually.

\documentclass{article}

\title{text}
\author{names}

\begin{document}

\makeatletter
\begin{center}

{\fontsize{12pt}{14pt}\selectfont\bfseries\@title\par}

\@author
\end{center}
\makeatother

\tableofcontents
\section{section}

test
\end{document}