5

I have the following section of TeX:

\documentclass[landscape]{slides}

\usepackage[landscape]{geometry}

\author{My Name}
\title{My Title}
\date{The Date}

\begin{document}

\begin{slide}
\maketitle
\end{slide}

\end{document}

If I try to add anything else to the title slide it is pushed on to the next slide. How can I add my twitter name and a link to my github account to the title page?

  • 1
    Can you include also the preamble of your document such that we can compile and see the result? – percusse Jun 2 '12 at 14:17
3

\title, \author and \date literally just stores its contents in \@title, \@author and \@date. So, you can just store more stuff in any one of them if you'd like:

enter image description here

\documentclass[landscape]{slides}
\usepackage[landscape]{geometry}% http://ctan.org/pkg/geometry
\usepackage{hyperref}% http://ctan.org/pkg/hyperref

\author{\parbox{.5\textwidth}{\centering
  My Name \\
  \small Twitter: \href{http://www.twitter.com/whocares}{@whocares} \\[3pt]
  Github: \href{https://github.com/whocares/repository}{Github Repository}}}
\title{My Title}
\date{The Date}

\begin{document}

\begin{slide}
\maketitle
\end{slide}

\end{document}

The formatting of the hyperlinks via \hypersetup, as well as the layout can be changed.

  • I tried this, the compilation never ends. Removing \parbox it works – Nisba Sep 23 '18 at 19:27
  • @Nisba: \author makes its way into the PDF document properties. Sometimes you may have to issue \texorpdfstring{<TeX>}{<PDF>} to distinguish between content - <TeX> - set within the PDF, and that which ends up in the PDF document properties - <PDF>. In that sense, you'll use the \parbox setup as part of <TeX>, while removing all (La)TeX-related content for what you want in <PDF>. – Werner Sep 23 '18 at 21:09
1

You can do something like

\author[My name]{My name \\ {\ttfamily myemail@email.com}}
\date[The date]{The date \\ {\smaller Name of the conference}}
...

Disclaimer: This solution applies to the beamer package. I'm unaware of the behaviour of the slides package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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