发布投影仪幻灯片的标题(同时保持枚举)

发布投影仪幻灯片的标题(同时保持枚举)

我现在正在使用的第二张幻灯片中处理投影仪enumerate,项目列表非常大。我希望在下一张幻灯片中保留项目编号,这就是我应用的原因\framebreak。但主要问题是幻灯片的标题已更改为Introduction IIntroduction II您可以在编译后看到这一点。

如何解决这个问题呢?

梅威瑟:

\documentclass[12pt]{beamer}
\usepackage{xcolor}
\usetheme{AnnArbor}
\usecolortheme{default}

\usefonttheme{professionalfonts} % using non standard fonts for beamer
\usefonttheme{serif} % default family is serif
\usepackage{setspace}
%\setstretch{1.0}change this number as per requirement
%\addtobeamertemplate{frametitle}{}{\vspace{1em}} % increase
\addtobeamertemplate{frametitle}{}{\vspace{-0.4em}} % decrease
%make new line after item
\makeatletter
\def\myitem{%
    \@ifnextchar[ \@myitem{\@noitemargtrue\@myitem[\@itemlabel]}}
\def\@myitem[#1]{\item[#1]\mbox{}\\}
\makeatother
%make new line after item
\title[title]{\textbf{xyz}}
\author[my self]{}
\date[\today]{}
\begin{document}
        \begin{frame}[t]{\textbf{Outline}}
        \setstretch{2.0}
        \begin{enumerate}
            \item Introduction
            \item B
            \item C
            \item D
            \item E
        \end{enumerate}
    \end{frame}
        \begin{frame}[t,allowframebreaks]{\textbf{Introduction}}
        %\setstretch{1.50}
        \textbf{Properties}

        \vspace{0.35cm}
        \begin{enumerate}
            \setlength\itemsep{0.9em}
            \item \textbf{P-1} \mbox{}\\
            Text
            \item \textbf{P-2} \mbox{}\\
            Text
            \item \textbf{P-3} \mbox{}\\
            Text
            \item \textbf{P-4} \mbox{}\\
            Text
            \item \textbf{P-5} \mbox{}\\
            Text\framebreak
            \item 
        \end{enumerate}
    \end{frame}

\end{document}

答案1

你似乎正在寻找

\setbeamertemplate{frametitle continuation}[from second][]

手册上说

在此处输入图片描述

\documentclass[12pt]{beamer}
\usepackage{xcolor}
\usetheme{AnnArbor}
\usecolortheme{default}

\usefonttheme{professionalfonts} % using non standard fonts for beamer
\usefonttheme{serif} % default family is serif
\usepackage{setspace}
%\setstretch{1.0}change this number as per requirement
%\addtobeamertemplate{frametitle}{}{\vspace{1em}} % increase
\addtobeamertemplate{frametitle}{}{\vspace{-0.4em}} % decrease
\setbeamertemplate{frametitle continuation}[from second][]
%make new line after item
\makeatletter
\def\myitem{%
    \@ifnextchar[ \@myitem{\@noitemargtrue\@myitem[\@itemlabel]}}
\def\@myitem[#1]{\item[#1]\mbox{}\\}
\makeatother
%make new line after item
\title[title]{\textbf{xyz}}
\author[my self]{}
\date[\today]{}
\begin{document}
        \begin{frame}[t]{\textbf{Outline}}
        \setstretch{2.0}
        \begin{enumerate}
            \item Introduction
            \item B
            \item C
            \item D
            \item E
        \end{enumerate}
    \end{frame}
        \begin{frame}[t,allowframebreaks]
        \frametitle{\textbf{Introduction}}
        %\setstretch{1.50}
        \textbf{Properties}

        \vspace{0.35cm}
        \begin{enumerate}
            \setlength\itemsep{0.9em}
            \item \textbf{P-1} \mbox{}\\
            Text
            \item \textbf{P-2} \mbox{}\\
            Text
            \item \textbf{P-3} \mbox{}\\
            Text
            \item \textbf{P-4} \mbox{}\\
            Text
            \item \textbf{P-5} \mbox{}\\
            Text\framebreak
            \item 
        \end{enumerate}
    \end{frame}

\end{document}

在此处输入图片描述

相关内容