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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Titletoc - How to split a Listings table

Post by Bartman »

Post Reply