On 2011-06-28, Richard Heck wrote:
> On 06/28/2011 09:28 AM, Murat Yildizoglu wrote:
>> Just to complete my previous mail by an example, I get the following
>> type strange codings (copied from the View latex code window): 

>> \end{frame}

>> \lyxframeend{}\section{Blabla}

>> The \end{frame} comes from an Evil Red box and \lyxframeend{} is
>> introduced without a selection by me of a frame environment.

Would it solve this specific problem just to remove the ERT box with

> LyX's beamer support is kind of strange, in part because of LyX's
> limited ability to handle arguments and in part because frames act like
> insets but are rendered more like commands. This is why there is the odd
> \lyxframeend{} macro. 

The reason for the "strange" implementation is LyX's merging of
subsequent paragraphs of the same style into one LaTeX environment.

The beamer author invented this workaround several versions before the
"--environment separator" dummy style was added.

Another alternative is implementing the "frame" environment (and
similar) as custom insets. (Again, this is only possible in "recent"
versions, years after the original beamer layout was written.)
This alternative is chosen by my new version of seminar.layout

> Anyway, it does not surprise me that LyX has trouble importing beamer
> files properly. I think the only thing you can really do is clean it up
> manually.

I propose an alternative beamer layout, either relying on nesting and
--environment separator-- or with custom insets.
With such a layout in the personal LyXdir, import of beamer sources
and co-operating with no-LyXers might become easier.


Reply via email to