Seems I found the answer. To use program listing in a beamer slide (or verbatim) you need to use the frame option [fragile] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20241009/ca6d469e/attachment.html>