Hello,
I've been struggling to format attractive code listings. The boxes in the attached mini-lyx document show my feeble attempts so far.
Box 2 is close to what I want, but has numerous problems:
1. Rather than red and white, I'd want black and light gray
2. I'd like width to be full width of text area of my page
3. I'd to use \listno\ in header, but get this error message when I try:
File ended while scanning use of \codelist.
<*> listno.tex
*** (job aborted, no legal \end found)
4. If I try to add a second code listing I get error messages or a broken box depending upon how I try to terminate the first list specification
5. I'd like to use a monospace font in the code area that has both normal and bold face
Most of all, I'd like to understand how to gain programming control over the appearance of my code list boxes. I've been studying the tcolorbox manual. But when I try to change parameters in the lyx preamble nothing seems to change. So I'm guessing there's a lyx issue I'm ignorant of.
I'd much appreciate any and all tips to help solve these issues.
Many thanks,
Lloyd R. Prentice
listno.lyx
Description: application/lyx
