乳胶Insertnavigation-两行的点

发布于 2025-01-27 19:57:39 字数 2589 浏览 6 评论 0原文

我试图在我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

失退 2025-02-03 19:57:39

要显示一行中所有小节中所有小节的缩影,您可以使用compress beamer类的选项:

\documentclass[compress]{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]{example-image-duck}
            \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]{example-image-duck}
        \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}

“在此处输入图像说明”

To show the miniframes from all subsections in a single line, you can use the compress option of the beamer class:

\documentclass[compress]{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]{example-image-duck}
            \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]{example-image-duck}
        \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}

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文