如何使顶部导航条的内容分成两行显示?

发布于 2023-09-08 22:47:35

我的课件一共九节,
image.png
想在顶部导航条把九节分2行显示,比如
第一节 第二节 第三节 第四节 第五节

第六节  第七节  第八节  第九节

请问怎么做?
操作系统:Windows 10
安装的发行版:TEX Live 2023
编辑器:WinEdt
编译命令:XeLatex
MWE.zip

查看更多

关注者
0
被浏览
602
1 个回答
拿了橘子跑啊
拿了橘子跑啊 2024-01-28
这家伙很懒,什么也没写!

问了gpt
在Beamer文档类中,要将顶部导航条的内容分成两行显示,您可以使用\insertshortauthor\insertshorttitle等命令手动设置作者和标题的短版本,然后将它们放在导航条中的两行。下面是一个示例:

\documentclass{beamer}

% 设置作者和标题的短版本
\newcommand{\shortauthor}{Author Name}
\newcommand{\shorttitle}{Presentation Title}

\title[Short Title]{Presentation Title}
\author[Author Name]{Author Name}
\institute{Institute Name}

\begin{document}

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

\begin{frame}
\frametitle{Outline}
\tableofcontents
\end{frame}

% 在顶部导航条中使用 \shortauthor 和 \shorttitle
\begin{frame}
\frametitle{\shorttitle}  % 使用 \shorttitle
\framesubtitle{\shortauthor}  % 使用 \shortauthor
内容第一行
\end{frame}

\begin{frame}
\frametitle{\shorttitle}  % 使用 \shorttitle
\framesubtitle{\shortauthor}  % 使用 \shortauthor
内容第二行
\end{frame}

% ... 其他节的内容 ...

\end{document}

在上面的示例中,我们首先定义了\shortauthor\shorttitle命令,并将它们设置为作者和标题的短版本。然后,我们在每个幻灯片的\frametitle\framesubtitle中使用这些短版本来设置顶部导航条的内容,从而实现了将内容分成两行显示。

请根据您的实际需求和内容来调整作者和标题的短版本以及其他文档元素。这只是一种实现方式,您可以根据自己的设计偏好进行修改。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览