I have searched the other question here extensively as the problem of spacing seems to re-occur often, but still have not found the solution to my specific problem:
I have way to much white space above my figure! Even after lowering the \floatsep
(has no effect at all it seems). The figure itself does not have any white space on top (I have double checked). I have also tried by defining the bounding box instead of the natwidth,natheight, but still the same output so it is driving me crazy.
This is a MWE which results in the given picture which is of course not what I desire
\documentclass[fleqn,10pt,twoside,openright]{report}
\usepackage{graphicx}
% set graphics path
\graphicspath{{Figures/}}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur quis tristique velit, gravida vehicula mi. Donec iaculis, nunc venenatis tempor porttitor, sapien leo elementum urna, nec congue tellus ligula condimentum lectus. Praesent ullamcorper congue risus et porta. Fusce viverra tortor tempor odio porttitor efficitur. In congue tortor eget libero dignissim, sit amet eleifend diam tempor. Ut convallis pretium sapien, a cursus ante iaculis quis. Vestibulum dictum mauris nec tellus mollis, quis laoreet dolor ornare. Vivamus vehicula magna sed urna mattis pellentesque. Donec malesuada tortor a leo venenatis, sit amet maximus orci accumsan. Cras tempus imperdiet neque eget imperdiet. Nulla iaculis in ante et tempor. Quisque euismod, sem id sodales mattis, ex nisl tincidunt nisl, vitae sollicitudin nisi nunc eu tortor. Praesent varius massa mi, vitae malesuada ante laoreet nec. Sed in dui eu urna iaculis facilisis. Integer et arcu a metus varius rutrum. Mauris orci nunc, iaculis ut nunc ultricies, maximus feugiat augue.
\begin{figure}[htbp]%
\centering
\includegraphics[natwidth=124px,natheight=169px,width=5cm]{sad.png}%
\caption{testFig}%
\end{figure}
Nullam at dui sapien. Morbi orci orci, blandit sed erat non, tempus venenatis neque. Donec ut venenatis nunc. Mauris volutpat lectus nec molestie iaculis. Donec lobortis arcu a ante cursus sodales. Mauris nec nulla sapien. Morbi id volutpat eros. Vestibulum quis justo eget lectus pellentesque molestie. In hac habitasse platea dictumst. Nullam pellentesque gravida felis non ultrices. Pellentesque tellus velit, congue id accumsan id, lacinia a eros. In molestie porta est non tristique.
\end{document}
natwidth
andnatheight
if they are the actual natural size of the figure they are not needed, and if they are not exactly the size of the figure then strange things happen. If you could reproduce the problem usingexample-image
(that most people have already) it would be easier to help\includegraphics
in an\fbox
, so as to see whether the white space is in the picture itself.