我有以下最小工作示例,它生成一组幻灯片,其中导航符号稍微靠近下一个图形片段,符合我的口味。我想将它们向上移动一点,大概是 ~.2em — 有什么想法可以做到这一点吗?
我查阅了 beamerclass 文档,显然这些符号被称为“迷你框架”,但似乎没有任何可用选项可以控制它们的垂直定位。
\documentclass[xcolor=table,aspectratio=169,dvipsnames,english]{beamer}
\usepackage{bm}
\usepackage{color}
% Custom beamer styling and colors
\setbeamersize{text margin left=0.8em,text margin right=0.8em}
\usecolortheme[RGB={199,199,199}]{structure}
\usetheme{Dresden}
\setbeamertemplate{navigation symbols}{}
\title[subtitle]{title}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\subsection{Key concerns}
\begin{frame}{Raw Data Recourse}
\begin{itemize}
\item Required for data integration (e.g. multi-center studies) and data reuse.
\item Prevents undocumented “fixes”, such as:
\end{itemize}
\end{frame}
\section{Workflow}
\subsection{Features and overview}
\begin{frame}{Repositing Strucure}
\begin{itemize}
\item Bruker Paravision directory structure is automatically resolved
\item Corresponding text files are automatically queried for BIDS fields
\end{itemize}
\end{frame}
\end{document}
答案1
根据文件中的定义,beamerouterthememiniframes.sty
您可以创建自己的标题模板。
在原始模板中\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
使用:
您可以根据您的需要进行修改\vskip1pt\insertnavigation{\paperwidth}\vskip3pt
:
或者\vskip0pt\insertnavigation{\paperwidth}\vskip4pt
:
下面是完整的示例代码,其中我用以下内容突出显示了重要的一行%<-----
:
\documentclass[xcolor=table,aspectratio=169,dvipsnames,english]{beamer}
\usepackage{bm}
\usepackage{color}
% Custom beamer styling and colors
\setbeamersize{text margin left=0.8em,text margin right=0.8em}
\usecolortheme[RGB={199,199,199}]{structure}
\usetheme{Dresden}
\setbeamertemplate{navigation symbols}{}
\makeatletter
\defbeamertemplate*{headline}{my miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}{section in head/foot}
\vskip0pt\insertnavigation{\paperwidth}\vskip4pt % <-----------------
\end{beamercolorbox}%
\ifbeamer@theme@subsection%
\begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\fi%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\makeatother
\title[subtitle]{title}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\subsection{Key concerns}
\begin{frame}{Raw Data Recourse}
\end{frame}
\end{document}