22

I am new to the beamer class and I am struggling to include my email info in a presentation.

I tried \email but there is no such field. I tried the below but the theme over-rode the \small making the email appear too big.

\documentclass[a4paper,12pt,english]{beamer}
\usetheme{PaloAlto}
\usecolortheme[named=black]{structure}
\usefonttheme{professionalfonts}
\title{Some Great Long Title}
\author{Author\\{\small email@email.com}}
\institute{ABC}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}

Is there any way of inserting a row of text between author and institute with no formating?

Roelof Spijker
  • 17,663
  • 5
  • 55
  • 63
Mobius Pizza
  • 2,326
  • 1
    You can just leave out the \small altogether to get it in the same size as the title. Alternatively you can replace it with \tiny to get something smaller than the title. If this is too small, you can use \scriptsize or \footnotesize. – Roelof Spijker Jan 16 '12 at 12:46
  • 1
    In the sidebar, the email comes out bigger than the author. That's weird… – Seamus Jan 16 '12 at 12:56
  • 1
    However, I seem to get Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref) removing `\' error when I tried to use new line in author field – Mobius Pizza Jan 16 '12 at 13:13
  • \tiny also yeilds warning: LaTeX Font Warning: Font shape `OT1/cmss/bx/n' in size <4> not available(Font) size <5> substituted ........ But I guess it's alright since the output looks fine – Mobius Pizza Jan 16 '12 at 13:19
  • For others' interest, http://tex.stackexchange.com/questions/10555/hyperref-warning-token-not-allowed-in-a-pdf-string gets rid of the first warning. For the second warning, the redefinition of tiny seems to do the trick: http://texblog.net/latex-archive/presentations/beamer-warnings/ – Mobius Pizza Jan 16 '12 at 13:25

2 Answers2

16

use

\author{\texorpdfstring{Author\newline\url{email@email.com}}{Author}}
8

Personally I don't like the email address to be displayed right below the name. I'm usually setting it up in the bottom left corner. I'm using the filll glue to allow adding text below the \maketitle on the same page without changing the positioning of \maketitle outputs. Firstly I define \vfilll in analogy to \vfil and \vfill.

\def\vfilll{\vskip 0pt plus 1filll minus 0pt }

Now I can manipulate the layout of the titlepage with ease:

\begin{frame}
  \vfilll
  \titlepage
  \vfilll
  \usebeamerfont{institute} Contact: \url{email@email.com}
\end{frame}

Here's complete example document:

\documentclass{beamer}

\def\vfilll{\vskip 0pt plus 1filll minus 0pt }

\author{John Doe}
\title{My cool title}
\institute{Institute of Institutes}
\date{\today}

\begin{document}

\begin{frame}
  \vfilll
  \titlepage
  \vfilll
  \usebeamerfont{institute} Contact: \url{email@email.com}
\end{frame}

\end{document}

It renders the following:

Rendering of above code

I'm using institute font size, because that's not annoyingly huge. Feel free to play with that value or use an explicit font size like \footnotesize if you prefer. Also this works nicely with different templates (even those with footlines) and also when a logo is included.

Kev
  • 116