我刚刚安装了 Linux min 19.3,完整版 texlive。奇怪的是,任何 beamer 文件在编译时都会产生大量错误。例如,如果我编译以下 MWE
\documentclass[beamer,usepdftitle=false]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{multimedia}
\begin{document}
\title[]{\textbf{MWE}}
\maketitle
\end{document}
第一个错误消息如下:
! Undefined control sequence.
l.41 \newrobustcmd
*\only{\@ifnextchar<{\beamer@only}{\beamer@@only}}
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.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.41 \newrobustcmd*
\only{\@ifnextchar<{\beamer@only}{\beamer@@only}}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
l.41 \newrobustcmd*\only
{\@ifnextchar<{\beamer@only}{\beamer@@only}}
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.
到目前为止,非 beamer tex 文件都可以。