- 我想使用ocg-p 软件包在一份文档中。
- 该文件应用 来编译
luatex
。 - 似乎ocg-p 软件包仅适用于
pdflatex
和xelatex
。 - 问:有没有类似的包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}