在演示模板 Javeriana 中https://www.overleaf.com/latex/templates/presentation-template-javeriana/phkznvynkhvn为什么更改页脚高度会导致标题页图像失真?更准确地说,当我在 beamerthemesintef.sty 文件中将默认设置 ''ht=5mm,dp=3mm'' 更改为 ''ht=2.6mm,dp=0.7mm'' 时,标题页中会缺少一个角(见下图)。但是,默认设置没有问题。如何修复此问题?。
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[wd=\textwidth,ht=5mm,dp=3mm,rightskip=1cm,leftskip=1cm]{footline}
\insertframenumber/\inserttotalframenumber
\ifstrempty{\@footlinepayoff}{}{%
\usebeamerfont{footline}\hfill\@footlinepayoff
}
\end{beamercolorbox}
}
答案1
如果减少脚注线的高度,文本区域的高度将变大,并且垂直居中的标题将向下移动。
为了避免它遮挡背景图像,您可以将标题的背景颜色设置为空:
\documentclass{beamer}
\usepackage{
%amsfonts,amsmath,
oldgerm}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{graphicx}
\usepackage{listings}
%\usepackage{hyperref}
\usepackage{verbatim}
\usepackage[export]{adjustbox}
\usetheme{sintef}
\newcommand{\testcolor}[1]{\colorbox{#1}{\textcolor{#1}{test}}~\texttt{#1}}
\usefonttheme[onlymath]{serif}
\titlebackground*{assets/background}
\newcommand{\hrefcol}[2]{\textcolor{cyan}{\href{#1}{#2}}}
\title{Big data - Parte 2}
\author{\href{mailto:[email protected]}{Oscar Bustos}}
\makeatletter
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[wd=\textwidth,ht=2.6mm,dp=0.7mm,rightskip=1cm,leftskip=1cm]{footline}
\insertframenumber/\inserttotalframenumber
\ifstrempty{\@footlinepayoff}{}{%
\usebeamerfont{footline}\hfill\@footlinepayoff
}
\end{beamercolorbox}
}
\makeatother
\setbeamercolor{title}{bg=}
\begin{document}
\maketitle
\end{document}