I am using
\documentclass[a4paper,12pt,openany,leqno,footinclude=true]{memoir}
and want some signature lines that have
-
dotted lines; plus
-
a designation below the line
I have:
\noindent\begin{tabular}{ll}
\makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\
Ronaldo & Date\\[8ex]% adds space between the two sets of signatures
\makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\
Dr. Fernando Torres \begin{center}Assistant Professor Discipline Of Computer Science School Of Engineering La Liga \end{center} \newline & Date\\
\end{tabular}
The content of "Assistant Professor …" does not left align below the signature line and I can't use a \newline
too.
I want that content to either be
-
left aligned; or
-
centre aligned (I tried using the
center
environment, but it didn't work).
I guess centre aligned designation below the signature line would be great.
Here is a minimal example:
\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}
Best Answer
You have several possibilities to do what you want. Because I'm not sure if centering is always the best I will show you two other possibilities for the layout. One is using the usual block (please see the hyphenation!), one is to use
\raggedright
, that means left justified text and all centered.The code (with your used class
memoir
):And the result:
Please see that I used
\tabularnewline
for the last table because the different layout with\centering
). To get a centered column I used>{\centering}
beforep{2.5in}
, becausep{2.5in}
will create a right-left justified column and you need a centered one.