Federico Bravo wrote:
> 
> Hi everybody. I'm trying to insert a big C source code into a LyX
> document. I'm using the book document class. I was thinking of using
> LyX-Code environment, but I am getting bad results: I use ( Insert
> File-> ASCII as lines )to include my source code, but I loose all its
> indentation, although the blanks seem marked as protected blanks, which
> I think should be OK. I get better results just using the Standard
> environment and selecting the typewriter family font.  Still I would
> like to be able to print more code into a single page,  allowing smaller
> margins, otherwise it will take so many pages. Any suggestions? (I'm
> using LyX 1.1.6fix3 on a Linux box).

use package listings

http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/

Reply via email to