2

I have a two page document with three figures, A and B is small and C is big. Therefore in this document I have my text all on one page and then on the second page my three figures. To make best use of the space I have placed A and B at the top of the page (side by side) and C underneath them. However, this means that latex has labeled A as figure.1, B as figure.2 and C as figure.3 as this is the order they appear, but since my text talks about the figures in a difference order (A, C, B) this means that in my text the figure references are out of order as (Fig.1, Fig.3 and Fig.2).

Is there anyway to get latex to label the figures by the order I reference them in the text rather than the way they physically appear in the document?

I am including the figures in my text using:

\begin{Figure}
 \includegraphics[width=0.7\textwidth, left]{Graphic}
 \captionof{figure}{\scriptsize Figure A   }
 \label{Figure A}
\end{Figure}
  • How are you inserting the Fig.1 etc. text? A MWE would be helpful :-) Welcome to TeX.SX! – darthbith Jun 2 '14 at 18:07
  • 1
    But doing so your figure captions will look out of order, i.e: first caption is Fig.1, then Fig.3 and finally Fig.2 This is unusual, In addition, which would be the correct ordering for listing them in the "List of figures"? – JLDiaz Jun 2 '14 at 18:10
  • Hi darthbith, Sorry I wasnt really sure how to do a minimal working example with latex as I have only just started with it. Ill edit my post to show how im inserting the figures. Hi JlDiaz, Im aware one or the other will be out of order but its better for it to be in order in the text rather than the actual figures themselves – Paul Jun 2 '14 at 18:12
  • Alternately, depending on the content, you could label the figures 1a, 1b, and 1c. That way, referring to 1c prior to 1b won't seem so awkward. – Steven B. Segletes Jun 2 '14 at 18:12
  • You can send a comment to a particular user by entering @ before their username like @Paul – darthbith Jun 2 '14 at 18:22
1

This is done manually, by jiggling the figure counter.

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\begin{document}
First cite figure~\ref{Figure A}, 
then figure~\ref{Figure B}, and finally
figure~\ref{Figure C},
\clearpage
\begin{figure}
 \centering
 \includegraphics[width=0.7\textwidth]{Graphic}
 \caption{\scriptsize Figure A   }
 \label{Figure A}
\end{figure}
\addtocounter{figure}{1}
\begin{figure}
 \centering
 \includegraphics[width=0.7\textwidth]{Graphic}
 \caption{\scriptsize Figure C   }
 \label{Figure C}
\end{figure}
\addtocounter{figure}{-2}
\begin{figure}
 \centering
 \includegraphics[width=0.7\textwidth,height=.4\textwidth]{Graphic}
 \caption{\scriptsize Figure B   }
 \label{Figure B}
\end{figure}
\addtocounter{figure}{1}
\clearpage
\thefigure
\end{document}

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.