Thread Closed

Inserting a Figure into a Latex Document

 
Share Thread Thread Tools
Jul9-09, 08:30 AM   #1
 

Inserting a Figure into a Latex Document


Hello,

I want to ask how to include 2 figures at the same page in a Latex document, because when I insert .eps figures from MATLAB, each occpies one page.

Regards
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Ants and carnivorous plants conspire for mutualistic feeding
>> Forecast for Titan: Wild weather could be ahead
>> Researchers stitch defects into the world's thinnest semiconductor
Jul9-09, 08:42 AM   #2
 
Recognitions:
Science Advisor Science Advisor
You can try using not only [h] (here), but also the override [!] construct. Check a little bit more on includegraphics documentation.

I will agree though, sometimes getting figures exactly where you want them can be a pain.
Jul9-09, 09:41 AM   #3
 
Quote by minger View Post
You can try using not only [h] (here), but also the override [!] construct. Check a little bit more on includegraphics documentation.

I will agree though, sometimes getting figures exactly where you want them can be a pain.
I didn't understand, what is the construct? and How to use it? Cab you show me a sample, please?

Regards
Jul9-09, 10:47 AM   #4
 
Recognitions:
Science Advisor Science Advisor

Inserting a Figure into a Latex Document


To insert a figure, you can do something like:
Code:
	\begin{figure}[positioning_specifiers]
	\centering
	\vspace{2mm}
	\scalebox{0.5}{\includegraphics{figures.eps}}
	\caption{here is a caption}
	\label{fig:label}
	\end{figure}
Everything here should be pretty straightforward. The positioning specifiers tell Latex how you want the picture positioned. However, it has internal controls, and usually ignores what you want because it thinks its better than you. Anyways, the controls are:
[h]---Place the float here, i.e., at the same point it occurs in the source text.
[t]---Position at the top of the page.
[b]---Position at the bottom of the page.
[p]---Put on a special page for floats only.
[!]---Override internal parameters Latex uses for determining `good' float positions

So, if you really want a picture at a certain point in the text, you can try
Code:
	\begin{figure}[!h]
But with latex, who knows
Jul9-09, 11:10 AM   #5
 
Ok, I tried to use these things, but it places the figures in positions I don't want as you said. Anyway, I used the scale attribute in the figure enviroment which does what I want exactly.

Thank you.

Regards
Thread Closed
Thread Tools


Similar Threads for: Inserting a Figure into a Latex Document
Thread Forum Replies
LaTex figure and equations Math & Science Software 1
Latex document class? Math & Science Software 0
Inserting Pictures Into Latex Math & Science Software 5
inserting equations latex style in word Math & Science Software 3
LaTeX document Biology, Chemistry & Other Homework 0