cleveref
包在我的 Beamer 框架中运行良好,但当涉及到笔记页面时。标签运行良好,cleveref
可以引用笔记页面之外的项目,但不能引用其中的项目。
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{wolverine}
\useoutertheme[]{split}
\useinnertheme{inmargin}
\setbeameroption{show notes}
\setbeamersize{description width=0mm}
\renewcommand{\encodingdefault}{T1}
\usepackage{cleveref}
\crefformat{equation}{Eq. (#1)}
\begin{document}
\begin{frame}{}
\begin{block}{Derivation of Equivalent Impedance}
\begin{description}[<+->]
\item[Item 1] Item 1
\item[Item 2] Item 2
\note<.>{\begin{equation}e = m c^{2}\label{eq}\end{equation}\cref{eq} is what we want.}
\item[Item 3] Item 3
\begin{equation}e = m c^{2}\label{eqx}\end{equation}\cref{eqx} is what we want.
\end{description}
\end{block}\end{frame}
\end{document}
答案1
作为一种解决方法,你可以将注释放在框架之外:
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{wolverine}
\useoutertheme[]{split}
\useinnertheme{inmargin}
\setbeameroption{show notes}
\setbeamersize{description width=0mm}
%\renewcommand{\encodingdefault}{T1}
\usepackage{cleveref}
\crefformat{equation}{Eq. (#1)}
\begin{document}
\begin{frame}<-2>[label=foo]
\begin{block}{Derivation of Equivalent Impedance}
\begin{description}[<+->]
\item[Item 1] Item 1
\item[Item 2] Item 2
\item[Item 3] Item 3
\begin{equation}e = m c^{2}\label{eqx}\end{equation}\cref{eqx} is what we want.
\end{description}
\end{block}\end{frame}
\note{\begin{equation}e = m c^{2}\label{eq}\end{equation}\cref{eq} is what we want.}
\againframe<3->{foo}
\end{document}