# Dynamic signature/date line

I'm trying to create a signature and date line in a document. I need the date line to always be in the same spot on the page no matter what name is under the signature line, such as:


----------------------   ----------------------
Representative           Date

----------------------   ----------------------
Program Manager          Date


 Here is the code I currently have: 
\makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\
User Representative \makebox[2.5in][r]{Date} \\

\vspace{.2in}
\makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\
Program Manager \makebox[2.5in][r]{Date} \\


I want to be able to change the names, such as change Program Manager to Joe Foo and have the word 'Date' stay in the exact place.

Any help would be greatly appreciated. I'm still a newbie at TeX so please forgive my ignorance.

-

You can use \makebox to set the text in a fixed amount of space. Below I have defined a SignatureAndDate macro to make this easier to use:

I used the showframe package to show the margins so you can see the placement relative to that.

\documentclass{article}
\usepackage{showframe}
\newcommand*{\SignatureAndDate}[1]{%
\par\noindent\makebox[2.5in]{\hrulefill} \hfill\makebox[2.0in]{\hrulefill}%
\par\noindent\makebox[2.5in][l]{#1}      \hfill\makebox[2.0in][l]{Date}%
}%
\begin{document}
\SignatureAndDate{User Representative}
\vspace{.2in}
\SignatureAndDate{Program Manager}
\end{document}

-

I'd use a tabular:

\documentclass{article}

\begin{document}

\noindent\begin{tabular}{ll}
\makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\
User Representative & Date\\[8ex]% adds space between the two sets of signatures
\makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\
Program Manager & Date\\
\end{tabular}

\end{document}


For details on tabulars, I recommend section 2.11.6 of The Not So Short Introduction to LaTeX2e.

-

You can use the following command \titledate[<width>]{<title>} to draw your "title and date" configurations. Each are set it a tabular of width <width> (default is 2.5in).

\documentclass{article}
\newcommand{\titledate}[2][2.5in]{%
\noindent%
\begin{tabular}{@{}p{#1}@{}}
\\ \hline \\[-.75\normalbaselineskip]
#2
\end{tabular} \hspace{1in}
\begin{tabular}{@{}p{#1}@{}}
\\ \hline \\[-.75\normalbaselineskip]
Date
\end{tabular}
}
\begin{document}

\titledate{User Representative}

\titledate{Program Manager}

\titledate[2in]{My title}

\end{document}


Modifying the width parameter adjusts both sides to the new <width>.

-