由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
TeX版 - beamer question
相关主题
Beamer 和 Miktex, Texlive啥关系奇怪的latex error。
latex手动装package问题 (转载)Latex slides package installaton prob~
how to make a newcommand for verbatimWinEdt, Latex, and Beamer
菜鸟请教安装miktex 的package 时遇到的问题
miktex插路中文字体一问
如何在Linux下使用LaTeX阿Missing packages
至于latex做slides嘛Linux 上面 Auctex 怎么和 xetex 一起用?
请介绍个最简易的在LaTex里输入中文的方法what do you do while waiting for the compiling?
相关话题的讨论汇总
话题: beamer话题: end话题: frame话题: latex话题: miktex
进入TeX版参与讨论
1 (共1页)
D****y
发帖数: 24
1
I met a strange problem when use beamer under MikTex
I tried to give \end{frame} an alias by doing
\newcommand{\ve}{\end{frame}}
However, I always get latex compile errors if I use \ve to end a frame. If I
relace \ve with \end{frame} in my file, everything works fine.
Anyone met similar problem? Is this a bug in MikTex or beamer? I haven't
tried it under TexLive yet.
S*********g
发帖数: 5298
2
make sure \ve is not used by the package

I

【在 D****y 的大作中提到】
: I met a strange problem when use beamer under MikTex
: I tried to give \end{frame} an alias by doing
: \newcommand{\ve}{\end{frame}}
: However, I always get latex compile errors if I use \ve to end a frame. If I
: relace \ve with \end{frame} in my file, everything works fine.
: Anyone met similar problem? Is this a bug in MikTex or beamer? I haven't
: tried it under TexLive yet.

D****y
发帖数: 24
3
\ve is not used by the package, otherwise, latex will complain with the
\newcommand. However, in my case, there is no errors with the \newcommand.
The error I get is something like:
Runaway argument?
\let \AtEndDocument \@firstofone \@enddocumenthook \@checkend {docume\ETC.
! File ended while scanning use of \beamer@collect@@body.

【在 S*********g 的大作中提到】
: make sure \ve is not used by the package
:
: I

T*******n
发帖数: 493
4
Maybe Beamer is scanning for the literal string \end{frame}, just like
the way LaTeX handles \end{verbatim} and AMS-LaTeX looks for
\end{equation}. If this is the case, you cannot bury \end{frame}
inside another macro.
The reason that you can't hide \end{verbatim} is that this sequence of
characters is the only clue that tells LaTeX to get out of verbatim mode.
For AMS-LaTeX (amsmath.sty), it needs to scan equation environments
twice in order to have the capability of setting some really compli

【在 D****y 的大作中提到】
: I met a strange problem when use beamer under MikTex
: I tried to give \end{frame} an alias by doing
: \newcommand{\ve}{\end{frame}}
: However, I always get latex compile errors if I use \ve to end a frame. If I
: relace \ve with \end{frame} in my file, everything works fine.
: Anyone met similar problem? Is this a bug in MikTex or beamer? I haven't
: tried it under TexLive yet.

T*******n
发帖数: 493
5
The runaway argument could be a sign that Beamer never found the end of
the current frame.
This "feature" is not unique to MiKTeX.

【在 D****y 的大作中提到】
: \ve is not used by the package, otherwise, latex will complain with the
: \newcommand. However, in my case, there is no errors with the \newcommand.
: The error I get is something like:
: Runaway argument?
: \let \AtEndDocument \@firstofone \@enddocumenthook \@checkend {docume\ETC.
: ! File ended while scanning use of \beamer@collect@@body.

D****y
发帖数: 24
6
Thanks. So I guess I can't give \end{frame} any alias at all.

【在 T*******n 的大作中提到】
: The runaway argument could be a sign that Beamer never found the end of
: the current frame.
: This "feature" is not unique to MiKTeX.

1 (共1页)
进入TeX版参与讨论
相关主题
what do you do while waiting for the compiling?miktex
beamer 编译关于font的warning如何在Linux下使用LaTeX阿
beamer下block的编译问题至于latex做slides嘛
miktex2.7 就是一堆trash请介绍个最简易的在LaTex里输入中文的方法
Beamer 和 Miktex, Texlive啥关系奇怪的latex error。
latex手动装package问题 (转载)Latex slides package installaton prob~
how to make a newcommand for verbatimWinEdt, Latex, and Beamer
菜鸟请教安装miktex 的package 时遇到的问题
相关话题的讨论汇总
话题: beamer话题: end话题: frame话题: latex话题: miktex