Program Listings

Joseph Hesse joe.hesse at actcx.com
Wed Jan 12 12:22:49 UTC 2022


I am writing a programing book and want to have programs that have been 
prepared with a text editor included in the book.  This is what I have 
done so far.

Insert->File->Child Document

File: CodeListings/Test.cpp
Include Type: Program Listing
Caption: My Caption
Label: First Program

More Parameters: numbers=left, frame=tb, caption=b, float

It sort of works but I need assistance.
The caption I have set above does not appear on the bottom as 
"caption=b" would suggest.
The label I have set above does not appear anywhere.

I would like the text of the inserted program to have "typewriter" font 
and be colored green.  How do I do this.

Am I on the right track, is the above the correct way of doing what I want?

Thank you,
Joe Hesse



More information about the lyx-users mailing list