I am using pygments to highlight the code I insert in my lyx document.
The external file gets inserted in my document like this:
{\small \input{listings/blah.tex} }
And I use this command to generate the blah.tex file:
pygmentize -f latex -O linenos=true -l xml blah.xml > blah.tex
I can see that the numbering flags seem to appear in the output of pygmentize:
\begin{Verbatim}[commandchars=\\{\},numbers=left,firstnumber=1,stepnumber=1]
But when I render the pdf, it only shows the highlighted listing, without line numbers. What am I doing wrong?
blah.texfile that pygmentize produces that demonstrates your problem? Have you considered using theminted(ctan.org/pkg/minted) package? (I know next to nothing about lyx, so this may be an absurd suggestion - apologies). – Edd Mar 14 '11 at 21:25