beamercolorbox 中的文本对齐

beamercolorbox 中的文本对齐

我正在尝试使用 2beamercolorbox并对齐其中的文本。pdf 输出

但是我试图让作者和机构(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

你是指这样的吗?我刚刚玩了两个颜色框中的htdp和。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}

在此处输入图片描述

相关内容