nikunj . wrote: > I am not able to understand the error in this file. I have tried almost > everything. > Please help.
See attached file. Instead of ERT \end{frame}, you have to use the paragraph style EndFame. Also, I've copied your listings to LyX's listings inset (Insert > Program Listings), so that the listings package is loaded (otherwise, you need \usepackage{listings} in the preamble). HTH, Jürgen
doc.lyx
Description: application/lyx