From d5d8e98fbaebf3c6aa19d5287320c1965eb192b8 Mon Sep 17 00:00:00 2001 From: zohooo Date: Sat, 16 May 2015 14:41:29 +0800 Subject: [PATCH] document beamerouterthemedefault.sty --- beamer/themes/outer/beamerouterthemedefault.sty | 3 +++ beamercode.tex | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/beamer/themes/outer/beamerouterthemedefault.sty b/beamer/themes/outer/beamerouterthemedefault.sty index fa19b36..df8f72b 100644 --- a/beamer/themes/outer/beamerouterthemedefault.sty +++ b/beamer/themes/outer/beamerouterthemedefault.sty @@ -1,3 +1,4 @@ +%% % -*- coding: utf-8 -*- % Copyright 2007 by Till Tantau % % This file may be distributed and/or modified @@ -148,6 +149,8 @@ % Frame title: default +%% 在 \sty{beamerbaseframe} 的 \env{beamer@frameslide} 环境的定义中,在插入 |frametitle| 模板前有个空白 |\vbox{}|。 +%% 因此 |frametitle| 上面会有行间距空白。在背景颜色非空时很难看,所以要用 \cs{nointerlineskip} 去掉这个多余空白。 \defbeamertemplate*{frametitle}{default}[1][left] { \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}% diff --git a/beamercode.tex b/beamercode.tex index 5759676..1a361bc 100644 --- a/beamercode.tex +++ b/beamercode.tex @@ -103,5 +103,5 @@ \addstyle[/themes/font]{fontthemedefault} \addstyle[/themes/color]{colorthemedefault} \addstyle[/themes/inner]{innerthemedefault} -\addstyle[/themes/outer]{outerthemedefault} +\addmdstyle[/themes/outer]{outerthemedefault} \end{document}