为什么 latex-beamer 中的注释不起作用?

为什么 latex-beamer 中的注释不起作用?

我想使用 latex-beamer 的注释功能,根据用户指南,工作如下:我\note{Sometext}在幻灯片上的某处添加了一个,如果我现在使用该选项打开注释打印show notes,则应该在当前幻灯片之后插入另一张幻灯片,其中包含节点“Sometext”。

这对我来说不起作用:注释总是像这样显示: 显示错误

show notes这不是我所期望的,也不是文档中所说的。事实上,如果将 替换为,则无法禁用注释打印hide notes。它们始终会打印,但不在自己的页面上。

请参阅生成上述演示文稿的最小工作示例。

\documentclass[18pt]{beamer}

% Many imports
\usepackage{mdwlist}
% More imports

\usetheme{Warsaw}    
\setbeameroption{show notes}

\begin{document}
\begin{frame}
  \begin{itemize}
    \item Eggs
    \item Plants
    \item Animals \note{Animals are quite huge}
  \end{itemize}
\end{frame}

\end{document}

答案1

这个问题是由于包括mdwlist我在演示中包含了这个包而导致的。当删除此包mdwlist导入时,一切都按预期工作:

正确的表达方式

mdwlist 包与 latex-beamer 非常不兼容:当在列表中包含另一个项目时,如下所示:

\item<2> Animals \note<2>{Animals are quite huge}

包含mdwlist会导致以下(非常奇怪的)错误,这与 mdwlist 包无关:

./test.tex:15: LaTeX Error: \begin{altenv} on input line 15 ended by \end{itemize}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.15 \end{frame}


./test.tex:15: LaTeX Error: \begin{uncoverenv} on input line 15 ended by \end{beamer@framepauses}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.15 \end{frame}

./test.tex:15: Extra }, or forgotten \endgroup.
\endbeamer@frameslide ...amer@framepauses}\egroup 
                                                  \ifx \beamer@frametitle \@...
l.15 \end{frame}


./test.tex:15: LaTeX Error: \begin{actionenv} on input line 15 ended by \end{beamer@frameslide}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.15 \end{frame}


./test.tex:17: LaTeX Error: \begin{itemize} on input line 15 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.17 \end{document}

(/home/dominik/Documents/Diplomarbeit/presentation/build/test.aux)
./test.tex:17: You can't use `\end' in internal vertical mode.
\enddocument ... \endgroup \deadcycles \z@ \@@end 

l.17 \end{document}


./test.tex:17: LaTeX Error: \begin{itemize} on input line 15 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.17 \end{document}

)
! Emergency stop.
<*> test.tex

相关内容