max wrote:
The situation is the following:
- if I insert an EndFrame layout at the end of the document, I can compile
and view the document w/o any problem.
- if the EndFrame is inserted at the end of other frames and NOT at the end of
the document, I can compile the lyx file but I can not see it with acroread.
In particular latex issues an error ('"file ended while scanning use of
\@@@@lyxframe.") but lyx does not recognize it and compiles further.
- w/o any EndFrame layout lyx stops and issues an error ("Undefined control
sequence. \lyxframeend").
This is normal functioning for Beamer. The last thing in your LyX file
*must* be an EndFrame environment. Every frame needs to be terminated.
IIRC, BeginFrame and certain other environments automatically issue a
\lyxframeend{} command to end the previous frame, so you generally won't
need to insert EndFrames elsewhere in the file, but the last frame in
the file needs to be ended explicitly.
I've been using Beamer for a while, and I've yet to need to insert an
EndFrame anywhere else, but you *always* end the file with one.
-- Paul