General ⇒ 2 seperate list of figures
2 seperate list of figures
I have 'normal figures' and 'electrical schemes', which are also figures and thus placed in a figure environment.
Now I want two separate list of figures: one containing all the normal figures, without the electrical schemes and one with only the electrical schemes.
I've already found out about the tocloft package to create new lists, but this didn't really help.
Any suggestions ?
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
2 seperate list of figures
In the following simple example a defined a new float (Scheme) and used the \listof command (float package) to build a List of Schemes similar to the list of figures. You can addapt this example according to your particular needs.
Code: Select all
\documentclass{report}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{float}
\newfloat{Scheme}{htbp}{los}[chapter]
\usepackage{lipsum}
\begin{document}
\listoffigures
\clearpage
\listof{Scheme}{List of Schemes}
\clearpage
\chapter{First chapter}
\lipsum
\begin{Scheme}
\centering
\rule{5cm}{3cm}
\caption{Test scheme 1}
\label{sch:testsch1}
\end{Scheme}
\lipsum
\begin{figure}
\centering
\rule{5cm}{2cm}
\caption{Test figure 1}
\label{fig:testfig1}
\end{figure}
\lipsum[1-2]
\begin{Scheme}
\centering
\rule{5cm}{3cm}
\caption{Test scheme 2}
\label{sch:testsch2}
\end{Scheme}
\chapter{Second chapter}
\lipsum
\begin{figure}
\centering
\rule{5cm}{2cm}
\caption{Test figure 2}
\label{fig:testfig2}
\end{figure}
\lipsum[1-2]
\begin{figure}
\centering
\rule{5cm}{2cm}
\caption{Test figure 3}
\label{fig:testfig3}
\end{figure}
\begin{Scheme}
\centering
\rule{5cm}{3cm}
\caption{Test scheme 3}
\label{sch:testsch3}
\end{Scheme}
\end{document}
2) The lipsum package was loaded only to automatically generate some text.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
2 seperate list of figures
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: 2 seperate list of figures
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
2 seperate list of figures
If so, please post an answer to make that clear.-Robin- wrote:The problem was already solved, but thanks for pointing out the updated version of the package
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: 2 seperate list of figures
So the solution that was posted worked just fine