![`cleveref` 在笔记页面中不起作用 (beamer)](https://linux22.com/image/392432/%60cleveref%60%20%E5%9C%A8%E7%AC%94%E8%AE%B0%E9%A1%B5%E9%9D%A2%E4%B8%AD%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%20(beamer).png)
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}