如何增加Frankfurt
幻灯片的标题大小?
我想要两行点。按照这个高度,它们被切成两半。
谢谢
\documentclass{beamer}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage{float}
\usepackage[pdftex]{hyperref}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{footline}[frame number]
\usetheme{Frankfurt}
\makeatletter
\beamer@compressfalse
\makeatother
\usefonttheme{serif}
\definecolor{darkred}{rgb}{0.8,0,0}
\setbeamercolor{structure}{fg=darkred}
\setbeamercolor{block title}{fg=white}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!100!bg, fg=white}
\setbeamertemplate{frametitle}{\insertframetitle\\
\usebeamerfont{framesubtitle}\insertframesubtitle}
\setbeamerfont{frametitle}{size=\scriptsize}
\setbeamerfont{framesubtitle}{size=\Large}
\title{Previsão da Taxa de Câmbio através de modelos baseados na Regra de Taylor}
\date{14 de Fevereiro de 2014}
\begin{document}
(...)
\end{document}
答案1
您需要重新定义headline
模板和使用的阴影(在我的示例代码中,我用% NEW
更改了一些长度的行来表示,以防您需要进行一些调整):
\documentclass{beamer}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage{float}
\usepackage{subfig}
\usetheme{Frankfurt}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{footline}[frame number]
\usefonttheme{serif}
\definecolor{darkred}{rgb}{0.8,0,0}
\setbeamercolor{structure}{fg=darkred}
\setbeamercolor{block title}{fg=white}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!100!bg, fg=white}
\setbeamertemplate{frametitle}{\insertframetitle\\
\usebeamerfont{framesubtitle}\insertframesubtitle}
\setbeamerfont{frametitle}{size=\scriptsize}
\setbeamerfont{framesubtitle}{size=\Large}
\makeatletter
\beamer@compressfalse
\AtBeginDocument{
\usebeamerfont*{headline}
\colorlet{global.bg}{bg}
\pgfdeclareverticalshading{beamer@barshade}{\the\paperwidth}{%
color(0ex)=(global.bg);%
color(1ex)=(section in head/foot.bg);%
color(9ex)=(section in head/foot.bg)% HERE
}
}
\setbeamertemplate{headline}
{%
\pgfuseshading{beamer@barshade}%
\ifbeamer@sb@subsection%
\vskip-9.75ex%
\else%
\vskip-9ex% HERE
\fi%
\begin{beamercolorbox}[ignorebg,ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
\ifbeamer@sb@subsection%
\begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}\insertsubsectionhead
\end{beamercolorbox}%
\fi%
\vskip2ex% HERE
}%
\makeatother
\author{My name}
\title{My presentation}
\institute{My institute}
\newcommand\Text{\frame{\frametitle{test}test}}
\newcommand\Textv{\Text\Text\Text\Text\Text}
\begin{document}
\section{Test section}
\begin{frame}
\begin{itemize}
\item A
\item B
\end{itemize}
\begin{block}{title}
test block
\end{block}
\end{frame}
\subsection{Test subsection}
\Textv\Textv
\subsection{Test subsection}
\Textv
\section{Test section}
\subsection{Test subsection}
\Textv
\subsection{Test subsection}
\Textv
\end{document}
但是请注意,该解决方案假设只有两行小框架(点);即每个部分的子部分少于三个。