# How to justify text after using image in LaTeX?

I am inserting a jpg/png image in my LaTeX document in center environment. The problem is when I insert the image, the text following the image loses the justify property. Also the itemize does not work well, probably looks like the previous line overflowed.

How can i justify the text?

-

## migrated from stackoverflow.comMar 19 '13 at 19:24

This question came from our site for professional and enthusiast programmers.

Are you using graphicx package? more precisely is there any line of \usepackage{graphicx} in the beginning of your document? Later, while actually adding image are you using:

\includegraphics[scale=1.0]{image.png}


If you really want your floating image to be at a specific position then try adding [h] parameter, such as:

 \begin{figure}[h]
\centering
\includegraphics[scale=1.0]{image.png}
\caption{Caption of figure.}
\label{fig:imageLabel}
\end{figure}

-
or [h!] if you want an image to appear exactly at the position you specify. Though, this doesn't always work as expected. If you want text to wrap your figure you may want to use 'wrapfig'. –  Eugene B Mar 19 '13 at 15:22