How to reduce de float's white space around it?












3















I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX uses the maximum of the page without creating a page only with the figure?



documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}

begin{document}

blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext


end{document}


enter image description here










share|improve this question

























  • This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try begin{figure}[t] or begin{figure}[b] to move it to top or bottom of the page.

    – Sigur
    Feb 20 at 16:04











  • @Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names). t and b wouldn't be considered, because the amount of text that can fit around the figure is too small.

    – Skillmon
    Feb 20 at 16:07











  • @Skillmon, so the situation is much more complicated than I said.

    – Sigur
    Feb 20 at 16:13











  • It can be done (+1 to Zarko), but that does not mean it's a good idea.

    – Fran
    Feb 21 at 4:41
















3















I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX uses the maximum of the page without creating a page only with the figure?



documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}

begin{document}

blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext


end{document}


enter image description here










share|improve this question

























  • This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try begin{figure}[t] or begin{figure}[b] to move it to top or bottom of the page.

    – Sigur
    Feb 20 at 16:04











  • @Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names). t and b wouldn't be considered, because the amount of text that can fit around the figure is too small.

    – Skillmon
    Feb 20 at 16:07











  • @Skillmon, so the situation is much more complicated than I said.

    – Sigur
    Feb 20 at 16:13











  • It can be done (+1 to Zarko), but that does not mean it's a good idea.

    – Fran
    Feb 21 at 4:41














3












3








3








I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX uses the maximum of the page without creating a page only with the figure?



documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}

begin{document}

blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext


end{document}


enter image description here










share|improve this question
















I have some floats which size is almost the page size, however there is a little space that I'd like to use with text. How can I make that LaTeX uses the maximum of the page without creating a page only with the figure?



documentclass{article}
usepackage{tabularx}
usepackage{blindtext}
usepackage{graphicx, graphics}
usepackage[showframe]{geometry}

begin{document}

blindtextpar%
%
begin{figure}
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
%
Blindtext


end{document}


enter image description here







floats margins page






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 at 18:14









Bernard

174k776206




174k776206










asked Feb 20 at 16:01









Daniel Valencia C.Daniel Valencia C.

1,144719




1,144719













  • This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try begin{figure}[t] or begin{figure}[b] to move it to top or bottom of the page.

    – Sigur
    Feb 20 at 16:04











  • @Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names). t and b wouldn't be considered, because the amount of text that can fit around the figure is too small.

    – Skillmon
    Feb 20 at 16:07











  • @Skillmon, so the situation is much more complicated than I said.

    – Sigur
    Feb 20 at 16:13











  • It can be done (+1 to Zarko), but that does not mean it's a good idea.

    – Fran
    Feb 21 at 4:41



















  • This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try begin{figure}[t] or begin{figure}[b] to move it to top or bottom of the page.

    – Sigur
    Feb 20 at 16:04











  • @Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names). t and b wouldn't be considered, because the amount of text that can fit around the figure is too small.

    – Skillmon
    Feb 20 at 16:07











  • @Skillmon, so the situation is much more complicated than I said.

    – Sigur
    Feb 20 at 16:13











  • It can be done (+1 to Zarko), but that does not mean it's a good idea.

    – Fran
    Feb 21 at 4:41

















This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try begin{figure}[t] or begin{figure}[b] to move it to top or bottom of the page.

– Sigur
Feb 20 at 16:04





This is a very difficulty job because float positions are determined depending the amount ot text around it and it is very complicated to do a general rule. But you could try to specify the position of the float so that some text could fit above or below it and this little change could produce a completely different output. Try begin{figure}[t] or begin{figure}[b] to move it to top or bottom of the page.

– Sigur
Feb 20 at 16:04













@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names). t and b wouldn't be considered, because the amount of text that can fit around the figure is too small.

– Skillmon
Feb 20 at 16:07





@Sigur I guess you'd have to change the intern values of the placement algorithm (of which I never remember the names). t and b wouldn't be considered, because the amount of text that can fit around the figure is too small.

– Skillmon
Feb 20 at 16:07













@Skillmon, so the situation is much more complicated than I said.

– Sigur
Feb 20 at 16:13





@Skillmon, so the situation is much more complicated than I said.

– Sigur
Feb 20 at 16:13













It can be done (+1 to Zarko), but that does not mean it's a good idea.

– Fran
Feb 21 at 4:41





It can be done (+1 to Zarko), but that does not mean it's a good idea.

– Fran
Feb 21 at 4:41










1 Answer
1






active

oldest

votes


















9














default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}. so try the following:



documentclass{article}
usepackage[showframe]{geometry}
usepackage{graphicx}
renewcommand{textfraction}{0.07} % allow minimal text w. figs

usepackage{lipsum}

begin{document}
lipsum[66]
begin{figure}[htb]
centering
includegraphics[%
width=linewidth,%
height=15cm]
{example-image-a}
caption{Figure's caption}
label{fig:image-example-a}
end{figure}%
lipsum[66]
end{document}


enter image description here



off topic: the package graphicx load graphics, so you not do this again.






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%2f475850%2fhow-to-reduce-de-floats-white-space-around-it%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









    9














    default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}. so try the following:



    documentclass{article}
    usepackage[showframe]{geometry}
    usepackage{graphicx}
    renewcommand{textfraction}{0.07} % allow minimal text w. figs

    usepackage{lipsum}

    begin{document}
    lipsum[66]
    begin{figure}[htb]
    centering
    includegraphics[%
    width=linewidth,%
    height=15cm]
    {example-image-a}
    caption{Figure's caption}
    label{fig:image-example-a}
    end{figure}%
    lipsum[66]
    end{document}


    enter image description here



    off topic: the package graphicx load graphics, so you not do this again.






    share|improve this answer






























      9














      default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}. so try the following:



      documentclass{article}
      usepackage[showframe]{geometry}
      usepackage{graphicx}
      renewcommand{textfraction}{0.07} % allow minimal text w. figs

      usepackage{lipsum}

      begin{document}
      lipsum[66]
      begin{figure}[htb]
      centering
      includegraphics[%
      width=linewidth,%
      height=15cm]
      {example-image-a}
      caption{Figure's caption}
      label{fig:image-example-a}
      end{figure}%
      lipsum[66]
      end{document}


      enter image description here



      off topic: the package graphicx load graphics, so you not do this again.






      share|improve this answer




























        9












        9








        9







        default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}. so try the following:



        documentclass{article}
        usepackage[showframe]{geometry}
        usepackage{graphicx}
        renewcommand{textfraction}{0.07} % allow minimal text w. figs

        usepackage{lipsum}

        begin{document}
        lipsum[66]
        begin{figure}[htb]
        centering
        includegraphics[%
        width=linewidth,%
        height=15cm]
        {example-image-a}
        caption{Figure's caption}
        label{fig:image-example-a}
        end{figure}%
        lipsum[66]
        end{document}


        enter image description here



        off topic: the package graphicx load graphics, so you not do this again.






        share|improve this answer















        default fraction of text on a page require more space than it is available on page with your big picture. this ratio you can change with renewcommand{textfraction}{0.07}. so try the following:



        documentclass{article}
        usepackage[showframe]{geometry}
        usepackage{graphicx}
        renewcommand{textfraction}{0.07} % allow minimal text w. figs

        usepackage{lipsum}

        begin{document}
        lipsum[66]
        begin{figure}[htb]
        centering
        includegraphics[%
        width=linewidth,%
        height=15cm]
        {example-image-a}
        caption{Figure's caption}
        label{fig:image-example-a}
        end{figure}%
        lipsum[66]
        end{document}


        enter image description here



        off topic: the package graphicx load graphics, so you not do this again.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 20 at 16:24

























        answered Feb 20 at 16:17









        ZarkoZarko

        127k868167




        127k868167






























            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%2f475850%2fhow-to-reduce-de-floats-white-space-around-it%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

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix