LaTeX forum ⇒ Graphics, Figures & TablesCreating list of source code listings

Information and discussion about graphics, figures & tables in LaTeX documents.
marcisSrarcin95
Posts: 2
Joined: Sat Nov 25, 2017 12:36 pm

Creating list of source code listings

Postby marcisSrarcin95 » Sat Nov 25, 2017 12:45 pm

Hi,

I'm new to latex and I'm using source code listings definition from this link -> https://www.overleaf.com/latex/examples ... de-listing. Everything works fine but I need to have a list of this code listings, something like \listoftables. Maybe there is a way to create own list of listings or to put them to \listoftables.

Any help would be appreciated!

Tags:

rais
Posts: 149
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Sat Nov 25, 2017 12:54 pm

Look for \lstlistoflistings in the listings documentation.

KR
Rainer

marcisSrarcin95
Posts: 2
Joined: Sat Nov 25, 2017 12:36 pm

Postby marcisSrarcin95 » Sat Nov 25, 2017 1:38 pm

Thank You!!


It was enough to do:

\lstlistoflistings
\addcontentsline{toc}{chapter}{Spis listingów}

in main file.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 8 guests