添加纯文本会破坏标题页上的漂亮形状和阴影 - beamer Warsaw 主题

添加纯文本会破坏标题页上的漂亮形状和阴影 - beamer Warsaw 主题

我正在制作一份论文答辩演示文稿,我需要将导师的姓名添加到标题页。我使用以下代码完成了此操作:这里... 当我考虑添加纯文本时,它工作得很好,但它破坏了彩色框架的漂亮形状及其阴影,而这些阴影是此主题标题页默认的标题下方的。我知道通过重新定义标题页,我以某种方式“关闭”了这些功能,但我想再次打开它们,因为它看起来不错。

这是我的代码(不确定它是否能在这里起作用):

\documentclass{beamer}
\mode<presentation> {
  \usetheme{Warsaw}
  %\setbeamercovered{transparent}
}

%\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[slovak]{babel}
\usepackage{palatino}
\usepackage{graphicx}

\title{Aplikácia metódy združených asymptotických rozvojov vo finančnej matematike.}
\subtitle{Application of matched asymptotic expansions method in financial mathematics.} 
\author%[Author, Anders] % (optional, for multiple authors)
{Bc. Jozef Janočko}
\institute[Universities Here and There] % (optional)
{

  Fakulta matematiky, fyziky a informatiky\\
  Univerzita Komenského
 }

%{RNDr. Be\'{a}ta Stehl\'{i}kov\'{a}, PhD.}
%\subject{Computer Science}
\setbeamertemplate{title page}
{
  \vbox{}
  \vfill
  \begingroup
    \flushleft RNDr. Beáta Stehlíková, PhD.
    \vskip0.5em%
    \centering
    \begin{beamercolorbox}[sep=8pt,center]{title}
      \usebeamerfont{title}\inserttitle\par%
      \ifx\insertsubtitle\@empty%
      \else%
        \vskip0.25em%
        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
      \fi%     
    \end{beamercolorbox}%
    \vskip1em\par
    \begin{beamercolorbox}[sep=8pt,center]{author}
      \usebeamerfont{author}\insertauthor
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center]{institute}
      \usebeamerfont{institute}\insertinstitute
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center]{date}
      \usebeamerfont{date}\insertdate \\
    \end{beamercolorbox}\vskip0.5em
    {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
  \endgroup
  \vfill
} 
\begin{document}
\frame{\titlepage}


\end{document}

现在看起来是这样的:

已添加文本

之前的样子如下:

未添加文字

答案1

这是您想要的结果吗?

\documentclass{beamer}
\mode<presentation> {
  \usetheme{Warsaw}
  %\setbeamercovered{transparent}
}

%\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[slovak]{babel}
\usepackage{palatino}
\usepackage{graphicx}

\title[short version for footline]{Aplikácia metódy združených asymptotických rozvojov vo finančnej matematike.}
\subtitle{Application of matched asymptotic expansions method in financial mathematics.} 
\author%[Author, Anders] % (optional, for multiple authors)
{Bc. Jozef Janočko}
\institute[Universities Here and There] % (optional)
{

  Fakulta matematiky, fyziky a informatiky\\
  Univerzita Komenského
 }

%{RNDr. Be\'{a}ta Stehl\'{i}kov\'{a}, PhD.}
%\subject{Computer Science}
\makeatletter
\setbeamertemplate{title page}
{
    \vbox{}
    \vfill
    \begingroup
    \flushleft RNDr. Beáta Stehlíková, PhD.   % NEW
    \vskip0.5em                                                             % NEW
    \centering
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]{title}
        \usebeamerfont{title}\inserttitle\par%
        \ifx\insertsubtitle\@empty%
        \else%
        \vskip0.25em%
        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
        \fi%     
    \end{beamercolorbox}%
    \vskip1em\par
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]{author}
        \usebeamerfont{author}\insertauthor
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]{institute}
        \usebeamerfont{institute}\insertinstitute
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]{date}
        \usebeamerfont{date}\insertdate
    \end{beamercolorbox}\vskip0.5em
    {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
    \endgroup
    \vfill
}
\makeatother

\begin{document}
\frame{\titlepage}
\end{document}

在此处输入图片描述

相关内容