在框架标题中添加 toc 作为按钮

在框架标题中添加 toc 作为按钮

我想将我的目录放在 beamer 的主题中frametitleMadrid所以我写了这个:

\frametitle{\tiny 
\color{white}Introduction to Welding\qquad
\color{gray} Welding Automation and Robotics\qquad 
Research literature\qquad 
My Project}

在此处输入图片描述

如您所见,我在每个框架中手动添加目录,并在每张幻灯片中将它们设置为白色和灰色。有什么办法可以实现这个吗!这意味着它们变成了真实的toc,当被点击时,它会显示章节页面的开始?任何帮助都将不胜感激。

最小工作示例:

\documentclass[11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usetheme{Madrid}
\begin{document}
    \frame[plain]{\maketitle}
        \section{Introduction to Welding}
        \begin{frame}
            \frametitle{\tiny \color{white}Introduction to Welding\qquad\color{gray} Welding Automation and Robotics\qquad Research literature\qquad My Project}
            \begin{block}{Introduction to Welding}
                \begin{columns}
                    \column{.3\textwidth} % Right column and width
                    \begin{itemize} 
                        \alt<1>{\color{blue}\item Introduction }{\color{gray}\item Introduction}
                        \alt<2>{\color{blue}\item Welding Defined}{\color{gray}\item  Welding Defined}
                    \end{itemize}
                    \column{.5\textwidth} % Right column and width
                \end{columns}
            \end{block} 
        \end{frame}
        \section{Welding Automation and Robotics}
        \begin{frame}
            \frametitle{\tiny\color{gray}Introduction to Welding\qquad\color{white} Welding Automation and Robotics\qquad\color{gray}Research literature\qquad My Project}
            \begin{block}{Introduction to Welding}
                \begin{columns}
                    \column{.3\textwidth} % Right column and width
                    \begin{itemize} 
                        \alt<1>{\color{blue}\item Introduction }{\color{gray}\item Introduction}
                        \alt<2>{\color{blue}\item Welding Defined}{\color{gray}\item  Welding Defined}
                    \end{itemize}
                    \column{.5\textwidth} % Right column and width
                \end{columns}
            \end{block} 
            \end{frame}
\end{document}

答案1

将外部主题miniframes与 s 结合使用\section,让其beamer自动生成所有部分的带有可点击超链接的标题:

\documentclass{beamer}

\usetheme{Madrid}
\useoutertheme[subsection=false]{miniframes}

\begin{document}
\section{Introduction to Welding}
\frame{Introduction to Welding}
\section{Welding Automation and Robotics}
\frame{Welding Automation and Robotic}
\section{Research literature}
\frame{Research literatur}
\section{My Project}
\frame{My Project}
\end{document}

最终的标题:

示例文档的标题

相关内容