Graphics, Figures & Tables ⇒ Separate list of figures for appendix
Separate list of figures for appendix
I have a document with four chapters and an appendix. The appendix has a lot more figures and tables than all the chapters combined. So, I wish to insert a separate list of figures just for the appendix, and a regular list of figures for the rest of the chapters combined. Is this feasible?
PS: I searched for this topic before posting and I couldn't find a previous solution, so please forgive me if this has already been answered.
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
Separate list of figures for appendix
several packages will allow the creation of the new list; one option is to use some of the features provided by the caption package. Take a look at the following simple example:
Code: Select all
\documentclass{book}
\usepackage{caption}
\DeclareCaptionType{myfigure}[Figure]
\begin{document}
\listoffigures
\begin{figure}[!ht]
\centering
\rule{5cm}{2cm}
\caption{test figure 1}
\label{fig:test1}
\end{figure}
\begin{figure}[!ht]
\centering
\rule{5cm}{2cm}
\caption{test figure 2}
\label{fig:test2}
\end{figure}
\appendix
\listofmyfigures
\setcounter{myfigure}{2}
\begin{myfigure}[!ht]
\centering
\rule{5cm}{2cm}
\caption{test figure 3}
\label{fig:test3}
\end{myfigure}
\begin{myfigure}[!ht]
\centering
\rule{5cm}{2cm}
\caption{test figure 4}
\label{fig:test4}
\end{myfigure}
\end{document}
Separate list of figures for appendix
I tried running the code, got a "undefined control sequence" error, so I figured the caption package was not installed. I am currently trying to get the caption package working on my system*, so I will try out your solution once that's done.
*WindowsXP, Miktex 2.7 basic installation with internet package update disabled by university proxy server.
Separate list of figures for appendix
You are welcome, and yes, that's the idea behind the code.comet64 wrote:Thank you gmedina for the helpful reply and especially for the code. From the code you posted, I understand that you are basically defining a new type of figure environment, and generating a new list of all the elements from that environment in the appendix...
Of course, the proper solution is to ask the administrator to update the MiKTeX packages. In the meantime, however, you can try this quick (but not elegant) solution:comet64 wrote:...I tried running the code, got a "undefined control sequence" error, so I figured the caption package was not installed. I am currently trying to get the caption package working on my system*, so I will try out your solution once that's done.
Download caption.zip fron CTAN (here it is). Unzip the file; this will generate a folder called "caption". Open a terminal and go to the "caption" folder, and run
Code: Select all
latex caption.ins