Add a version number to the title of a LaTeX document

physicsmichael picture physicsmichael · Apr 14, 2010 · Viewed 29.7k times · Source

The title section of my LaTeX documents usually look like

\title{Title}
\author{Me}
%\date{}      %// Today's date will appear when this is commented out.

\begin{document}
\maketitle

I'd really like to add another line in the title section for a version number:

\title{Title}
\author{Me}
\version{v1.2}
%\date{}      %// Today's date will appear when this is commented out.

\begin{document}
\maketitle

It doesn't necessarily have to be a command named version, but how can I get a version number to appear after the date (which is after the author)? I can manually set the version number.

So:

Title

Me

4/13/2010

v1.2

Answer

physicsmichael picture physicsmichael · Apr 20, 2010

The easiest way to do exactly what I wanted to do was to simply use:

\title{Title}
\author{Me}
\date{\today\\v1.2}

\begin{document}
\maketitle