Hi, How do we insert c code in lyx beamer presentation? I am trying to use package listings.
I try the following: \begin{lstlisting} union mix_t { long l; struct { short hi; short lo; } s; char c[4]; } mix; \end{lstlisting} but I get an error "\begin{lstlistings} ends by \end{bea...@frames!" Kindly suggest. Nikunj.