I'm new to LaTeX and I'm writing a report with it. In the beginning everything is okay but when I insert a picture the text is disturbed and moved from its place and the text that is supposed to be after the picture is written before it. Please help me
Asked
Active
Viewed 82 times
0
1 Answers
1
Maybe this helps for a start. Please make sure that you read How to use the placement options [t], [h] with figures? for example regarding the different placement options for so-called floating objects like figures and tables.
\documentclass{article}
\usepackage{graphicx}
% Provides the [H] placement option
\usepackage{float}
% Just for some random text
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{figure}[H] % H --> Here and nowhere else :)
\centering
\includegraphics[width=0.8\textwidth]{example-image-a}
\caption{Caption of the nice example picture.}
\end{figure}
\blindtext
\end{document}
Dr. Manuel Kuehner
- 22,451

\documentclass{...}and ending with\end{document}(including only relevant packages) that still illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code. – Troy Mar 15 '17 at 16:31figureenvironment to place the picture, it is a "float" that will float to the place LaTeX thinks best. You can override the default float behavior by invoking it with\begin{figure}[hb] ... \end{figure}. Thehsays try to place the figure "here" where I made the call, and if not possible, thebsays to place the figure at the bottom of the page. – Steven B. Segletes Mar 15 '17 at 16:39