Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to put a descriptive name under the name in a signature:

I currently have:

\def\sig#1{\vbox{\hsize=5.5cm
    \kern2cm\hrule\kern1ex
    \hbox to \hsize{\strut\hfil #1 \hfil}}}

\newcommand\signatures[4]{%
\hbox to \hsize{\hfil #1, \today\hfil}
\hbox to \hsize{\quad\sig{#2}\hfil\hfil\sig{#3}\quad}
\hbox to \hsize{}}


\signatures{Institution}{Name 1}{Name 2}{}

which is :

enter image description here

But I want: enter image description here

What should be added to the code to show that?

I call it using

\signatures{Institution}{Name 1}{Name 2}{}
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You could use a \shortstack{}, which allows you to use line breaks:

\hbox to \hsize{\quad\sig{\shortstack{#2\\[0.5ex]Advisor A}}\hfil\hfil\sig{\shortstack{#3\\[0.5ex]Advisor B}}\quad}

enter image description here

You can adjust the spacing between Name and Advisor using the optional length argument of \\.

share|improve this answer
    
Yes, just what I needed. Thanks –  cMinor Sep 9 '11 at 4:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.