乳胶Insertnavigation-两行的点
我试图在我的Beamer文档中调整给定的导航,以使代表子小节的点不会被挤入一行。
我试图实现一个小示例:
\documentclass{beamer}
\setbeamerfont{title page}{family=\rmfamily}
\setbeamerfont{author}{size=\small}
\setbeamertemplate{title page}
{%
\vskip35pt
\centering
\usebeamerfont{title}\inserttitle
\vspace*{0.5ex}
\textcolor{white}{\hrule height 2pt}
\bigskip
\usebeamerfont{author}\insertauthor\par
\vspace*{1ex}
\usebeamerfont{institute}\insertinstitute\par
\vspace*{1ex}
\usebeamerfont{date}\insertdate\par
\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic
}
\newenvironment{withoutheadline}{%
\setbeamercolor{background canvas}{bg=white}
\setbeamertemplate{headline}{%
\begin{minipage}[c][0.9cm]{\paperwidth}
\begin{minipage}{0.2\paperwidth}
\centering
\includegraphics[width=0.19\paperwidth]{XY.pdf}
\end{minipage}
\end{minipage}
\color{black}\rule{\paperwidth}{1pt}
}
\setbeamertemplate{footline}{%
\colorbox{black}{\begin{minipage}[c][0.4cm]{\textwidth}%
\hfill
\end{minipage}\hspace{-6pt}}
}
}{}
\setbeamertemplate{headline}
{\begin{minipage}[c][1.1cm]{\paperwidth}
\begin{minipage}{0.2\paperwidth}
\centering
\includegraphics[width=0.19\paperwidth]{XYZ.pdf}
\end{minipage}
\begin{minipage}{1\paperwidth}
% insert the default navigation (miniframes)
\insertnavigation{0.75\paperwidth}
\vskip4pt
\end{minipage}
\end{minipage}
\color{black}\rule{\paperwidth}{1pt}
}
\title[Short Title]{Public Transport Optimization}
\author{XY}
\institute[Chair for EMC]{
Chair of XY \\
XY
}
\mode<presentation>{\keywords{Put some keywords here, separated by commas, e.g. Non-Technical Project, Academic Writing}}
\begin{document}
\begin{frame}
\maketitle
% \maketitle also works in the article mode
% \titlepage only works for presentation
\end{frame}
\begin{frame}[label=inhalt]{Overview}
\tableofcontents
\end{frame}
\section{Introduction}
\subsection*{}
\begin{frame}
\frametitle<presentation>{Introduction}
\end{frame}
\begin{frame}{Introduction 1}
\end{frame}
\begin{frame}{Introduction 2}
\end{frame}
\section{Main Part}
\subsection{Mainpart1}
\begin{frame}{Mainpart1}
\end{frame}
\subsection{Mainpart2}
\begin{frame}{Mainpart2}
\end{frame}
\end{document}
如果您进行了编译,则可以看到一个我的问题在标题中的示例:主要部分下的点位于一行中,如果我添加了三个以上的小节,则这些点会变为看不见 - 因此,我想连续将点或两条平行线。
I am trying to adapt a given navigation in my Beamer document, such that the dots representing subsections are not squeezed into one line.
I tried to implement a small example:
\documentclass{beamer}
\setbeamerfont{title page}{family=\rmfamily}
\setbeamerfont{author}{size=\small}
\setbeamertemplate{title page}
{%
\vskip35pt
\centering
\usebeamerfont{title}\inserttitle
\vspace*{0.5ex}
\textcolor{white}{\hrule height 2pt}
\bigskip
\usebeamerfont{author}\insertauthor\par
\vspace*{1ex}
\usebeamerfont{institute}\insertinstitute\par
\vspace*{1ex}
\usebeamerfont{date}\insertdate\par
\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic
}
\newenvironment{withoutheadline}{%
\setbeamercolor{background canvas}{bg=white}
\setbeamertemplate{headline}{%
\begin{minipage}[c][0.9cm]{\paperwidth}
\begin{minipage}{0.2\paperwidth}
\centering
\includegraphics[width=0.19\paperwidth]{XY.pdf}
\end{minipage}
\end{minipage}
\color{black}\rule{\paperwidth}{1pt}
}
\setbeamertemplate{footline}{%
\colorbox{black}{\begin{minipage}[c][0.4cm]{\textwidth}%
\hfill
\end{minipage}\hspace{-6pt}}
}
}{}
\setbeamertemplate{headline}
{\begin{minipage}[c][1.1cm]{\paperwidth}
\begin{minipage}{0.2\paperwidth}
\centering
\includegraphics[width=0.19\paperwidth]{XYZ.pdf}
\end{minipage}
\begin{minipage}{1\paperwidth}
% insert the default navigation (miniframes)
\insertnavigation{0.75\paperwidth}
\vskip4pt
\end{minipage}
\end{minipage}
\color{black}\rule{\paperwidth}{1pt}
}
\title[Short Title]{Public Transport Optimization}
\author{XY}
\institute[Chair for EMC]{
Chair of XY \\
XY
}
\mode<presentation>{\keywords{Put some keywords here, separated by commas, e.g. Non-Technical Project, Academic Writing}}
\begin{document}
\begin{frame}
\maketitle
% \maketitle also works in the article mode
% \titlepage only works for presentation
\end{frame}
\begin{frame}[label=inhalt]{Overview}
\tableofcontents
\end{frame}
\section{Introduction}
\subsection*{}
\begin{frame}
\frametitle<presentation>{Introduction}
\end{frame}
\begin{frame}{Introduction 1}
\end{frame}
\begin{frame}{Introduction 2}
\end{frame}
\section{Main Part}
\subsection{Mainpart1}
\begin{frame}{Mainpart1}
\end{frame}
\subsection{Mainpart2}
\begin{frame}{Mainpart2}
\end{frame}
\end{document}
If you compile it, you can see an example of what my problem is in the headline: the dots under the main part are in one row and if I add more than three subsections, the dots become invisible - I would therefore like to have the dots in a row, or in two parallel lines.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要显示一行中所有小节中所有小节的缩影,您可以使用
compress
beamer类的选项:To show the miniframes from all subsections in a single line, you can use the
compress
option of the beamer class: