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

What is Niska's accent?

a sore throat vs a strep throat vs strep throat

Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?

Fizzy, soft, pop and still drinks

Why is it that the natural deduction method can't test for invalidity?

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

How to verbalise code in Mathematica?

US visa is under administrative processing, I need the passport back ASAP

A Strange Latex Symbol

How to creep the reader out with what seems like a normal person?

Packing rectangles: Does rotation ever help?

Mjolnir's timeline from Thor's perspective

Is the 5 MB static resource size limit 5,242,880 bytes or 5,000,000 bytes?

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

The Defining Moment

Combinable filters

Why does nature favour the Laplacian?

How to make a pipeline wait for end-of-file or stop after an error?

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

Can SQL Server create collisions in system generated constraint names?

Question about かな and だろう

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

Please, smoke with good manners

How can I place the product on a social media post better?



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 textHow can I inject the proper amount of vertical space between captions and figures?Table caption not appearing in PNAS document classFull page floating figure with TikZ overlay in twocolumn document?How 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 textLyX: Vertical position of floatsHow 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?













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
    17 hours ago













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

    – marmot
    17 hours ago











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

    – John Kormylo
    17 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
    17 hours ago













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

    – marmot
    17 hours ago











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

    – John Kormylo
    17 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 25 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
    17 hours ago













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

    – marmot
    17 hours ago











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

    – John Kormylo
    17 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
    17 hours ago













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

    – marmot
    17 hours ago











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

    – John Kormylo
    17 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
17 hours ago







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

– Canaryyellow
17 hours ago















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

– marmot
17 hours ago





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

– marmot
17 hours ago













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

– John Kormylo
17 hours ago





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

– John Kormylo
17 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

            Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

            Schneeberg (Smreczany) Bibliografia | Menu...

            Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...