ocg-p:LuaTeX 中的可选内容组

ocg-p:LuaTeX 中的可选内容组

在此处输入图片描述

(CTAN截图)


在此处输入图片描述

(Overleaf 设置)


\documentclass{beamer}

\usepackage{ocg-p}

\begin{document}

\section{Section 1}    
\begin{frame}
\frametitle{\insertsection}

\end{frame} 
 
\end{document}

(MWE)


l.30   \ifnum\pdftexversion
                         <120
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Missing number, treated as zero.
<to be read again> 
<
l.30   \ifnum\pdftexversion<
                          120
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

(错误信息)


答案1

我真傻……ocgx2 包正是如此。

\documentclass{beamer}

\usepackage{ocgx2} % <-- Modified!

\begin{document}

\section{Section 1}    
\begin{frame}
\frametitle{\insertsection}

\end{frame} 
 
\end{document}

在此处输入图片描述

相关内容