Graphics, Figures & TablesTitletoc - How to split a Listings table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mysterion_
Posts: 5
Joined: Sat May 16, 2020 9:04 pm

Titletoc - How to split a Listings table

Post by mysterion_ »

Hello,

I would like to split \lstlistoflistings into two lists (one in the main contents of the document, one in the appendices).
Titletoc only works for figures / tables : is there a workaround for that ?

My structure currently looks like this (if I excluded the figures / tables split lists) :

Code: Select all

\documentclass{report}
\usepackage{listings}
\usepackage[toc,page]{appendix}
\usepackage{titletoc}

% Start partial lists
\startlist[main]{lol}% starts main list of listings

% ... Some contents + printlist somewhere here

% Stop partial lists
\stoplist[main]{lol}% stops main list of listings

% Start partial lists
\startlist[appendices]{lol}% starts appendices list of listings

\begin{appendices}
    % ... some listings here + printlist somewhere here
\end{appendices}

% Stop partial lists
\stoplist[appendices]{lol}% stops appendices list of listings
Thanks for the help

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Titletoc - How to split a Listings table

Post by Bartman »

Post Reply