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











  • @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
    9 hours ago











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

    – Sigur
    9 hours ago
















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











  • @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
    9 hours ago











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

    – Sigur
    9 hours ago














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









Bernard

170k774201




170k774201










asked 9 hours ago









Daniel Valencia C.Daniel Valencia C.

1,108618




1,108618













  • 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
    9 hours ago











  • @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
    9 hours ago











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

    – Sigur
    9 hours ago



















  • 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
    9 hours ago











  • @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
    9 hours ago











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

    – Sigur
    9 hours ago

















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





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













@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
9 hours ago





@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
9 hours ago













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

– Sigur
9 hours ago





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

– Sigur
9 hours ago










1 Answer
1






active

oldest

votes


















7














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









    7














    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






























      7














      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




























        7












        7








        7







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

























        answered 9 hours ago









        ZarkoZarko

        125k867164




        125k867164






























            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

            Paul Cézanne

            UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

            Angular material date-picker (MatDatepicker) auto completes the date on focus out