我正在尝试使用 beamer 为下学期要教的一门课程制作幻灯片,但遇到了 vbox 过满的问题,使用 metropolis 主题时无法诊断。下面是最简单的示例。请注意,我使用的是 pdflatex(用于微类型功能):
% !TEX program = pdflatex
% !TEX spellcheck = en_US
\documentclass[aspectratio=169]{beamer}
% Font Settings
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[autostyle,english=american]{csquotes}
\usepackage[sfdefault,scaled=0.85,lf]{FiraSans}
\usepackage[scaled=0.85]{FiraMono}
\usepackage{newtxsf}
\usepackage[protrusion,expansion,kerning,spacing,final]{microtype}
\microtypecontext{spacing=nonfrench}
% PDF Bookmarks
\usepackage{bookmark}
% Beamer Setup
\usetheme{metropolis}
\usecolortheme{owl}
% AMS Math Packages
\usepackage{amsmath}
\title{A minimal example}
\date{\today}
\author{Matthias Vogelgesang}
\institute{Centre for Modern Beamer Themes}
\begin{document}
\maketitle %<-- here is where i get an "Overfull \vbox (15.63992pt too high)"
\section{First Section}
\begin{frame}{First Frame}
Hello, world!
\end{frame}
\end{document}
我基本上从软件包文档中提取了这个示例,但加入了我自己的序言。据我所知,我拥有除 babel 之外所有软件包的当前版本(在我的系统上是 3.18)。
答案1
主题对于虚假空格不太谨慎。如果从标题页定义中删除一个空格,警告就会消失(但还有更多...):
\documentclass[aspectratio=169]{beamer}
% Font Settings
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[autostyle,english=american]{csquotes}
\usepackage[sfdefault,scaled=0.85,lf]{FiraSans}
\usepackage[scaled=0.85]{FiraMono}
\usepackage{newtxsf}
\usepackage[protrusion,expansion,kerning,spacing,final]{microtype}
\microtypecontext{spacing=nonfrench}
% PDF Bookmarks
\usepackage{bookmark}
% Beamer Setup
\usetheme{metropolis}
\usecolortheme{owl}
% AMS Math Packages
\usepackage{amsmath}
\title{A minimal example}
\date{\today}
\author{Matthias Vogelgesang}
\institute{Centre for Modern Beamer Themes}
\def\titlepage{%
\usebeamertemplate{title page}%<---
}
\begin{document}
\maketitle %<-- here is where i get an "Overfull \vbox (15.63992pt too high)"
\section{First Section}
\begin{frame}{First Frame}
Hello, world!
\end{frame}
\end{document}