Renumbering figure in different order












1















If I define three figures like this



documentclass{article}

usepackage{graphicx}
usepackage{booktabs}
usepackage{xcolor}
usepackage{subfigure}

begin{document}

begin{figure}
subfigure[A]{includegraphics[width=.23textwidth]{pictures/a.jpg}}hfill
subfigure[B]{includegraphics[width=.237textwidth]{pictures/b.jpg}}
caption{Caption 1}label{AA}
end{figure}

begin{figure}
subfigure[C]{includegraphics[width=.23textwidth]{pictures/c.jpg}}hfill
subfigure[D]{includegraphics[width=.237textwidth]{pictures/d.jpg}}
caption{Caption 2}label{BB}
end{figure}

begin{figure}
subfigure[E]{includegraphics[width=.23textwidth]{pictures/e.jpg}}hfill
subfigure[F]{includegraphics[width=.237textwidth]{pictures/f.jpg}}
caption{Caption 3}label{cc}
end{figure}

end{document}


So the result can be showing 3 images one by one, but I want to set the number of the figure with label AA as 3, and the one with label BB as 1. The one with label CC as 2.



You might recommend changing the order in code, but I do not want to do in that way. How can I do that by LaTeX?










share|improve this question




















  • 2





    Please can you edit your code and could put a complete and compilable MWE with all your package?

    – Sebastiano
    Feb 25 at 11:55






  • 2





    I see you edited your question and added some usepackage commands. However, (1) they should not be inside begin{document}...end{document} and (2) please add the documentclass.

    – JouleV
    Feb 25 at 12:09











  • See also tex.stackexchange.com/questions/269301/…

    – John Kormylo
    Feb 25 at 15:04











  • Your renumbering of the figures will look very odd to any reader of your work. They expect the figures to be numbered in the order that they appear in the document. As an extreme example what if you had 100 figures and labelled the first as 100 and the last as 1. How would your reader know where to look if you referenced them in your text?

    – Peter Wilson
    Feb 25 at 18:50
















1















If I define three figures like this



documentclass{article}

usepackage{graphicx}
usepackage{booktabs}
usepackage{xcolor}
usepackage{subfigure}

begin{document}

begin{figure}
subfigure[A]{includegraphics[width=.23textwidth]{pictures/a.jpg}}hfill
subfigure[B]{includegraphics[width=.237textwidth]{pictures/b.jpg}}
caption{Caption 1}label{AA}
end{figure}

begin{figure}
subfigure[C]{includegraphics[width=.23textwidth]{pictures/c.jpg}}hfill
subfigure[D]{includegraphics[width=.237textwidth]{pictures/d.jpg}}
caption{Caption 2}label{BB}
end{figure}

begin{figure}
subfigure[E]{includegraphics[width=.23textwidth]{pictures/e.jpg}}hfill
subfigure[F]{includegraphics[width=.237textwidth]{pictures/f.jpg}}
caption{Caption 3}label{cc}
end{figure}

end{document}


So the result can be showing 3 images one by one, but I want to set the number of the figure with label AA as 3, and the one with label BB as 1. The one with label CC as 2.



You might recommend changing the order in code, but I do not want to do in that way. How can I do that by LaTeX?










share|improve this question




















  • 2





    Please can you edit your code and could put a complete and compilable MWE with all your package?

    – Sebastiano
    Feb 25 at 11:55






  • 2





    I see you edited your question and added some usepackage commands. However, (1) they should not be inside begin{document}...end{document} and (2) please add the documentclass.

    – JouleV
    Feb 25 at 12:09











  • See also tex.stackexchange.com/questions/269301/…

    – John Kormylo
    Feb 25 at 15:04











  • Your renumbering of the figures will look very odd to any reader of your work. They expect the figures to be numbered in the order that they appear in the document. As an extreme example what if you had 100 figures and labelled the first as 100 and the last as 1. How would your reader know where to look if you referenced them in your text?

    – Peter Wilson
    Feb 25 at 18:50














1












1








1








If I define three figures like this



documentclass{article}

usepackage{graphicx}
usepackage{booktabs}
usepackage{xcolor}
usepackage{subfigure}

begin{document}

begin{figure}
subfigure[A]{includegraphics[width=.23textwidth]{pictures/a.jpg}}hfill
subfigure[B]{includegraphics[width=.237textwidth]{pictures/b.jpg}}
caption{Caption 1}label{AA}
end{figure}

begin{figure}
subfigure[C]{includegraphics[width=.23textwidth]{pictures/c.jpg}}hfill
subfigure[D]{includegraphics[width=.237textwidth]{pictures/d.jpg}}
caption{Caption 2}label{BB}
end{figure}

begin{figure}
subfigure[E]{includegraphics[width=.23textwidth]{pictures/e.jpg}}hfill
subfigure[F]{includegraphics[width=.237textwidth]{pictures/f.jpg}}
caption{Caption 3}label{cc}
end{figure}

end{document}


So the result can be showing 3 images one by one, but I want to set the number of the figure with label AA as 3, and the one with label BB as 1. The one with label CC as 2.



You might recommend changing the order in code, but I do not want to do in that way. How can I do that by LaTeX?










share|improve this question
















If I define three figures like this



documentclass{article}

usepackage{graphicx}
usepackage{booktabs}
usepackage{xcolor}
usepackage{subfigure}

begin{document}

begin{figure}
subfigure[A]{includegraphics[width=.23textwidth]{pictures/a.jpg}}hfill
subfigure[B]{includegraphics[width=.237textwidth]{pictures/b.jpg}}
caption{Caption 1}label{AA}
end{figure}

begin{figure}
subfigure[C]{includegraphics[width=.23textwidth]{pictures/c.jpg}}hfill
subfigure[D]{includegraphics[width=.237textwidth]{pictures/d.jpg}}
caption{Caption 2}label{BB}
end{figure}

begin{figure}
subfigure[E]{includegraphics[width=.23textwidth]{pictures/e.jpg}}hfill
subfigure[F]{includegraphics[width=.237textwidth]{pictures/f.jpg}}
caption{Caption 3}label{cc}
end{figure}

end{document}


So the result can be showing 3 images one by one, but I want to set the number of the figure with label AA as 3, and the one with label BB as 1. The one with label CC as 2.



You might recommend changing the order in code, but I do not want to do in that way. How can I do that by LaTeX?







graphics






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 25 at 12:10







GoingMyWay

















asked Feb 25 at 11:53









GoingMyWayGoingMyWay

21518




21518








  • 2





    Please can you edit your code and could put a complete and compilable MWE with all your package?

    – Sebastiano
    Feb 25 at 11:55






  • 2





    I see you edited your question and added some usepackage commands. However, (1) they should not be inside begin{document}...end{document} and (2) please add the documentclass.

    – JouleV
    Feb 25 at 12:09











  • See also tex.stackexchange.com/questions/269301/…

    – John Kormylo
    Feb 25 at 15:04











  • Your renumbering of the figures will look very odd to any reader of your work. They expect the figures to be numbered in the order that they appear in the document. As an extreme example what if you had 100 figures and labelled the first as 100 and the last as 1. How would your reader know where to look if you referenced them in your text?

    – Peter Wilson
    Feb 25 at 18:50














  • 2





    Please can you edit your code and could put a complete and compilable MWE with all your package?

    – Sebastiano
    Feb 25 at 11:55






  • 2





    I see you edited your question and added some usepackage commands. However, (1) they should not be inside begin{document}...end{document} and (2) please add the documentclass.

    – JouleV
    Feb 25 at 12:09











  • See also tex.stackexchange.com/questions/269301/…

    – John Kormylo
    Feb 25 at 15:04











  • Your renumbering of the figures will look very odd to any reader of your work. They expect the figures to be numbered in the order that they appear in the document. As an extreme example what if you had 100 figures and labelled the first as 100 and the last as 1. How would your reader know where to look if you referenced them in your text?

    – Peter Wilson
    Feb 25 at 18:50








2




2





Please can you edit your code and could put a complete and compilable MWE with all your package?

– Sebastiano
Feb 25 at 11:55





Please can you edit your code and could put a complete and compilable MWE with all your package?

– Sebastiano
Feb 25 at 11:55




2




2





I see you edited your question and added some usepackage commands. However, (1) they should not be inside begin{document}...end{document} and (2) please add the documentclass.

– JouleV
Feb 25 at 12:09





I see you edited your question and added some usepackage commands. However, (1) they should not be inside begin{document}...end{document} and (2) please add the documentclass.

– JouleV
Feb 25 at 12:09













See also tex.stackexchange.com/questions/269301/…

– John Kormylo
Feb 25 at 15:04





See also tex.stackexchange.com/questions/269301/…

– John Kormylo
Feb 25 at 15:04













Your renumbering of the figures will look very odd to any reader of your work. They expect the figures to be numbered in the order that they appear in the document. As an extreme example what if you had 100 figures and labelled the first as 100 and the last as 1. How would your reader know where to look if you referenced them in your text?

– Peter Wilson
Feb 25 at 18:50





Your renumbering of the figures will look very odd to any reader of your work. They expect the figures to be numbered in the order that they appear in the document. As an extreme example what if you had 100 figures and labelled the first as 100 and the last as 1. How would your reader know where to look if you referenced them in your text?

– Peter Wilson
Feb 25 at 18:50










1 Answer
1






active

oldest

votes


















1














By adding the option: addtocounter{figure}{-1} you can change the current figure order in your document. Try addtocounter{figure}{2} before figure AA, so the current fig. number will be 2. After inserting Figure AA, try addtocounter{figure}{-3} and ....



begin{figure}
includegraphics[scale=0.9]{XXXX}
centering
caption{Continued}
label{fig:XX}
end{figure}
addtocounter{figure}{-1}





share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476583%2frenumbering-figure-in-different-order%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    By adding the option: addtocounter{figure}{-1} you can change the current figure order in your document. Try addtocounter{figure}{2} before figure AA, so the current fig. number will be 2. After inserting Figure AA, try addtocounter{figure}{-3} and ....



    begin{figure}
    includegraphics[scale=0.9]{XXXX}
    centering
    caption{Continued}
    label{fig:XX}
    end{figure}
    addtocounter{figure}{-1}





    share|improve this answer






























      1














      By adding the option: addtocounter{figure}{-1} you can change the current figure order in your document. Try addtocounter{figure}{2} before figure AA, so the current fig. number will be 2. After inserting Figure AA, try addtocounter{figure}{-3} and ....



      begin{figure}
      includegraphics[scale=0.9]{XXXX}
      centering
      caption{Continued}
      label{fig:XX}
      end{figure}
      addtocounter{figure}{-1}





      share|improve this answer




























        1












        1








        1







        By adding the option: addtocounter{figure}{-1} you can change the current figure order in your document. Try addtocounter{figure}{2} before figure AA, so the current fig. number will be 2. After inserting Figure AA, try addtocounter{figure}{-3} and ....



        begin{figure}
        includegraphics[scale=0.9]{XXXX}
        centering
        caption{Continued}
        label{fig:XX}
        end{figure}
        addtocounter{figure}{-1}





        share|improve this answer















        By adding the option: addtocounter{figure}{-1} you can change the current figure order in your document. Try addtocounter{figure}{2} before figure AA, so the current fig. number will be 2. After inserting Figure AA, try addtocounter{figure}{-3} and ....



        begin{figure}
        includegraphics[scale=0.9]{XXXX}
        centering
        caption{Continued}
        label{fig:XX}
        end{figure}
        addtocounter{figure}{-1}






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 25 at 14:16









        sheß

        1,86711429




        1,86711429










        answered Feb 25 at 14:03









        Mohsen CheraghiMohsen Cheraghi

        112




        112






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476583%2frenumbering-figure-in-different-order%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?