Program listings with beamer probelm

2009-07-12 Thread Micha Feigin
Hello,

I'm trying ot include a program listing in a beamer presentation. Using just
the simple insert-program listing fails to compile with an error
Paragraph ended before \...@next was complete.
If I set the listing to inline, compilation works but the listing is completely
messed up (lines are in the wrong order, some line breaks are missing ...).
Inserting a listing from file (insert-file-child document-program listing)
works, but is very annoying for short ones

Any way to solve this?

thanks


Re: Program listings with beamer probelm

2009-07-12 Thread Micha Feigin

Micha Feigin wrote:

Hello,

I'm trying ot include a program listing in a beamer presentation. Using just
the simple insert-program listing fails to compile with an error
Paragraph ended before \...@next was complete.
If I set the listing to inline, compilation works but the listing is completely
messed up (lines are in the wrong order, some line breaks are missing ...).
Inserting a listing from file (insert-file-child document-program listing)
works, but is very annoying for short ones

Any way to solve this?

thanks


Seems from a thread I found that I need to somehow add fragile to the frame but I can't 
figure out how to do it without ert. Seems like the \lyxframe macro is rather messed up. I 
tried using insert short title which adds an opt entry but that gives an error that the 
pdf file can't be found


Program listings with beamer probelm

2009-07-12 Thread Micha Feigin
Hello,

I'm trying ot include a program listing in a beamer presentation. Using just
the simple insert-program listing fails to compile with an error
Paragraph ended before \...@next was complete.
If I set the listing to inline, compilation works but the listing is completely
messed up (lines are in the wrong order, some line breaks are missing ...).
Inserting a listing from file (insert-file-child document-program listing)
works, but is very annoying for short ones

Any way to solve this?

thanks


Re: Program listings with beamer probelm

2009-07-12 Thread Micha Feigin

Micha Feigin wrote:

Hello,

I'm trying ot include a program listing in a beamer presentation. Using just
the simple insert-program listing fails to compile with an error
Paragraph ended before \...@next was complete.
If I set the listing to inline, compilation works but the listing is completely
messed up (lines are in the wrong order, some line breaks are missing ...).
Inserting a listing from file (insert-file-child document-program listing)
works, but is very annoying for short ones

Any way to solve this?

thanks


Seems from a thread I found that I need to somehow add fragile to the frame but I can't 
figure out how to do it without ert. Seems like the \lyxframe macro is rather messed up. I 
tried using insert short title which adds an opt entry but that gives an error that the 
pdf file can't be found


Program listings with beamer probelm

2009-07-12 Thread Micha Feigin
Hello,

I'm trying ot include a program listing in a beamer presentation. Using just
the simple insert->program listing fails to compile with an error
Paragraph ended before \...@next was complete.
If I set the listing to inline, compilation works but the listing is completely
messed up (lines are in the wrong order, some line breaks are missing ...).
Inserting a listing from file (insert->file->child document->program listing)
works, but is very annoying for short ones

Any way to solve this?

thanks


Re: Program listings with beamer probelm

2009-07-12 Thread Micha Feigin

Micha Feigin wrote:

Hello,

I'm trying ot include a program listing in a beamer presentation. Using just
the simple insert->program listing fails to compile with an error
Paragraph ended before \...@next was complete.
If I set the listing to inline, compilation works but the listing is completely
messed up (lines are in the wrong order, some line breaks are missing ...).
Inserting a listing from file (insert->file->child document->program listing)
works, but is very annoying for short ones

Any way to solve this?

thanks


Seems from a thread I found that I need to somehow add fragile to the frame but I can't 
figure out how to do it without ert. Seems like the \lyxframe macro is rather messed up. I 
tried using insert short title which adds an opt entry but that gives an error that the 
pdf file can't be found