[Tex/LaTex] How to right-align a title (without creating a complete custom title page)

horizontal alignmenttitles

I suppose this is a simple matter, but I'm still finding my way around where to put things in LaTeX.

I would like to right-align (i.e. flush to right) the contents of an article's title page. By default it's centered. My preamble (leaving out other stuff) is basic:

\documentclass[12pt,titlepage]{article}
\title{My Title}
\author{This is me}
\date{Aug 2010}

I read in the LaTeX wikibook (wonderful resource) that one way to do that is to create a custom title within

\begin{titlepage} ... 
\begin{flushright}
% title elements here
\end{flushright}
\end{titlepage}. 

But this is a heavy-handed solution and I hope there is a simpler way.

Thank you.

Best Answer

A dirty solution would be:

\begingroup
\let\center\flushright
\let\endcenter\endflushright
\maketitle
\endgroup

Then it would be right aligned, the author, as it is in a table, not quite. Here you can just define the author like this: \author{This is me\hspace*{-\tabcolsep}}.

But I personally would use the titling package, as frabjous already suggested.