我正在尝试使用 2beamercolorbox
并对齐其中的文本。。
但是我试图让作者和机构(Bar、HII)右对齐并位于其颜色框的底部,标题和副标题(Foo、Hello)左对齐并位于颜色框的顶部。这是我设法想出的方法:
\documentclass{beamer}
\defbeamertemplate*{title page}{ru theme}[1][]{%
% \nointerlineskip
\usebeamerfont{subtitle}
\setbeamercolor{thead}{fg=white,bg=black}
\begin{beamercolorbox}[sep=1em,wd=\paperwidth, ht=.4\paperheight, dp=0.5cm,right ]{thead}
\usebeamerfont{author} \insertauthor\par
\usebeamerfont{institute}%\robotocondensed
\insertinstitute\par
\end{beamercolorbox}
% \nointerlineskip
\setbeamercolor{postit}{fg=black, bg=white}
\begin{beamercolorbox}[sep=10em,wd=\paperwidth,ht=.6\paperheight,dp=0cm]{postit}
\begin{minipage}[t]{\textwidth}
\usebeamerfont{title} {\Huge\textbf \inserttitle} \par
\usebeamerfont{subtitle} {%\robotocondensed
\insertsubtitle}
\end{minipage}%
\begin{minipage}[t]{0.4\textwidth}
\inserttitlegraphic
\end{minipage}
\end{beamercolorbox}
%\setbeamercolor{postit}{fg=sapred}
}
\usepackage{multirow,caption,subcaption}
\synctex=1
\usepackage[T1]{fontenc}
\title{Foo}
\subtitle{Hello}
\author{Bar}
\institute{HII}
\setbeamertemplate{navigation symbols}{}
\begin{document}
\maketitle
\begin{frame}
\tableofcontents
\end{frame}
\section{Introduction}
\begin{frame}
Hello
\end{frame}
\end{document}
您能帮忙指导一下如何做到这一点吗?
答案1
你是指这样的吗?我刚刚玩了两个颜色框中的ht
、dp
和。sep
\documentclass{beamer}
\defbeamertemplate*{title page}{ru theme}[1][]{%
% \nointerlineskip
\usebeamerfont{subtitle}
\setbeamercolor{thead}{fg=white,bg=black}
\begin{beamercolorbox}[sep=1em,wd=\paperwidth, ht=.4\paperheight, dp=0.0cm,right ]{thead}
\usebeamerfont{author} \insertauthor\par
\usebeamerfont{institute}%\robotocondensed
\insertinstitute\par
\end{beamercolorbox}
% \nointerlineskip
\setbeamercolor{postit}{fg=black, bg=white}
\begin{beamercolorbox}[sep=1em,wd=\paperwidth,dp=.43\paperheight,ht=.17\paperheight]{postit}
\begin{minipage}[t]{\textwidth}
\usebeamerfont{title} {\Huge\textbf \inserttitle} \par
\usebeamerfont{subtitle} {%\robotocondensed
\insertsubtitle}
\end{minipage}%
\begin{minipage}[t]{0.4\textwidth}
\inserttitlegraphic
\end{minipage}
\end{beamercolorbox}
%\setbeamercolor{postit}{fg=sapred}
}
\usepackage{multirow,caption,subcaption}
\synctex=1
\usepackage[T1]{fontenc}
\title{Foo}
\subtitle{Hello}
\author{Bar}
\institute{HII}
\setbeamertemplate{navigation symbols}{}
\begin{document}
\maketitle
\begin{frame}
\tableofcontents
\end{frame}
\section{Introduction}
\begin{frame}
Hello
\end{frame}
\end{document}