How to make a signature field in LaTeX

Viewed 44481

When I'm writing my laboratory reports in LaTeX, I recently had to make a signature field on the form.

                   Trondheim 4.september 2009


______________________         ___________________________
  Ivar Nesje                      Team mate's name

The problem was that I could not find a easy way to do it so after a lot of searching on the net I came up with this simple solution

\newcommand{\doubleSignature}[3]{
\begin{minipage}[c]{\textwidth}
\vspace{2cm}

\makebox[12cm][c]{
 #1, \today 
}
\vspace{3cm}

\makebox[12cm][c]{
\hfill \makebox[5cm][c] {\hrulefill} \hfill \makebox[5cm][c] {\hrulefill} \hfill
}
\makebox[12cm][c]{
\hfill #2 \hfill #3 \hfill
}
\vspace{1cm}
\end{minipage}
}

This allowed me to type;

\doubleSignature{Trondheim}{Ivar Nesje}{Team mate's name}

To achieve the wanted result. If any of you have another way of doing this, not using the letter document class, I'd be really glad to hear your suggestions.

2 Answers
Related