GeneralOrdering of figures

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mcochran
Posts: 6
Joined: Thu May 08, 2008 8:55 pm

Ordering of figures

Post by mcochran »

Hello.

I am generating a report, and have several figures in my appendix. As I change the order of sections in my report, is there a way to have LaTeX re-arrange the figures so that they are in the right order in the appendix?

For example:

My report started with one figure in section one, and one in section 2. I have decided to invert the ordering, putting section 2 first. Is there a way to automatically adjust the order of the figures in the final document without physically changing them in the appendix?

Thanks.
Mike

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Ordering of figures

Post by gmedina »

Invoke the LaTeX MeTaGenie.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
mcochran
Posts: 6
Joined: Thu May 08, 2008 8:55 pm

Re: Ordering of figures

Post by mcochran »

Thank you for your prompt reply. I am still, however, a little confused. Although I am thrilled that the answer to my question merely involves conjuring up some possibly mythic entity, I am still unclear how to acquire one. Any further clarification would be most appreciated.

Mike
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Ordering of figures

Post by Juanjo »

Perhaps you may want to try the endfloat package, which deferres the insertion of floats till the end of the document. The code for each figure would go in the appropriate section, so a change in their order will cause also the corresponding change in the order of figures.
mcochran
Posts: 6
Joined: Thu May 08, 2008 8:55 pm

Re: Ordering of figures

Post by mcochran »

Juanjo,

Thank you so much. This package is exactly what I needed. I was having so much trouble keeping track of the order and numbering of my figures.

Mike
mcochran
Posts: 6
Joined: Thu May 08, 2008 8:55 pm

Re: Ordering of figures

Post by mcochran »

Hello.

One more tiny point. Is there a way to put \endfloats into an appendix?

In other words, I have used the \endfloats package, but would like to place the tables and figures into separate appendices.

Thank you.

Mike
Post Reply