Hello,
I would like to have a program listing's caption beneath the listing.
Therefore I tried to add "\lstset{captionpos=b}" to the preamble,
tried to put "captionpos=b" into the text layout area, tried to call
"\lstset{captionpos=b}" in an ERT before the listing.
The command positions the caption under the listing but breaks the
numbering. Please find attached an exemplary lyx-file and the
resulting pdf file. After the first listing, I executed
"\lstset{captionpos=b}", thus the second reference is broken.
Is that a known bug in the listings package (I didn't find anything on
Google) or does LyX do anything wrong? I had a look at the generated
latex (pdflatex)-file (which I attached, too) but it looks ok.
I hope someone knows what to to about this issue.. Thanks a lot
Dominik
test.lyx
Description: application/lyx
test.pdf
Description: Adobe PDF document
test.tex
Description: TeX document
