3

I'm using LyX 2.1.1 and want to put captions for listings. I can do this by using LaTeX code in ERT but would like to do by using LyX built-in capabilities of Insert > Program Listing. Any help will be highly appreciated.

1 Answer 1

5

First Insert->Program listing and then insert your code into the red box and then right mouse click with the mouse cursor inside the listing box. Choose preferences and then Extended. In the right frame you can insert for example "caption={my caption}".

1
  • 1
    In LyX 2.1.1, it can be done by right clicking inside the list box and then choosing Setting and then Advanced and putting caption={my caption}.
    – MYaseen208
    Jul 26, 2014 at 15:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .