0

I've tried different methods but I can't figure out how to reduce the space between the figure and the text. Globally I have this:

\setlength{\abovecaptionskip}{0pt}
\setlength{\belowcaptionskip}{0pt}
\setlength{\textfloatsep}{0pt}

I've found these looking for answers and tried them. Now there are some figures that do not cause any problem, and then there are others that leaves a big white space between them and the text. This is what it looks like:

enter image description here

How can I remove once and for all the whitespaces?

  • 1
    Without a minimal working example (MWE) that reproduces the problem you describe the following is just a guess: It seems as if your document is using \flushbottom (either explicitly or through the documentclass you are using). Using \raggedbottom might fix the white space, but keep in mind, that the position of the last line of text won't necessarily be identical on every page. – leandriis Jan 18 '18 at 15:22
  • And stop using [H] or [h]. [htp] will generally be better. – John Kormylo Jan 19 '18 at 15:54
  • @JohnKormylo why? What is the difference? – TodorokiM Jan 20 '18 at 11:02
  • [H} converts the figure into a minipage. [h] means "here if possible, or wait until the next \clearpage" since no other option is provided. [htp] means "here if possible, the top of the next page if not, or in a page with a bunch of the figures if they start backing up in the queue." I might add that [h!] is converted to [htp] automatically. It means "I don't know what I am doing so ignore me." – John Kormylo Jan 20 '18 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.