XeLateX
自昨天更新以来, Beamer 物品球在编译时丢失TeXlive
,但是,相同的代码可以用于pdfLaTeX
。请提供任何解决方案。这是我的 MWE:
\documentclass{beamer}
\setbeamertemplate{itemize item}[ball]
\setbeamertemplate{enumerate item}[ball]
\begin{document}
\begin{frame}
\frametitle{A tested title}
text
\begin{enumerate}
\item this is an item
\end{enumerate}
text3
\begin{itemize}
\item this is an item
\end{itemize}
\end{frame}
\end{document}
答案1
这是由于此处报告的问题https://github.com/pgf-tikz/pgf/issues/928 该问题已在源中修复,因此应该很快就会解决。
在此之前,您可以手动添加修复程序
\documentclass{beamer}
\setbeamertemplate{itemize item}[ball]
\setbeamertemplate{enumerate item}[ball]
\makeatletter
\def\pgfutil@insertatbegincurrentpagefrombox#1{%
\edef\pgf@temp{\the\wd\pgfutil@abb}%
\global\setbox\pgfutil@abb\hbox{%
\unhbox\pgfutil@abb%
\hskip\dimexpr2in-2\hoffset-\pgf@temp\relax% changed
#1%
\hskip\dimexpr-2in-2\hoffset\relax% new
}%
}
\makeatother
\begin{document}
\begin{frame}
\frametitle{A tested title}
text
\begin{enumerate}
\item this is an item
\end{enumerate}
text3
\begin{itemize}
\item this is an item
\end{itemize}
\end{frame}
\end{document}