On Mon, Nov 05, 2001 at 05:07:09PM +0100, Kontra Gergely wrote: > Hi! > > I'd like to add a source code to a lyx/latex document. How to achieve > this? > If I use \verbatim, I cannot do a \input{file}. > If I don't use \verbatim, latex is confused about the \-s in the > included file...
If you want to pretty-print the code, use listings.sty: http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html If you don't need pretty-printing, you can do insert->insert_file, and then select verbatim in the dialog.