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.
|