Program Listings
Herbert Voss
Herbert.Voss at fu-berlin.de
Wed Jan 12 13:00:01 UTC 2022
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
More information about the lyx-users
mailing list