当我跑步时:
\documentclass[color=option]{beamer}
\mode<presentation>
\usepackage[english] {babel}
\usepackage{amsmath, amsfonts, graphicx}
\usepackage{bibunits, tikz}
\usetheme{Antibes}
\useoutertheme{progressbar}
\useinnertheme{progressbar}
\usecolortheme{progressbar}
\usefonttheme{progressbar}
\progressbaroptions{headline=sections, frametitle=normal}
出现以下错误:
[1{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <./ima
ges/tree04.jpg>] (./Carro_and_Mira_real_v6.toc)
! Missing } inserted.
<inserted text>
}
l.34 \end{frame}
使用
\progressbaroptions{headline=sections, title=normal}
执行,但树仍然存在。此主题下的上一个条目没有修复。我还从文件中删除了树图像中的图像。
任何帮助是极大的赞赏。
谢谢。
答案1
frametitle
给出的模板定义beamerinnerthemeprogressbar.sty
有缺陷(缺少一个\fi
;我还更改了命令centering
的环境(另一个错误)\centering
。以下代码包含对该缺陷的修复(也有一些空格可能是有意或无意的,所以我没有在那里做任何更改):
\documentclass[color=option]{beamer}
\mode<presentation>
\usepackage[english] {babel}
\usepackage{amsmath, amsfonts, graphicx}
\usepackage{bibunits, tikz}
\usetheme{Antibes}
\useoutertheme{progressbar}
\useinnertheme{progressbar}
\usecolortheme{progressbar}
\usefonttheme{progressbar}
\makeatletter
\defbeamertemplate*{frametitle}{myprogressbar theme}{
\edef\tempa{normal}
\ifx\progressbar@frametitle\tempa
{\centering
\textbf{\insertframetitle}
\par}
\else
\edef\tempa{picture-subsection}
\ifx\progressbar@frametitle\tempa
\parbox[c]{0.13\textwidth}{\pgfuseimage{headlineimage}}
\parbox[c]{0.85\textwidth}{
\usebeamercolor{frametitle}{\scriptsize \ifx\insertsection\@empty\ \else\insertsection\fi\ifx\insertsubsection\@empty\else\ \progressbar@separator\ \insertsubsection\fi}\\[-0.3cm]\rule{0.7\textwidth}{0.5pt}\par%\vskip-1cm\rule{0.7\textwidth}{0.5pt}\par
\textbf{\vphantom{Hp}\insertframetitle}
}
\else
\edef\tempa{picture-section}
\ifx\progressbar@frametitle\tempa
\parbox[c]{0.13\textwidth}{\pgfuseimage{headlineimage}}
\parbox[c]{0.85\textwidth}{
\usebeamercolor{frametitle}{\scriptsize \ifx\insertsection\@empty\ \else\insertsection\fi}\\[-0.3cm]\rule{0.7\textwidth}{0.5pt}\par%\vskip-1cm\rule{0.7\textwidth}{0.5pt}\par{}
\textbf{\vphantom{Hp}\insertframetitle}
}
\else
\parbox[c]{0.13\textwidth}{\pgfuseimage{headlineimage}}
\parbox[c]{0.85\textwidth}{
% %~ \usebeamercolor{frametitle}{\scriptsize \ifx\insertsection\@empty\ \else\insertsection\fi}\\[-0.3cm]\rule{0.7\textwidth}{0.5pt}\par%\vskip-1cm\rule{0.7\textwidth}{0.5pt}\par
\usebeamercolor{frametitle}{\scriptsize\ }\\[-0.3cm]\rule{0.7\textwidth}{0.5pt}\par%\vskip-1cm\rule{0.7\textwidth}{0.5pt}\par
\textbf{\vphantom{Hp}\insertframetitle}
}
\fi
\fi
\fi
}
\makeatother
\progressbaroptions{headline=sections, frametitle=normal}
\begin{document}
\begin{frame}
\frametitle{Test frame}
test
\end{frame}
\end{document}
请联系软件包作者并报告该错误。