How to reduce white space around floats to prevent them from taking an entire columnCaption on the side of a...

Exchange,swap or switch

web3.py web3.isConnected() returns false always

Is it possible to determine the symmetric encryption method used by output size?

Unexpected email from Yorkshire Bank

Don’t seats that recline flat defeat the purpose of having seatbelts?

What happened to Captain America in Endgame?

How much cash can I safely carry into the USA and avoid civil forfeiture?

How can the Zone of Truth spell be defeated without the caster knowing?

Why other Westeros houses don't use wildfire?

Packing rectangles: Does rotation ever help?

Is there really no use for MD5 anymore?

How to have a sharp product image?

Pulling the rope with one hand is as heavy as with two hands?

Examples of subgroups where it's nontrivial to show closure under multiplication?

The Defining Moment

Question about かな and だろう

How did Captain America manage to do this?

Can I spend a night at Vancouver then take a flight to my college in Toronto as an international student?

Combinable filters

Was there a Viking Exchange as well as a Columbian one?

How does a program know if stdout is connected to a terminal or a pipe?

How come there are so many candidates for the 2020 Democratic party presidential nomination?

Real-world applications of fields, rings and groups in linear algebra.

Size of electromagnet needed to replicate Earth's magnetic field



How to reduce white space around floats to prevent them from taking an entire column


Caption on the side of a figureRemove space after figure and before textTable caption not appearing in PNAS document classHow to make a picture taking the maximum space?How can I stop revtex from sending a tall figure to the end of the document?Keep Figures RIGHT AFTER textFigure float taking up an entire column?White space issues in two column articleHow can I automatically rotate figure environment based on native/actual size?LaTeX: figure + includegraphics unwanted page breaks and wrong spacing between captionHow to reduce de float's white space around it?how to remove the white space between the image and the next column?













1















I have a two column document that features a couple of high aspect ratio (tall) floats which, including the caption, take up more than half, but not a full column. When I compile Latex always seems to give the figures their own full column and pad around them with white space. Is there a way I can "push up" the text after the floats to fill in the column and minimize this white space?



From suggestions in the comments I have tried:



    setlength{intextsep}{1 pt}


and



    setlength{belowcaptionskip}{1 pt}


but this did not seem to change the whitespace above the figure and below the caption.



Here is a MWE:



documentclass[10pt,twocolumn]{article}
usepackage[margin=0.5in,showframe]{geometry}

usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{graphicx}


usepackage{lipsum}
begin{document}
lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}

lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}
lipsum[1-20]
end{document}


A screenshot of the output is shown below, where the black boxes are the 1x6.pdf that I want to include. Sorry, I couldn't figure out how to include the 1x6.pdf in this post for the community to reproduce this.



enter image description here










share|improve this question

























  • There are a number of predefined spaces padded around floats, such as intextsep [h] and textfloatsep [tb]. You can always redefine them to be smaller.

    – John Kormylo
    17 hours ago











  • Thanks. Do you know where I can find a list of them and an explanation of what they are?

    – Canaryyellow
    16 hours ago













  • How about this answer: tex.stackexchange.com/a/29144/121799 ?

    – marmot
    16 hours ago











  • See source2e.pdf (ctan.org/pkg/source2e?lang=en), page 314.

    – John Kormylo
    16 hours ago











  • I tried setlength{intextsep}{1 pt} and setlength{belowcaptionskip}{1 pt}, but these didn't help. This answer contains a useful visualization of the definitions: tex.stackexchange.com/questions/60477/…

    – Canaryyellow
    16 hours ago


















1















I have a two column document that features a couple of high aspect ratio (tall) floats which, including the caption, take up more than half, but not a full column. When I compile Latex always seems to give the figures their own full column and pad around them with white space. Is there a way I can "push up" the text after the floats to fill in the column and minimize this white space?



From suggestions in the comments I have tried:



    setlength{intextsep}{1 pt}


and



    setlength{belowcaptionskip}{1 pt}


but this did not seem to change the whitespace above the figure and below the caption.



Here is a MWE:



documentclass[10pt,twocolumn]{article}
usepackage[margin=0.5in,showframe]{geometry}

usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{graphicx}


usepackage{lipsum}
begin{document}
lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}

lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}
lipsum[1-20]
end{document}


A screenshot of the output is shown below, where the black boxes are the 1x6.pdf that I want to include. Sorry, I couldn't figure out how to include the 1x6.pdf in this post for the community to reproduce this.



enter image description here










share|improve this question

























  • There are a number of predefined spaces padded around floats, such as intextsep [h] and textfloatsep [tb]. You can always redefine them to be smaller.

    – John Kormylo
    17 hours ago











  • Thanks. Do you know where I can find a list of them and an explanation of what they are?

    – Canaryyellow
    16 hours ago













  • How about this answer: tex.stackexchange.com/a/29144/121799 ?

    – marmot
    16 hours ago











  • See source2e.pdf (ctan.org/pkg/source2e?lang=en), page 314.

    – John Kormylo
    16 hours ago











  • I tried setlength{intextsep}{1 pt} and setlength{belowcaptionskip}{1 pt}, but these didn't help. This answer contains a useful visualization of the definitions: tex.stackexchange.com/questions/60477/…

    – Canaryyellow
    16 hours ago
















1












1








1








I have a two column document that features a couple of high aspect ratio (tall) floats which, including the caption, take up more than half, but not a full column. When I compile Latex always seems to give the figures their own full column and pad around them with white space. Is there a way I can "push up" the text after the floats to fill in the column and minimize this white space?



From suggestions in the comments I have tried:



    setlength{intextsep}{1 pt}


and



    setlength{belowcaptionskip}{1 pt}


but this did not seem to change the whitespace above the figure and below the caption.



Here is a MWE:



documentclass[10pt,twocolumn]{article}
usepackage[margin=0.5in,showframe]{geometry}

usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{graphicx}


usepackage{lipsum}
begin{document}
lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}

lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}
lipsum[1-20]
end{document}


A screenshot of the output is shown below, where the black boxes are the 1x6.pdf that I want to include. Sorry, I couldn't figure out how to include the 1x6.pdf in this post for the community to reproduce this.



enter image description here










share|improve this question
















I have a two column document that features a couple of high aspect ratio (tall) floats which, including the caption, take up more than half, but not a full column. When I compile Latex always seems to give the figures their own full column and pad around them with white space. Is there a way I can "push up" the text after the floats to fill in the column and minimize this white space?



From suggestions in the comments I have tried:



    setlength{intextsep}{1 pt}


and



    setlength{belowcaptionskip}{1 pt}


but this did not seem to change the whitespace above the figure and below the caption.



Here is a MWE:



documentclass[10pt,twocolumn]{article}
usepackage[margin=0.5in,showframe]{geometry}

usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{graphicx}


usepackage{lipsum}
begin{document}
lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}

lipsum[1-10]
begin{figure}
begin{center}
includegraphics[width=50 pt, keepaspectratio]{./1x6.pdf}
caption{lipsum[2]}
end{center}
end{figure}
lipsum[1-20]
end{document}


A screenshot of the output is shown below, where the black boxes are the 1x6.pdf that I want to include. Sorry, I couldn't figure out how to include the 1x6.pdf in this post for the community to reproduce this.



enter image description here







floats includegraphics white-space






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 mins ago







Canaryyellow

















asked 17 hours ago









CanaryyellowCanaryyellow

274




274













  • There are a number of predefined spaces padded around floats, such as intextsep [h] and textfloatsep [tb]. You can always redefine them to be smaller.

    – John Kormylo
    17 hours ago











  • Thanks. Do you know where I can find a list of them and an explanation of what they are?

    – Canaryyellow
    16 hours ago













  • How about this answer: tex.stackexchange.com/a/29144/121799 ?

    – marmot
    16 hours ago











  • See source2e.pdf (ctan.org/pkg/source2e?lang=en), page 314.

    – John Kormylo
    16 hours ago











  • I tried setlength{intextsep}{1 pt} and setlength{belowcaptionskip}{1 pt}, but these didn't help. This answer contains a useful visualization of the definitions: tex.stackexchange.com/questions/60477/…

    – Canaryyellow
    16 hours ago





















  • There are a number of predefined spaces padded around floats, such as intextsep [h] and textfloatsep [tb]. You can always redefine them to be smaller.

    – John Kormylo
    17 hours ago











  • Thanks. Do you know where I can find a list of them and an explanation of what they are?

    – Canaryyellow
    16 hours ago













  • How about this answer: tex.stackexchange.com/a/29144/121799 ?

    – marmot
    16 hours ago











  • See source2e.pdf (ctan.org/pkg/source2e?lang=en), page 314.

    – John Kormylo
    16 hours ago











  • I tried setlength{intextsep}{1 pt} and setlength{belowcaptionskip}{1 pt}, but these didn't help. This answer contains a useful visualization of the definitions: tex.stackexchange.com/questions/60477/…

    – Canaryyellow
    16 hours ago



















There are a number of predefined spaces padded around floats, such as intextsep [h] and textfloatsep [tb]. You can always redefine them to be smaller.

– John Kormylo
17 hours ago





There are a number of predefined spaces padded around floats, such as intextsep [h] and textfloatsep [tb]. You can always redefine them to be smaller.

– John Kormylo
17 hours ago













Thanks. Do you know where I can find a list of them and an explanation of what they are?

– Canaryyellow
16 hours ago







Thanks. Do you know where I can find a list of them and an explanation of what they are?

– Canaryyellow
16 hours ago















How about this answer: tex.stackexchange.com/a/29144/121799 ?

– marmot
16 hours ago





How about this answer: tex.stackexchange.com/a/29144/121799 ?

– marmot
16 hours ago













See source2e.pdf (ctan.org/pkg/source2e?lang=en), page 314.

– John Kormylo
16 hours ago





See source2e.pdf (ctan.org/pkg/source2e?lang=en), page 314.

– John Kormylo
16 hours ago













I tried setlength{intextsep}{1 pt} and setlength{belowcaptionskip}{1 pt}, but these didn't help. This answer contains a useful visualization of the definitions: tex.stackexchange.com/questions/60477/…

– Canaryyellow
16 hours ago







I tried setlength{intextsep}{1 pt} and setlength{belowcaptionskip}{1 pt}, but these didn't help. This answer contains a useful visualization of the definitions: tex.stackexchange.com/questions/60477/…

– Canaryyellow
16 hours ago












1 Answer
1






active

oldest

votes


















3














Maybe you are satisfied with the following result that can be obtained by changing the floatpagefraction from the default value to 0.75. With this value, a float only occupies an own page (in case of a twocolumn document an own column) if it is larger than 75% of the page.



enter image description here



documentclass[10pt,twocolumn]{article}
usepackage[margin=0.5in,showframe]{geometry}

usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{graphicx}
renewcommand{floatpagefraction}{.75}%

usepackage{lipsum}
begin{document}
lipsum[1-10]
begin{figure}
centering
includegraphics[width=50 pt, height=300pt]{example-image}
caption{Some very long text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text.}
end{figure}

lipsum[1-10]
begin{figure}
centering
includegraphics[width=50 pt, height=300pt]{example-image}
caption{Some very long text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text.}
end{figure}
lipsum[1-20]
end{document}





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%2f487860%2fhow-to-reduce-white-space-around-floats-to-prevent-them-from-taking-an-entire-co%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









    3














    Maybe you are satisfied with the following result that can be obtained by changing the floatpagefraction from the default value to 0.75. With this value, a float only occupies an own page (in case of a twocolumn document an own column) if it is larger than 75% of the page.



    enter image description here



    documentclass[10pt,twocolumn]{article}
    usepackage[margin=0.5in,showframe]{geometry}

    usepackage[T1]{fontenc}
    usepackage[utf8]{inputenc}
    usepackage{graphicx}
    renewcommand{floatpagefraction}{.75}%

    usepackage{lipsum}
    begin{document}
    lipsum[1-10]
    begin{figure}
    centering
    includegraphics[width=50 pt, height=300pt]{example-image}
    caption{Some very long text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text.}
    end{figure}

    lipsum[1-10]
    begin{figure}
    centering
    includegraphics[width=50 pt, height=300pt]{example-image}
    caption{Some very long text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text text text text
    text text text text text text text text text text.}
    end{figure}
    lipsum[1-20]
    end{document}





    share|improve this answer




























      3














      Maybe you are satisfied with the following result that can be obtained by changing the floatpagefraction from the default value to 0.75. With this value, a float only occupies an own page (in case of a twocolumn document an own column) if it is larger than 75% of the page.



      enter image description here



      documentclass[10pt,twocolumn]{article}
      usepackage[margin=0.5in,showframe]{geometry}

      usepackage[T1]{fontenc}
      usepackage[utf8]{inputenc}
      usepackage{graphicx}
      renewcommand{floatpagefraction}{.75}%

      usepackage{lipsum}
      begin{document}
      lipsum[1-10]
      begin{figure}
      centering
      includegraphics[width=50 pt, height=300pt]{example-image}
      caption{Some very long text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text.}
      end{figure}

      lipsum[1-10]
      begin{figure}
      centering
      includegraphics[width=50 pt, height=300pt]{example-image}
      caption{Some very long text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text text text text
      text text text text text text text text text text.}
      end{figure}
      lipsum[1-20]
      end{document}





      share|improve this answer


























        3












        3








        3







        Maybe you are satisfied with the following result that can be obtained by changing the floatpagefraction from the default value to 0.75. With this value, a float only occupies an own page (in case of a twocolumn document an own column) if it is larger than 75% of the page.



        enter image description here



        documentclass[10pt,twocolumn]{article}
        usepackage[margin=0.5in,showframe]{geometry}

        usepackage[T1]{fontenc}
        usepackage[utf8]{inputenc}
        usepackage{graphicx}
        renewcommand{floatpagefraction}{.75}%

        usepackage{lipsum}
        begin{document}
        lipsum[1-10]
        begin{figure}
        centering
        includegraphics[width=50 pt, height=300pt]{example-image}
        caption{Some very long text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text.}
        end{figure}

        lipsum[1-10]
        begin{figure}
        centering
        includegraphics[width=50 pt, height=300pt]{example-image}
        caption{Some very long text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text.}
        end{figure}
        lipsum[1-20]
        end{document}





        share|improve this answer













        Maybe you are satisfied with the following result that can be obtained by changing the floatpagefraction from the default value to 0.75. With this value, a float only occupies an own page (in case of a twocolumn document an own column) if it is larger than 75% of the page.



        enter image description here



        documentclass[10pt,twocolumn]{article}
        usepackage[margin=0.5in,showframe]{geometry}

        usepackage[T1]{fontenc}
        usepackage[utf8]{inputenc}
        usepackage{graphicx}
        renewcommand{floatpagefraction}{.75}%

        usepackage{lipsum}
        begin{document}
        lipsum[1-10]
        begin{figure}
        centering
        includegraphics[width=50 pt, height=300pt]{example-image}
        caption{Some very long text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text.}
        end{figure}

        lipsum[1-10]
        begin{figure}
        centering
        includegraphics[width=50 pt, height=300pt]{example-image}
        caption{Some very long text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text text text text
        text text text text text text text text text text.}
        end{figure}
        lipsum[1-20]
        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 13 hours ago









        leandriisleandriis

        12.1k1833




        12.1k1833






























            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%2f487860%2fhow-to-reduce-white-space-around-floats-to-prevent-them-from-taking-an-entire-co%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

            Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

            (1602) Indiana Índice Designación y nombre Características orbitales Véase...

            Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...