avatar
D*y
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.
avatar
S*g
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.

avatar
D*y
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 \[email protected]@@body.

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

avatar
T*n
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.

avatar
T*n
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 \[email protected]@@body.

avatar
D*y
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。