投影机和逐字记录

投影机和逐字记录

如果我取消注释行,为什么以下 mwe 不起作用\end{frame}

\documentclass[xcolor={dvipsnames,handout,svgnames,table}]{beamer}
\usepackage[utf8]{inputenc}

\begin{document}
\begin{frame}[fragile]{Test uporabe paketa "xcolor"}
\begin{verbatim}
    \documentclass[xcolor={dvipsnames,handout,svgnames,table}]{beamer}
    \usepackage[utf8]{inputenc}

    \begin{document}
    \begin{frame}[fragile]{Test uporabe paketa "xcolor"}
        \begin{center}
    \begin{tabular}{>{\columncolor{DarkMagenta}\color{white}}c % svgnames
                    >{\columncolor{Apricot}}c}                 % dvipsnames
    aaa & bbb   \\
    ccc & ddd   \\
    \end{tabular}
        \end{center}
%    \end{frame}      % <---
    \end{document}
\end{verbatim}
\end{frame}
\end{document}

我收到错误:

Runaway argument?
    \documentclass[xcolor={dvipsnames,handout,svgnames,table}]{b
! File ended while scaning use of \@xverbatim

我使用最近的beamer

日志文件(1411 的第一行和最后几行)

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6650 64-bit) (preloaded format=pdflatex 2018.4.7)  8 APR 2018 22:39
entering extended mode
**C:/Users/Zarko/Downloads/LaTeX-SE/beamer/beamer-xcolor.tex
(C:/Users/Zarko/Downloads/LaTeX-SE/beamer/beamer-xcolor.tex
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 21 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\beamer\beamer.cls"
Document Class: beamer 2018/02/20 v3.50 A class for typesetting presentations
("C:\Program Files\MiKTeX 2.9\tex\latex\beamer\beamerbasemodes.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\etoolbox\etoolbox.sty"
Package: etoolbox 2018/02/11 v2.5e e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count79
)
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 21.
Package rerunfilecheck Info: File `beamer-xcolor.out' has not changed.
(rerunfilecheck)             Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
! You can't use `\end' in internal vertical mode.
\enddocument ...cumenthook \deadcycles \z@ \@@end 

l.21     \end{document}

? 

! LaTeX Error: \begin{beamer@frameslide} on input line 20 ended by \end{documen
t}.

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

l.21     \end{document}

? 
! Missing } inserted.
<inserted text> 
                }
l.21     \end{document}

? 

! LaTeX Error: Something's wrong--perhaps a missing \item.

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

l.22     \end{verbatim}

? 

! LaTeX Error: \begin{document} ended by \end{verbatim}.

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

l.22     \end{verbatim}

? 
! Extra \endgroup.
<recently read> \endgroup 

l.22     \end{verbatim}

? 
! Emergency stop.
<recently read> \endgroup 

l.22     \end{verbatim}

End of file on the terminal!


Here is how much of TeX's memory you used:
 17140 strings out of 494605
 319476 string characters out of 3168337
 399027 words of memory out of 3000000
 20120 multiletter control sequences out of 15000+200000
 5020 words of font info for 19 fonts, out of 3000000 for 9000
 390 hyphenation exceptions out of 8191
 56i,5n,55p,852b,317s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

答案1

该问题在 beamer 3.51 或更高版本中不再存在。

如果可能的话,你应该更新你的 TeX 发行版安装当前版本。如果无法做到这一点,例如,如果您只想更改这一个包,或者您没有权限更新整个发行版,则需要在本地安装包。此选项应被视为最后的手段,因为对于更复杂的包,可能存在包依赖性,这会使本地安装更加复杂且容易出错。

相关内容