我一直在修改一个名为都会尝试将导航点添加到每张幻灯片的顶部。但是,导航点并未显示在文本下方的中央。
有人知道如何解决这个问题吗?我试过发布的解决方案这里没有成功。
这是我的代码:
% Must be Compiled with with LuaLaTeX (x2) then View the PDF to get the Custom Font
\documentclass[10pt]{beamer}
% Theme Setup %
\usetheme[progressbar=frametitle, titleformat=smallcaps, sectionpage=none]{metropolis}
\useoutertheme[subsection=false, footline=authortitle]{miniframes}
% Packages %
\usepackage{appendixnumberbeamer}
\usepackage{booktabs}
\usepackage{bookmark}
\usepackage[scale=2]{ccicons}
\usepackage{pgfplots}
\usepackage{xspace}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{graphicx}
\usepgfplotslibrary{dateplot}
\definecolor{light-gray}{gray}{0.75}
% Code to Add Navigation Dots to the Default Metropolis Theme %
% This section removes the navigation dot for the title page
\makeatletter
\let\old@beamer@writeslidentry\beamer@writeslidentry
\def\beamer@writeslidentry{%
\expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}
{%else
\clearpage\beamer@notesactions%
}
}
\makeatother
% This section adds the navigation dots for all slides
\usepackage{remreset}% tiny package containing just the \@removefromreset command
\makeatletter
\@removefromreset{subsection}{section}
\makeatother
\setcounter{subsection}{1}
答案1
我找到了这个问题的答案这里。添加此代码可修复此问题:
\usepackage{remreset}% tiny package containing just the \@removefromreset command
\makeatletter
\@removefromreset{subsection}{section}
\beamer@compresstrue # THIS LINE FIXED THE ISSUE
\makeatother
\setcounter{subsection}{1}