升级时 Beamer 基本文件出现错误,现在无法让任何 Beamer 版本运行

升级时 Beamer 基本文件出现错误,现在无法让任何 Beamer 版本运行

我安装了 Beamer 3.12,从 3.07 升级而来。现在,运行下面这个基本文件时出现错误。尝试切换到其他版本,但总是出现此错误。我所做的更新是将 beamer 包从 bitbucket 添加到 ~/texmf/tex/latex/beamer。甚至尝试将 git 放入其中,然后我运行 sudo texhash 和 texhash ~/texmf。:

 \documentclass[ignorenonframetext,handout]{beamer}
\setbeameroption{show notes}
% \usetheme[invert]{wkbeamer}
% \hypersetup{pdfpagemode={UseNone}} % Forces not to go into fullscreen mode like default in wk
\title{A Neurobiologically Plausible Computational Model of Sound and Speech Recognition}
\date{November 24, 2011}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\end{document}

它给了我这个错误:

--- TeX said ---
<inserted text> 
                \par 
l.13 \ProvidesClassRCS
                       $Header$

然后从日志文件中:

Runaway argument?
Header$ \ProvidesPackage {\beamer@rcsfile }[\beamer@rcsdate \space (r\ETC.
/home/bigtyme/texmf/tex/latex/beamer3.12/base/beamer.cls:13: File ended while s
canning use of \beamer@parseid.
<inserted text> 
                \par 
l.13 \ProvidesClassRCS
                       $Header$
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

Runaway argument?
Header$ \ProvidesClass {\beamer@rcsfile }[\beamer@rcsdate \space deve\ETC.
/home/bigtyme/texmf/tex/latex/beamer3.12/base/beamer.cls:15: Paragraph ended be
fore \beamer@parseid was complete.
<to be read again> 
                   \par 
l.15 

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

(/home/bigtyme/texmf/tex/latex/beamer3.12/base/beamerbasemodes.sty
Runaway argument?
Header$ \ProvidesPackage {\beamer@rcsfile }[\beamer@rcsdate \space (r\ETC.
/home/bigtyme/texmf/tex/latex/beamer3.12/base/beamerbasemodes.sty:12: Paragraph
 ended before \beamer@parseid was complete.
<to be read again> 
                   \par 
l.12 

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

\beamer@tempbox=\box26
\beamer@tempcount=\count79
\c@beamerpauses=\count80
(/home/bigtyme/texmf/tex/latex/beamer3.12/base/beamerbasedecode.sty
Runaway argument?
Header$ \ProvidesPackage {\beamer@rcsfile }[\beamer@rcsdate \space (r\ETC.
/home/bigtyme/texmf/tex/latex/beamer3.12/base/beamerbasedecode.sty:12: Paragrap
h ended before \beamer@parseid was complete.
<to be read again> 
                   \par 
l.12 

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

\beamer@slideinframe=\count81
\beamer@minimum=\count82
)

答案1

当人们beamer直接从开发存储库下载并设置 Mercurial 来替换代码中的关键字时,就会发生这种情况。(beamer设置为使用类似 SVN 的关键字。)beamerCTAN 上的发布版本已做出相应替换,该版本供 TeX Live 和 MiKTeX 使用。

答案2

正如 Joseph Wright 在他的回答中解释的那样,出现此问题的原因是您从开发存储库安装了 Beamer。您有两个选择,第一个是使用 CTAN 版本,第二个是按照 Vedran 的说明进行操作beamerbasercs 中的 ClassRCS 和 PackageRCS 存在问题 问题。它们为我工作。

答案3

这是我作为答案发表的原始评论:

通常最好使用发行版中的相应工具来更新软件包 - 通常存在难以预测的依赖关系。如果您使用的是 Linux,则建议使用 TeXLive 2011

http://www.tug.org/texlive/

TeXLive 2011 的更新工具是tlmgr

相关内容