Too much space between floats












2















I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.



I would like Latex to automatically shift the figures together more and fit more text in that column.



documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
usepackage{graphicx} % support the includegraphics command and options
usepackage{blindtext}

begin{document}

blindtext

blindtext

begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}

begin{figure}
includegraphics[width=columnwidth,height=5cm]{example-image}
end{figure}

blindtext

blindtext

end{document}


Leads to:



Too much unused space in column with images



By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.










share|improve this question



























    2















    I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.



    I would like Latex to automatically shift the figures together more and fit more text in that column.



    documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
    usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
    usepackage{graphicx} % support the includegraphics command and options
    usepackage{blindtext}

    begin{document}

    blindtext

    blindtext

    begin{figure}
    includegraphics[width=columnwidth,height=5cm]{example-image}
    end{figure}

    begin{figure}
    includegraphics[width=columnwidth,height=5cm]{example-image}
    end{figure}

    blindtext

    blindtext

    end{document}


    Leads to:



    Too much unused space in column with images



    By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.










    share|improve this question

























      2












      2








      2








      I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.



      I would like Latex to automatically shift the figures together more and fit more text in that column.



      documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
      usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
      usepackage{graphicx} % support the includegraphics command and options
      usepackage{blindtext}

      begin{document}

      blindtext

      blindtext

      begin{figure}
      includegraphics[width=columnwidth,height=5cm]{example-image}
      end{figure}

      begin{figure}
      includegraphics[width=columnwidth,height=5cm]{example-image}
      end{figure}

      blindtext

      blindtext

      end{document}


      Leads to:



      Too much unused space in column with images



      By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.










      share|improve this question














      I have the problem that in two-column mode there is often too much unused space when there are multiple figures or tables in the same column.



      I would like Latex to automatically shift the figures together more and fit more text in that column.



      documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
      usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
      usepackage{graphicx} % support the includegraphics command and options
      usepackage{blindtext}

      begin{document}

      blindtext

      blindtext

      begin{figure}
      includegraphics[width=columnwidth,height=5cm]{example-image}
      end{figure}

      begin{figure}
      includegraphics[width=columnwidth,height=5cm]{example-image}
      end{figure}

      blindtext

      blindtext

      end{document}


      Leads to:



      Too much unused space in column with images



      By moving some blindtext above the second image I can get it to work, but I was hoping there was some way in which Latex automatically positions the figures correctly.







      floats positioning two-column






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 24 at 21:02









      Tim KuipersTim Kuipers

      1849




      1849






















          2 Answers
          2






          active

          oldest

          votes


















          3














          enter image description here



          You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.



          However here it works out OK.



          documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
          usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
          usepackage{graphicx} % support the includegraphics command and options
          usepackage{blindtext}

          renewcommandfloatpagefraction{.55}
          begin{document}

          blindtext

          blindtext

          begin{figure}
          includegraphics[width=columnwidth,height=5cm]{example-image}
          end{figure}

          begin{figure}
          includegraphics[width=columnwidth,height=5cm]{example-image}
          end{figure}

          blindtext

          blindtext

          end{document}


          You could get the same result without changing the global settings by preventing the float being positioned in a float column





          documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
          usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
          usepackage{graphicx} % support the includegraphics command and options
          usepackage{blindtext}

          begin{document}

          blindtext

          blindtext

          begin{figure}
          includegraphics[width=columnwidth,height=5cm]{example-image}
          end{figure}

          begin{figure}[t] % position image at top
          includegraphics[width=columnwidth,height=5cm]{example-image}
          end{figure}

          blindtext

          blindtext

          end{document}





          share|improve this answer

































            1














            Just move the figures up and down (I mean the code segments begin{figure}...end{figure}) and add positioning specifiers like [!htbp] to help put them at the preferred places.



            documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
            usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
            usepackage{graphicx} % support the includegraphics command and options
            usepackage{blindtext}

            begin{document}

            blindtext

            blindtext
            begin{figure}[!htbp]
            includegraphics[width=columnwidth,height=5cm]{example-image}
            end{figure}
            blindtext
            begin{figure}[!htbp]
            includegraphics[width=columnwidth,height=5cm]{example-image}
            end{figure}
            blindtext

            end{document}


            enter image description here






            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%2f471729%2ftoo-much-space-between-floats%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              enter image description here



              You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.



              However here it works out OK.



              documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
              usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
              usepackage{graphicx} % support the includegraphics command and options
              usepackage{blindtext}

              renewcommandfloatpagefraction{.55}
              begin{document}

              blindtext

              blindtext

              begin{figure}
              includegraphics[width=columnwidth,height=5cm]{example-image}
              end{figure}

              begin{figure}
              includegraphics[width=columnwidth,height=5cm]{example-image}
              end{figure}

              blindtext

              blindtext

              end{document}


              You could get the same result without changing the global settings by preventing the float being positioned in a float column





              documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
              usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
              usepackage{graphicx} % support the includegraphics command and options
              usepackage{blindtext}

              begin{document}

              blindtext

              blindtext

              begin{figure}
              includegraphics[width=columnwidth,height=5cm]{example-image}
              end{figure}

              begin{figure}[t] % position image at top
              includegraphics[width=columnwidth,height=5cm]{example-image}
              end{figure}

              blindtext

              blindtext

              end{document}





              share|improve this answer






























                3














                enter image description here



                You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.



                However here it works out OK.



                documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                usepackage{graphicx} % support the includegraphics command and options
                usepackage{blindtext}

                renewcommandfloatpagefraction{.55}
                begin{document}

                blindtext

                blindtext

                begin{figure}
                includegraphics[width=columnwidth,height=5cm]{example-image}
                end{figure}

                begin{figure}
                includegraphics[width=columnwidth,height=5cm]{example-image}
                end{figure}

                blindtext

                blindtext

                end{document}


                You could get the same result without changing the global settings by preventing the float being positioned in a float column





                documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                usepackage{graphicx} % support the includegraphics command and options
                usepackage{blindtext}

                begin{document}

                blindtext

                blindtext

                begin{figure}
                includegraphics[width=columnwidth,height=5cm]{example-image}
                end{figure}

                begin{figure}[t] % position image at top
                includegraphics[width=columnwidth,height=5cm]{example-image}
                end{figure}

                blindtext

                blindtext

                end{document}





                share|improve this answer




























                  3












                  3








                  3







                  enter image description here



                  You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.



                  However here it works out OK.



                  documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                  usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                  usepackage{graphicx} % support the includegraphics command and options
                  usepackage{blindtext}

                  renewcommandfloatpagefraction{.55}
                  begin{document}

                  blindtext

                  blindtext

                  begin{figure}
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  begin{figure}
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  blindtext

                  blindtext

                  end{document}


                  You could get the same result without changing the global settings by preventing the float being positioned in a float column





                  documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                  usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                  usepackage{graphicx} % support the includegraphics command and options
                  usepackage{blindtext}

                  begin{document}

                  blindtext

                  blindtext

                  begin{figure}
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  begin{figure}[t] % position image at top
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  blindtext

                  blindtext

                  end{document}





                  share|improve this answer















                  enter image description here



                  You can tell LaTeX to try harder to avoid float columns with lots of white space by increasing the minimum fraction that is allocated to floats, in this case increasing from the default value of .5 to .55 is enough. Note that the more you increase the value the harder it is to set the floats and the more likely it is that all floats go to the end, for example with a value of.55 if you have two consecutive floats of size .51textheight you can not fit two in a column, and just one in a column would not meed the stated minimum of 55% of the height.



                  However here it works out OK.



                  documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                  usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                  usepackage{graphicx} % support the includegraphics command and options
                  usepackage{blindtext}

                  renewcommandfloatpagefraction{.55}
                  begin{document}

                  blindtext

                  blindtext

                  begin{figure}
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  begin{figure}
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  blindtext

                  blindtext

                  end{document}


                  You could get the same result without changing the global settings by preventing the float being positioned in a float column





                  documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                  usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                  usepackage{graphicx} % support the includegraphics command and options
                  usepackage{blindtext}

                  begin{document}

                  blindtext

                  blindtext

                  begin{figure}
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  begin{figure}[t] % position image at top
                  includegraphics[width=columnwidth,height=5cm]{example-image}
                  end{figure}

                  blindtext

                  blindtext

                  end{document}






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 25 at 15:22









                  Tim Kuipers

                  1849




                  1849










                  answered Jan 24 at 21:47









                  David CarlisleDavid Carlisle

                  488k4111271874




                  488k4111271874























                      1














                      Just move the figures up and down (I mean the code segments begin{figure}...end{figure}) and add positioning specifiers like [!htbp] to help put them at the preferred places.



                      documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                      usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                      usepackage{graphicx} % support the includegraphics command and options
                      usepackage{blindtext}

                      begin{document}

                      blindtext

                      blindtext
                      begin{figure}[!htbp]
                      includegraphics[width=columnwidth,height=5cm]{example-image}
                      end{figure}
                      blindtext
                      begin{figure}[!htbp]
                      includegraphics[width=columnwidth,height=5cm]{example-image}
                      end{figure}
                      blindtext

                      end{document}


                      enter image description here






                      share|improve this answer




























                        1














                        Just move the figures up and down (I mean the code segments begin{figure}...end{figure}) and add positioning specifiers like [!htbp] to help put them at the preferred places.



                        documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                        usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                        usepackage{graphicx} % support the includegraphics command and options
                        usepackage{blindtext}

                        begin{document}

                        blindtext

                        blindtext
                        begin{figure}[!htbp]
                        includegraphics[width=columnwidth,height=5cm]{example-image}
                        end{figure}
                        blindtext
                        begin{figure}[!htbp]
                        includegraphics[width=columnwidth,height=5cm]{example-image}
                        end{figure}
                        blindtext

                        end{document}


                        enter image description here






                        share|improve this answer


























                          1












                          1








                          1







                          Just move the figures up and down (I mean the code segments begin{figure}...end{figure}) and add positioning specifiers like [!htbp] to help put them at the preferred places.



                          documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                          usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                          usepackage{graphicx} % support the includegraphics command and options
                          usepackage{blindtext}

                          begin{document}

                          blindtext

                          blindtext
                          begin{figure}[!htbp]
                          includegraphics[width=columnwidth,height=5cm]{example-image}
                          end{figure}
                          blindtext
                          begin{figure}[!htbp]
                          includegraphics[width=columnwidth,height=5cm]{example-image}
                          end{figure}
                          blindtext

                          end{document}


                          enter image description here






                          share|improve this answer













                          Just move the figures up and down (I mean the code segments begin{figure}...end{figure}) and add positioning specifiers like [!htbp] to help put them at the preferred places.



                          documentclass[11pt, twocolumn]{article} % use larger type; default would be 10pt
                          usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
                          usepackage{graphicx} % support the includegraphics command and options
                          usepackage{blindtext}

                          begin{document}

                          blindtext

                          blindtext
                          begin{figure}[!htbp]
                          includegraphics[width=columnwidth,height=5cm]{example-image}
                          end{figure}
                          blindtext
                          begin{figure}[!htbp]
                          includegraphics[width=columnwidth,height=5cm]{example-image}
                          end{figure}
                          blindtext

                          end{document}


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 24 at 21:17









                          AboAmmarAboAmmar

                          33.6k22883




                          33.6k22883






























                              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%2f471729%2ftoo-much-space-between-floats%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

                              mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                              How to change which sound is reproduced for terminal bell?

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