# When adding a figure, following paragraph text is affected [duplicate]

This question already has an answer here:

I'm adding an image to my 2 column paper using:

\begin{figure}
\centering
\includegraphics[width=0.48\textwidth]{myimage.png}
\caption{My caption.}
\label{mylabel}
\end{figure}


Immediately before the image gets added there is no spacing between paragraphs, but immediately after it there is ~5mm spacing added between paragraphs.

When I remove the figure, the paragraph spacing goes away.

Any idea why?

A few other details:

• If I change width=0.48\textwidth to \columnwidth the same problem occurs, however if I change width=\textwidth, the image runs off the page, but the paragraph spacing issue goes away.

## marked as duplicate by Werner floats StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Feb 17 '17 at 18:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

• Try \raggedbottom. – Johannes_B Feb 17 '17 at 17:56
• Really it would be better if you showed an example it is hard to debug unseen code, but perhaps it is the issue here chat.stackexchange.com/transcript/41?m=21516617#21516617 – David Carlisle Feb 17 '17 at 17:58
• @Johannes_B that fixed it! wow, wacky, but I'll take it! Could you post it as an answer. David Carlisle, good point, I'd do so, but Johannes_B seems to have nailed it already. Thanks for the responses both of you! – davidparks21 Feb 17 '17 at 18:00
• Once I went searching for usage of \raggedbottom I found this similar case, linked here for reference: latex-community.org/forum/viewtopic.php?t=4209, incidentally, \raggedbottom goes in the preamble. – davidparks21 Feb 17 '17 at 18:01