Reputation: 35
I'm using an online editor, ShareLaTeX, to implement a project in which I would like to take a specific slide from a PowerPoint lesson provided by the professor and comment down below. The problem now is: using this
\begin{figure}[H]
\centering
\includegraphics[scale=0.8]{3_9.png}
\end{figure}
the editor puts the figure in a place decided by itself, but I really need to have the specific pic and then the text. So I used this:
\\
\includegraphics[scale=0.8]{3_9.png}
\\
but in the final pdf it gives me a duplicate of the name of the image, the pic in the right place like the text and a ton of errors.
Upvotes: 1
Views: 5947
Reputation: 913
It's really a bad behavior to force Latex to put things in a specific location, as you are asking. In case you truly need it, you can try to use the textpos package for absolute positioning of figures or text boxes. Here you can find a small guide.
Upvotes: 1
Reputation: 35
I have just resolved the problem by adding a package:
\usepackage{float}
and using always:
\begin{figure}[H]
Wish this could be helpful to someone else!
Upvotes: 2
Reputation: 7345
Ciao! Have you tried
\begin{figure}[!h]
instead of
\begin{figure}[H]
as from the accepted answer to this question?
Upvotes: 2