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