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 need to add 3 supervisors to my titlepage. I found suggestions to make them part of \author, but it looks horrible, because every row is aligned by center (see picture). I would like to align somehow labels "Author" and "Supervisors" and in addition, all supervisors' names.

\author{Author: Me \\ Supervisors: First supervisor \\ Second \\ Third}

I tried to use tabular environment:

\author{\begin{tabular}[t]{p{3.5cm}}
test\\
test 1\\
\end{tabular}
}

But LaTeX gives an error:

! Use of \begin doesn't match its definition.

enter image description here

share|improve this question
1  
    
@JLDiaz, I tried as you said. LaTeX doesn't like it. I updated the question. –  damluar Mar 14 '13 at 14:48
    
@JLDiaz, could you move you comment ot answers? It works just great, thanks! Claudio, thank you also, I didn't want to change my current layout, if it's possible. –  damluar Mar 14 '13 at 15:01
    
sorry, I misunderstood what you targeted: seeing JLDiaz's answer was illuminating :) –  Claudio Fiandrino Mar 14 '13 at 15:10
add comment

1 Answer

up vote 8 down vote accepted

A simple solution is to typeset the authors inside a tabular environment, which allows you to customize the desired layout.

The problem is that \begin{tabular} will fail if used in the preamble, so you have to delay your \author inizialization after \begin{document}

Here is a MWE:

\documentclass{beamer}
\begin{document}
% For coherence, I move also \title, etc after \begin{document}

\title[Your Short Title]{Your Presentation}
\institute{Where You're From}
\author{\begin{tabular}{r@{ }l} 
Author:      & Me \\[1ex] 
Supervisors: & First\\
             & Second
\end{tabular}}
\date{Date of Presentation}

\begin{frame}
  \titlepage
\end{frame}
\end{document}

Result

As Gonzalo Medina noted in a comment, it is worth to mention that some beamer styles use the information provided in \author as part of the footer, or other part of the layout, and we don't want the whole tabular at that point. We can use the optional argument of \author to provide a "short version" which will be used at those places, for example:

\author[By Me]{\begin{tabular}{r@{ }l} 
  ...etc...
\end{tabular}}
share|improve this answer
1  
Gonzalo suggests you to provide a short author as the final note in this answer. –  Claudio Fiandrino Mar 14 '13 at 18:21
    
I was aware of the optional parameter that goes to footer. Thanks for your help! –  damluar Mar 14 '13 at 18:39
    
@GonzaloMedina and Claudio, thanks for pointing that out. I've updated the answer. –  JLDiaz Mar 14 '13 at 18:41
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.