Beamer,在侧边栏中包含框架标题

Beamer,在侧边栏中包含框架标题

在 Beamer 中,是否可以将特定框架标题作为条目包含在侧边栏中。我设法通过在其前面指定一个子部分来实现这一点。还有其他方法吗?

\documentclass{beamer}
\usepackage{beamerthemesplit}
\usetheme{PaloAlto}

\setbeamertemplate{navigation symbols}{}
\usepackage{xcolor}

\title
[]{\Large \bf My Thesis}
\subtitle
{}
\author
[]{{{\textcolor{blue}{\footnotesize H. John}}}}

\date
{{\small 2016}}

\usepackage{verbatim}

\begin{document}

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

\begin{frame}[t,allowframebreaks]
\frametitle{Table of Contents}
\tableofcontents
\end{frame}

\section
[Int]{Introduction}
\frame{\sectionpage}

\subsection
[Scope]{Scope}
\frame{\subsectionpage}

% begin frame
\begin{frame}[fragile,t,,shrink=6]%[plain,]
 \frametitle
{overview}
\framesubtitle{{\textcolor{cyan} {{\large{\textbf{{ Main }}}}}}}

\begin {center}
 {
  \color{blue}
Dosing regimens for pain
}
\end {center}


ddd aaa ccc ddd

\end{frame} 
% end frame

\subsection
[overImp]{overview}
%\frame{\subsectionpage}

% begin frame
\begin{frame}[fragile,t,,shrink=6]%[plain,]
 \frametitle
{overview}
\framesubtitle{{\textcolor{cyan} {{\large{\textbf{{ Important }}}}}}}

\begin {center}
 {
  \color{blue}
xxx yyyy
}
\end {center}

ddd aaa ccc ddd

\end{frame} 
% end frame

\subsection
[Lim]{Limits}
\frame{\subsectionpage}

\end{document} 

答案1

与您的解决方案非常相似,但如果您只想向侧边栏添加框架,而不是向目录添加框架,则可以使用\subsection*{...}

\documentclass{beamer}

\usepackage{beamerthemesplit}
\usetheme{PaloAlto}
\setbeamertemplate{navigation symbols}{}

\setbeamerfont{title}{size=\Large, series=\bfseries}
\setbeamerfont{date}{size=\small}
\setbeamerfont{author}{size=\footnotesize}
\setbeamerfont{framesubtitle}{size=\large, series=\bfseries}
\setbeamercolor{author}{fg=blue}
\setbeamercolor{framesubtitle}{fg=cyan}

\title[]{My Thesis}
\subtitle{}
\author[]{H. John}
\date{2016}

\usepackage{verbatim}

\begin{document}

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

\begin{frame}[t,allowframebreaks]
    \frametitle{Table of Contents}
    \tableofcontents
\end{frame}

\section[Int]{Introduction}
\frame{\sectionpage}

\subsection[Scope]{Scope}
\frame{\subsectionpage}

\begin{frame}[fragile,t,shrink=6]
    \frametitle{overview}
    \framesubtitle{Main}

    \begin{center}
        \color{blue}
        Dosing regimens for pain
    \end{center}

    ddd aaa ccc ddd
\end{frame} 

\subsection*{overImp}
\begin{frame}[fragile,t,shrink=6]
    \frametitle{overview}
    \framesubtitle{Important}

    \begin{center}
         \color{blue}
            xxx yyyy
    \end{center}

    ddd aaa ccc ddd
\end{frame}

\subsection[Lim]{Limits}
\frame{\subsectionpage}

\end{document} 

在此处输入图片描述

无关:

  • 无需加载xcolor,beamer 已经为您完成了
  • 您无需弄乱 的参数\title{},因为这样可能会导致 pdf 文档属性出现问题,而是可以使用以下方法控制颜色和大小:

    \setbeamerfont{title}{size=\Large, series=\bfseries}
    \setbeamerfont{date}{size=\small}
    \setbeamerfont{author}{size=\footnotesize}
    \setbeamercolor{author}{fg=blue}
    

相关内容