I have the following MWE, taken from this post, that creates a beamer titlepage showing both the candidate and the supervisor of a thesis
\documentclass{beamer}
\usetheme{Hannover}
\usecolortheme{whale}
\usefonttheme[stillsansserifsmall,stillsansseriflarge]{serif}
\definecolor{Text}{HTML}{000F1C}
\setbeamercolor{normal text}{fg=Text}
\newsavebox{\authbox}
\sbox{\authbox}{%
\begin{minipage}{0.5\textwidth}
\centering
{\small \textcolor{Text}{\textrm{Candidate:}}} \\
{\normalsize \textcolor{Text}{\textrm{Foo Bar}}}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
\centering
{\small \textcolor{Text}{\textrm{Supervisor:}}} \\
{\normalsize \textcolor{Text}{\textrm{Prof. Foo Bar Baz}}}
\end{minipage}
}
\title{An interesting topic}
\author[Me]{\usebox{\authbox}}
\institute{A university}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}
which produces the following
What I don't like about this implementation is:
I have to manually call
\textrm{...}
even though I'm already using theserif
font theme. A normal\author{me}
would already be in serif;I have to manually call
\textcolor{Text}
even though I'm alredy settingfg=Text
for normal text. A normal\author{me}
would already be colored inText
.The two
minipage
s seem to be a shifted to the right. For example, if I substitute the first\centering
with\flushleft
and the second one with\flushright
, this is what I get
while I'd expect Candidate
to be lined up with the left side of the title's colorbox, and the end of Supervisor
to be lined up with right side. Instead, Candidate
starts a bit to the right of the left side and Supervisor
ends a bit to the right of the right side.
Is there a way to fix all three of these issues? Is there a completely different implementation that is cleaner and produces the desired results?
[sansserif]{serif}
and 2. I don't understand beamer colors. But for 3., my guess is the box is indented. Have you tried\noindent
before the first minipage?