4

I'm having difficulty getting the list-of-listings section to display the proper title, it simply says "Contents" no matter what sort of changes I make. Here is the command I put in the preamble at a suggestion:

Relevant preamble portion

here is where I include the list of listings

list of listings code

but here is the listings page title...

enter image description here

and if it's relevant here is the output of a sample listing in my document:

enter image description here

to input the listings I am using insert-->Program Listing. I've googled a bit and searched around here but couldn't find anyone with a similar problem.. Any help is appreciated.

Edit: An attempt at a minimum nonworking example.

I'll do my best to make this helpful, but as I assume that I'm simply using the package incorrectly I'm not sure if this example is properly called 'nonworking'

Screencap of example (here I have made no changes to the preamble, everything is defaults)

enter image description here

and its output:

enter image description here

Now when I add the suggested line to preamble:

\renewcommand{\lstlistingname}{Matlab Code}

the output is identical.

lockstep
  • 250,273

1 Answers1

1

Ok, answering my own question here. It appears that this has something to do with older versions of listings, I found others with similar issues on a German message board and they linked to the following page with a few workaround scripts:

http://www.komascript.de/node/477

I don't fully understand what's going on with the scripts, but for now I'm getting the correct title of the list of listings page.