TransWikia.com

How to put multiple subfigures in one figure without overfull warning?

TeX - LaTeX Asked on August 9, 2021

    begin{figure}
        centering
        begin{subfigure}[b]{1textwidth}
                centering
                includegraphics[width=1.3textwidth]{Whole Tweets of 4 TopicsRetweeting Behaviourdaily.pdf}
                caption{relative scaled retweets counts of human users and bots}
             label{fig:2a}
        end{subfigure}
        begin{subfigure}[b]{1textwidth}
                centering
                includegraphics[width=1.3textwidth]{Whole Tweets of 4 TopicsRetweeting BehaviourdailyReScaled.pdf}
                caption{scaled retweets counts of human users and bots}
             label{fig:2b}
        end{subfigure}
        begin{subfigure}[b]{1textwidth}
                centering
                includegraphics[width=1.3textwidth]{Whole Tweets of 4 TopicsRetweeting BehaviourdailyReScaled.pdf}
                caption{scaled retweets counts of human users and bots}
             label{fig:2b}
        end{subfigure}
        caption{caption}
    label{fig 2:three graphs}


label{fig: 2}       
end{figure}
    

I have 10 subfigures want to align them each by each. But even if I put 3, they are overfulled on one page , how to make them show on 5 pages, each page 2 figures while auto-named as (a),(b),(c)….. of figure 2.

One Answer

The following MWE, which places two subfigures on each page, while keeping the subfigure numbering continuous, might serve as a place to start from:

documentclass{article}
usepackage{graphicx}
usepackage{subcaption}
begin{document}
    begin{figure}
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{relative scaled retweets counts of human users and bots}
            label{fig:2a}
        end{subfigure}
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
             label{fig:2b}
        end{subfigure}
        caption{figure caption}
        label{fig:figure}
    end{figure}
    
    begin{figure}
        continuedfloat
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2c}
        end{subfigure}
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2d}
        end{subfigure}
        caption{caption - continued from previous page}   
    end{figure}
    
    begin{figure}
        continuedfloat
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2e}
        end{subfigure}
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2f}
        end{subfigure}
        caption{caption - continued from previous page}   
    end{figure}
    
    begin{figure}
        continuedfloat
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2g}
        end{subfigure}
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2h}
        end{subfigure}
        caption{caption - continued from previous page}   
    end{figure}
    
    begin{figure}
        continuedfloat
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2i}
        end{subfigure}
        begin{subfigure}[b]{1textwidth}
            includegraphics[width=textwidth]{example-image-16x9}
            caption{scaled retweets counts of human users and bots}
            label{fig:2j}
        end{subfigure}
        caption{caption - continued from previous page}   
    end{figure}
    
end{document}

enter image description here

Correct answer by leandriis on August 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP