Beamer 顶部导航栏带有长部分标题

Beamer 顶部导航栏带有长部分标题

所以我有这个有 5 个部分的 beamer 演示文稿。每个部分都是一个长标题,因此顶部的导航栏被截断了。

我不想改变它的外观。但是,我是否可以保持部分标题不变,但在顶部导航栏上它会显示其他内容?

例如,将章节标题保留为:

  1. 很长的章节标题 1
  2. 很长的章节标题 2
  3. ETC

但在顶部导航栏上显示类似以下内容:

  1. 陆战队1
  2. 登陆艇 2
  3. 登陆艇 3

ETC。

下面是两张图片。一张是当前输出,一张是期望输出。

电流输出:

在此处输入图片描述

期望输出:

在此处输入图片描述

编辑:下面的 MWE 包含完整的序言:

    \documentclass[10pt]{beamer}%
    \usepackage{appendixnumberbeamer}
    \usepackage{caption}
    \usepackage{subcaption}
    \usepackage{booktabs}
    \usepackage{bbm}
    \usepackage{amsmath}
    \usepackage{arydshln}
    \usepackage{graphicx}
    \usepackage{ mathrsfs }
    \usepackage{multirow}
    \usepackage{textpos}

    \definecolor{darkblue}{RGB}{140,140,172}
    \definecolor{bluegreen}{RGB}{173,173,224}
    \definecolor{lightbluegreen}{RGB}{204,0,51}
    \definecolor{cyan}{RGB}{30,24,83}
    \usetheme{default}
    \useinnertheme {rectangles}
    \setbeamercolor{enumerate items}{fg=lightbluegreen}
    \setbeamertemplate{blocks}[rounded][shadow=true]
    \setbeamertemplate{items}[circle] %bola em todos bullets
    \setbeamertemplate{itemize subitem}[default]
    \setbeamertemplate{section in head/foot shaded}{%
    \color{darkblue}\insertsectionhead\ \ \ \ |
    }
    \setbeamertemplate{section in head/foot}{%
    \insertsectionhead\color{darkblue}\ \ \ \ |
    }
    \setbeamertemplate{headline}{%
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{myheadline}
    \Tiny\hspace*{4mm} {\hspace*{2ex}\color{white}|\hspace*{-2ex}}\insertsectionnavigationhorizontal{0ex}{}{}
    \end{beamercolorbox}%
    }

    \setbeamertemplate{sidebar right}{}
    \setbeamertemplate{footline}{%
    \hfill\usebeamertemplate***{navigation symbols}
    \hspace{0cm}\color{bluegreen}\insertframenumber{}/\color{bluegreen}\inserttotalframenumber}
    \setbeamertemplate{navigation symbols}{}
    \setbeamercolor{block title}{fg = white, bg =darkblue}
    \setbeamercolor{block body}{bg = white}
    \setbeamerfont{frametitle}{size = \large}
    \setbeamercolor{alerted text}{fg=darkblue}
    \captionsetup{compatibility=false}
    \def\code#1{\texttt{#1}}
    \newcommand\Fontvi{\fontsize{6}{7.2}\selectfont}
    \setbeamersize{text margin left=10pt,text margin right=10pt}
    \captionsetup{font=scriptsize,labelfont=scriptsize}
    \newenvironment{wideitemize}{\itemize\addtolength{\itemsep}{10pt}}{\enditemize}
    \usepackage[beamer,customcolors]{hf-tikz}
    \usepackage{tikz}
    \tikzset{hl/.style={
        set fill color=black!00,
        set border color=red!80!black,
      },
    }

    \AtBeginSection[]
    {
     \begin{frame}
     \frametitle{Outline}
     \tableofcontents[currentsection]
     \addtocounter{framenumber}{-1}
     \end{frame}
    }

    \usetikzlibrary{shapes.callouts}
    \usepackage{tikz}
    \usepackage{pgf,tikz}
    \usetikzlibrary{patterns,arrows,decorations.pathreplacing}
    \usepackage[english]{babel}



    \begin{document}

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


    \section{LST 1}{Loooooooooooooooooooooooong Section Title 1}

    \begin{frame}
      Placeholder
    \end{frame}

    \section{LST 2}{Loooooooooooooooooooooooong Section Title 2}

    \begin{frame}
      Placeholder
    \end{frame} 

\begin{frame}
  Placeholder
\end{frame}

\end{document}

答案1

您可以使用 section 命令的可选参数,如下所示:

\section[LST 1] {Loooooooooooooooooooooooong Section Title 1}

相关内容