Graphics, Figures & TablesPosition of Graphs

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
beth87
Posts: 6
Joined: Sat Jun 11, 2011 5:52 pm

Position of Graphs

Post by beth87 »

I am using Texniccenter and Mitex as a compiler.
I want to add some .pdf files

The graph should be so...

Text
\begin{figure}
\includegraphics [scale= 0.12]{C:/TEX/imgs/Table.eps}
\caption{Production}
\label{fg:Null}
\end{figure}
Text

but compiling it the result is that the graph is above all the text, at the very beginning of the page.
How can I manage?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Position of Graphs

Post by localghost »

You could have searched the forum for an appropriate solution. I'm pretty sure that we have already discussed this problem (about a thousand times or so). Give appropriate placement parameters to your floats.

Code: Select all

\begin{figure}[!ht]
% figure content
\end{figure}
And by the way, the forum software offers a »Code« environment to tag code as such. The button is in the list right above the input window while composing a message. It would be very kind if you use it. It just keep a post clear and legible.


Thorsten
beth87
Posts: 6
Joined: Sat Jun 11, 2011 5:52 pm

Re: Position of Graphs

Post by beth87 »

I have no idea what I should look for, and if it is so obvious couldn't you please tell me what I should actually do?
I am learning to use latex on my own and I have to hand in an important paper by next week.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Position of Graphs

Post by Stefan Kottwitz »

Hi Beth,

this can help: Prevent floating of figures or tables.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Position of Graphs

Post by localghost »

beth87 wrote:I have no idea what I should look for, and if it is so obvious couldn't you please tell me what I should actually do? […]
You know, first of all you should start with reading what others write. You certainly noticed the code box in my last reply and perhaps also the optional parameters I added to the float environment. This is preferable to the sledgehammer method by the float package that Stefan mentioned with the link he gave. I'm not a friend of preventing floats from floating, thus it is in my opinion not a good solution. If you add these options, you will see very quick a better result.
beth87 wrote:[…] I am learning to use latex on my own and I have to hand in an important paper by next week.
If so, you will be very interested in our special list with useful resources for LaTeX novices [1]. I'm sure that you will find some very helpful documents there that will make your first steps much easier.

[1] View topic: LaTeX Resources for Beginners
Post Reply