Beamer:想要插入一个只有标题的极简第二标题页

Beamer:想要插入一个只有标题的极简第二标题页

我有主标题页和第二个标题页。在第二个标题页上,我只想显示标题。我不希望出现以下两行:

主管1:主管1姓名1 主管2:主管2姓名2

下面就是我现在得到的图片。在此处输入图片描述

以下是代码:

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage {textcomp}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{url}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{topcapt}
\usepackage{setspace}
\usepackage{bbding} %Checkmark
\usepackage{lmodern}
\usepackage{subfig}

\usetheme{Warsaw}
\useinnertheme[shadow=true]{rounded}

\makeatletter
\newcommand\titlegraphicii[1]{\def\inserttitlegraphicii{#1}}
\titlegraphicii{}
\setbeamertemplate{title page}
{
  \vbox{}
   {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\hfill\inserttitlegraphicii\par}
        \begin{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]{supervisors}
                \usebeamerfont{institute}
                    \begin{tabular}[t]{@{}l@{\hspace{8pt}}p{.3\textwidth}@{}}
                        Supervisor1: & Supervisor1 Name$^1$ \\
                        Supervisor2: & Supervisor2 Name$^2$
                    \end{tabular}%
            \end{beamercolorbox}
            \begin{beamercolorbox}[sep=8pt,center]{institute1}
                \usebeamerfont{institute}\insertinstitute
            \end{beamercolorbox}
            %\footnotesize
            \begin{beamercolorbox}[sep=8pt,center]{date}
                \footnotesize\usebeamerfont{date}\insertdate
            \end{beamercolorbox}%\vskip0.5em
        \end{centering}
        %\vfill
}
\makeatother
\author{{\small{by:}} Author Name$^1$}
\title[Short title]{Long title}
\institute{$^1$Department University1 \\ $^2$Department University2}
\date{\today}

%%%%%%%%%%%%%%Insertion numéros de page et courte version du titre
\expandafter\def\expandafter\insertshorttitle\expandafter{%
  \insertshorttitle\hfill%
  \insertframenumber\,/\,\inserttotalframenumber}

\begin{document}

    \begin{frame}[plain]
        \maketitle
    \end{frame}

    \title[Short title]{Long title}

    \date{}
    \author{}
    \author{}
    \institute{}

    \begin{frame}\frametitle{}
        \maketitle
    \end{frame}

\end{document}

谢谢。

答案1

快速解决方案,只需将颜色设置\setbeamercolor{supervisors}{fg=white}为白色:

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage {textcomp}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{url}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{topcapt}
\usepackage{setspace}
\usepackage{bbding} %Checkmark
\usepackage{lmodern}
\usepackage{subfig}

\usetheme{Warsaw}
\useinnertheme[shadow=true]{rounded}

\makeatletter
\newcommand\titlegraphicii[1]{\def\inserttitlegraphicii{#1}}
\titlegraphicii{}
\setbeamertemplate{title page}
{
  \vbox{}
   {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\hfill\inserttitlegraphicii\par}
        \begin{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]{supervisors}
                \usebeamerfont{institute}
                    \begin{tabular}[t]{@{}l@{\hspace{8pt}}p{.3\textwidth}@{}}
                        Supervisor1: & Supervisor1 Name$^1$ \\
                        Supervisor2: & Supervisor2 Name$^2$
                    \end{tabular}%
            \end{beamercolorbox}
            \begin{beamercolorbox}[sep=8pt,center]{institute1}
                \usebeamerfont{institute}\insertinstitute
            \end{beamercolorbox}
            %\footnotesize
            \begin{beamercolorbox}[sep=8pt,center]{date}
                \footnotesize\usebeamerfont{date}\insertdate
            \end{beamercolorbox}%\vskip0.5em
        \end{centering}
        %\vfill
}
\makeatother
\author{{\small{by:}} Author Name$^1$}
\title[Short title]{Long title}
\institute{$^1$Department University1 \\ $^2$Department University2}
\date{\today}

%%%%%%%%%%%%%%Insertion numéros de page et courte version du titre
\expandafter\def\expandafter\insertshorttitle\expandafter{%
  \insertshorttitle\hfill%
  \insertframenumber\,/\,\inserttotalframenumber}

\begin{document}

    \begin{frame}[plain]
        \maketitle
    \end{frame}

    \title[Short title]{Long title}
    \setbeamercolor{supervisors}{fg=white}

    \date{}
    \author{}
    \author{}
    \institute{}

    \begin{frame}\frametitle{}
        \maketitle
    \end{frame}

\end{document}

在此处输入图片描述

相关内容