Program Listings

Joseph Hesse joe.hesse at actcx.com
Thu Jan 13 06:41:02 UTC 2022


On 1/12/22 15:00, Herbert Voss via lyx-users wrote:
>
>
> Am 12.01.22 um 13:22 schrieb Joseph Hesse via lyx-users:
>> 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?
>
> Use /Insert -> Program Listing/ option.
>
> Herbert

I tried what you suggested.  I right clicked on the inset and could not 
find an option where I could specify where my code listing are located.
Thank you,
Joe



More information about the lyx-users mailing list