Graphics, Figures & Tablespdfpages addtolist recursively

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
darwin_886
Posts: 2
Joined: Tue Sep 14, 2010 4:44 pm

pdfpages addtolist recursively

Post by darwin_886 »

I'm new to LaTeX. I am using the pdfpages package and I want to add figures from pages 7, 8 and 9 of an inserted PDF to my list of figures. I don't get the syntax for using addtolist option recursively and I couldn't find an example on the net. Here's what I've got (which doesn't work):

Code: Select all

\includepdf[%
  pages=2-14, 
  addtolist={figlist},
  7,figure,figure1title,figure1label[,figlist],
  8,figure,figure2title,figure2label[,figlist],
  9,figure,figure3title,figure3label[,figlist]
]{mypdf.pdf}
The addtolist option is documented on p. 7 of the package manual.


Thanks!

Recommended reading 2024:

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

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

west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

pdfpages addtolist recursively

Post by west.logan »

I'm not sure why you typed what you did but your syntax was off. Here is what you want:

Code: Select all

\listoffigures
\includepdf[pages={2-14},addtolist={7,figure,figure1title,figure1label[,8,figure,figure2title,figure2label[,9,figure,figure3title,figure3label]]}]{mypdf.pdf}
I tested this and it works. The recursive but is inside the sequential square brackets and just keeps going deeper. You might look at the documentation again.
darwin_886
Posts: 2
Joined: Tue Sep 14, 2010 4:44 pm

Re: pdfpages addtolist recursively

Post by darwin_886 »

Got it - thanks!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pdfpages addtolist recursively

Post by localghost »

Now that the problem is obviously solved, please be so kind and mark the topic accordingly as clearly written in the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
Post Reply