如何在导航栏中显示某些指定的部分。例如,如果我在项目中完成了一组幻灯片,然后想在同一个项目中编写另一组幻灯片,我需要重新排列新的部分。我怎样才能防止以前的部分被计算在内?代码如下,你能帮我吗?
\documentclass[aspectratio=169]{beamer}
\usetheme[compress]{Singapore}
%\usepackage{graphicx}
\graphicspath{ {figures/} }
\usefonttheme{serif}
\usepackage{caption}
\usepackage{subcaption}
%\usepackage{graphicx}
\setbeamersize{text margin left=14mm,text margin right=14mm}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{bibliography item}[text]
\setbeamertemplate{caption}[numbered]
\AtBeginSection[]{
\begin{frame}
\tableofcontents[sectionstyle=show/shaded,subsectionstyle=hide,subsubsectionstyle=hide]
\end{frame}
}
\title{Research Survey 1}
\author{Zhihao Li}
\institute{School of Computer Science and Technology}
\date{\today}
\newcommand{\nologo}{\setbeamertemplate{logo}{}}
\logo{%
\makebox[\paperwidth]{%
\includegraphics[height=1cm]{example-image}%
\hfill%
\includegraphics[height=1cm]{example-image}%
}\hskip-.1cm%
}
\show\hss
\makeatletter
\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry%
\def\beamer@writeslidentry@miniframesoff{%
\expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally
{%else
% removed \addtocontents commands
\clearpage\beamer@notesactions%
}
}
\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson}
\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff}
\makeatother
\begin{document}
\begin{frame}
\section*{}
\titlepage
\end{frame}
%\section*{OUTLINE}
\begin{frame}{OUTLINE}
\tableofcontents
\end{frame}
\section{INTRODUCTION}
\begin{frame}{INTRODUCTION}
INSERT INTRODUCTION.
\end{frame}
\section{THEORY}
\begin{frame}{THEORY 1}
INSERT THEORY 1.
\end{frame}
\begin{frame}{THEORY 2}
INSERT THEORY 2.
\end{frame}
\section{METHOD(S)}
\begin{frame}{METHOD(S)}
INSERT METHOD(S).
\end{frame}
\section{RESULTS}
\begin{frame}{RESULTS}
INSERT RESULTS.
\end{frame}
\section{DISCUSSION}
\begin{frame}{DISCUSSION}
INSERT DISCUSSION.
\end{frame}
\section{CONCLUSIONS}
\begin{frame}{CONCLUSIONS}
INSERT CONCLUSIONS.
\end{frame}
%\section{BIBLIOGRAPHY}
\miniframesoff
\nologo
\begin{frame}{BIBLIOGRAPHY}
INSERT BIBLIOGRAPHY
\end{frame}
%\section{ACKNOWLEDGEMENTS}
\begin{frame}{ACKNOWLEDGEMENTS}
\centering{
\includegraphics[height=2cm,keepaspectratio]{example-image}%
\hspace{30pt}
\includegraphics[height=2cm,keepaspectratio]{example-image}%
\hspace{30pt}
\includegraphics[height=2cm,keepaspectratio]{example-image}%
}
\end{frame}
\begin{frame}
\title{Research Survey 2}
\section*{}
\titlepage
\end{frame}
\miniframeson
\section{NEW INTRODUCTION}
\begin{frame}{NEW INTRODUCTION}
INSERT NEW INTRODUCTION.
\end{frame}
\end{document}
答案1
您可以插入一个\part
,然后标题将只显示当前部分的小框架:
\documentclass[aspectratio=169]{beamer}
\usetheme[compress]{Singapore}
%\usepackage{graphicx}
\graphicspath{ {figures/} }
\usefonttheme{serif}
\usepackage{caption}
\usepackage{subcaption}
%\usepackage{graphicx}
\setbeamersize{text margin left=14mm,text margin right=14mm}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{bibliography item}[text]
\setbeamertemplate{caption}[numbered]
\AtBeginSection[]{
\begin{frame}
\tableofcontents[sectionstyle=show/shaded,subsectionstyle=hide,subsubsectionstyle=hide]
\end{frame}
}
\title{Research Survey 1}
\author{Zhihao Li}
\institute{School of Computer Science and Technology}
\date{\today}
\newcommand{\nologo}{\setbeamertemplate{logo}{}}
\logo{%
\makebox[\paperwidth]{%
\includegraphics[height=1cm]{example-image}%
\hfill%
\includegraphics[height=1cm]{example-image}%
}\hskip-.1cm%
}
\show\hss
\makeatletter
\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry%
\def\beamer@writeslidentry@miniframesoff{%
\expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally
{%else
% removed \addtocontents commands
\clearpage\beamer@notesactions%
}
}
\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson}
\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff}
\makeatother
\begin{document}
\begin{frame}
\section*{}
\titlepage
\end{frame}
%\section*{OUTLINE}
\begin{frame}{OUTLINE}
\tableofcontents
\end{frame}
\section{INTRODUCTION}
\begin{frame}{INTRODUCTION}
INSERT INTRODUCTION.
\end{frame}
\section{THEORY}
\begin{frame}{THEORY 1}
INSERT THEORY 1.
\end{frame}
\begin{frame}{THEORY 2}
INSERT THEORY 2.
\end{frame}
\section{METHOD(S)}
\begin{frame}{METHOD(S)}
INSERT METHOD(S).
\end{frame}
\section{RESULTS}
\begin{frame}{RESULTS}
INSERT RESULTS.
\end{frame}
\part{}
\section{DISCUSSION}
\begin{frame}{DISCUSSION}
INSERT DISCUSSION.
\end{frame}
\section{CONCLUSIONS}
\begin{frame}{CONCLUSIONS}
INSERT CONCLUSIONS.
\end{frame}
%\section{BIBLIOGRAPHY}
\miniframesoff
\nologo
\begin{frame}{BIBLIOGRAPHY}
INSERT BIBLIOGRAPHY
\end{frame}
%\section{ACKNOWLEDGEMENTS}
\begin{frame}{ACKNOWLEDGEMENTS}
\centering{
\includegraphics[height=2cm,keepaspectratio]{example-image}%
\hspace{30pt}
\includegraphics[height=2cm,keepaspectratio]{example-image}%
\hspace{30pt}
\includegraphics[height=2cm,keepaspectratio]{example-image}%
}
\end{frame}
\begin{frame}
\title{Research Survey 2}
\section*{}
\titlepage
\end{frame}
\miniframeson
\section{NEW INTRODUCTION}
\begin{frame}{NEW INTRODUCTION}
INSERT NEW INTRODUCTION.
\end{frame}
\end{document}