我正在为我的 Beamer 演示文稿使用模板样式。它具有顶部和底部两个彩色条的出色功能。我真的很想让这些条有点透明。
我试图改变样式文件的这一部分,应该是它,但是它停止了工作。
\setbeamertemplate{footline}
{%
\ifnum\c@framenumber=1
\else
\begin{beamercolorbox}[wd=0.95\paperwidth,right,dp=2ex]{page number}
\insertframenumber/\inserttotalframenumber
\end{beamercolorbox}
\fi%
\begin{beamercolorbox}[colsep=1.25pt]{lower separation line foot}
\end{beamercolorbox}
}
这是 MWE
\documentclass[11pt]{beamer}
\usetheme{bjeldak.sty}
\setbeamertemplate{navigation symbols}[horizontal]
\title{MWE}
\author{ME}
\date{\today}
\begin{document}
{%
\setbeamertemplate{headline}{}
\frame{\titlepage}
}
\begin{frame}{Hello}
Hi
\end{frame}
\end{document}
这是我的文件夹中名为“beamerthemebjeldak.sty.sty”的样式文件:
% Insipired by Cameron Bracken's theme originally posted
% here: http://cameron.bracken.bz/beamer-template
% January 2009
% Modifications done by Martin Bjeldbak Madsen
% June 2014
\mode<presentation>
\RequirePackage{palatino}
\RequirePackage{mathpazo}
\usepackage{transparent}
\useoutertheme[subsection=false,shadow]{miniframes}
\useinnertheme{default}
\usefonttheme{serif}
\setbeamertemplate{footline}
{%
\ifnum\c@framenumber=1
\else
\begin{beamercolorbox}[wd=0.95\paperwidth,right,dp=2ex]{page number}
\insertframenumber/\inserttotalframenumber
\end{beamercolorbox}
\fi%
\begin{beamercolorbox}[colsep=1.25pt]{lower separation line foot}
\end{beamercolorbox}
}
% Display a slide before the current section with overview inf
\AtBeginSection[]
{%
\begin{frame}
\frametitle{Overview}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
}
\setbeamerfont{title like}{shape=\scshape}
\setbeamerfont{frametitle}{shape=\scshape}
\setbeamerfont{section in head/foot}{shape=\scshape,size=\tiny}
\setbeamertemplate{navigation symbols}{} % hide bottom nav buttons
\setbeamercovered{transparent} % don't hide strip-teased bullet points
\definecolor{barcolor}{RGB}{238,123,0}
\setbeamercolor{lower separation line head}{bg=barcolor}
\setbeamercolor{lower separation line foot}{bg=barcolor}
\setbeamercolor{normal text}{fg=black,bg=white}
\setbeamercolor{alerted text}{fg=red}
\setbeamercolor{example text}{fg=black}
\setbeamercolor{structure}{fg=black}
\setbeamercolor{palette tertiary}{fg=black,bg=black!10}
\setbeamercolor{palette quaternary}{fg=black,bg=black!10}
\mode<all>
答案1
Beamer 使用 pgf 绘制这些框。因此,您可以通过更改\pgfsetfillopacity
\documentclass[11pt]{beamer}
\usetheme{bjeldak}
\addtobeamertemplate{footline}{\pgfsetfillopacity{0.5}}{ \pgfsetfillopacity{1}}
\addtobeamertemplate{headline}{\pgfsetfillopacity{0.5}}{ \pgfsetfillopacity{1}}
\title{MWE}
\author{ME}
\date{\today}
\begin{document}
{%
\setbeamertemplate{headline}{}
\frame{\titlepage}
}
\begin{frame}{Hello}
Hi
\end{frame}
\end{document}