Latex Beamer:增加节导航栏中节之间的间距
我想修改我的Latex Beamer模板。 因此,我想增加节导航栏中显示的节之间的空间。目前,这些部分是左缩进的,但这些部分是靠在一起的 我使用以下代码生成标题:Latex Beamer:增加节导航栏中节之间的间距,latex,beamer,Latex,Beamer,我想修改我的Latex Beamer模板。 因此,我想增加节导航栏中显示的节之间的空间。目前,这些部分是左缩进的,但这些部分是靠在一起的 我使用以下代码生成标题: setbeamertemplate{headline}{% \leavevmode% \hbox{% \begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=1.125ex]{palette tertiary}% \insertsectionnav
setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=1.125ex]{palette tertiary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
如何修改显示部分之间的间距?在导航使其向左齐平后插入的tipple fill
plus1filll
。如果将其删除,分区将自动分布在可用的纸张宽度内:
\documentclass{beamer}
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=1.125ex]{palette tertiary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{}
\end{beamercolorbox}%
}
}
\begin{document}
\section{title}
\begin{frame}
content...
\end{frame}
\section{title}
\begin{frame}
content...
\end{frame}
\end{document}
如果要保持各部分向左齐平,只需在以下部分之间添加一些额外的空间:
\documentclass{beamer}
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=1.125ex]{palette tertiary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
\setbeamertemplate{section in head/foot}{\insertsectionhead\hspace{0.5cm}}
\begin{document}
\section{title}
\begin{frame}
content...
\end{frame}
\section{title}
\begin{frame}
content...
\end{frame}
\end{document}