Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Help Forum Lounge > LaTex Help
Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2008, 12:24 AM
Super Member
 
Join Date: Aug 2007
Posts: 266
Country:
Thanks: 83
Thanked 4 Times in 4 Posts
shilz222 is on a distinguished road
Default Problem inserting image in LaTeX file

When I try to insert an image, all that comes up is the file name. There is no picure. I am using TeXnicCenter, and use the following conversion: LaTeX --> PDF

Here is the code I typed:
Code:
 \textbf{5}
\begin{figure}
\centering
\includegraphics{file.JPG}
\caption{r(t) graph}
\label{Fig 1}
\end{figure}
Any ideas?

Thanks
Reply With Quote
Advertisement
 
  #2  
Old 01-16-2008, 12:57 AM
Grand Panjandrum


 
Join Date: Nov 2005
Posts: 10,426
Thanks: 517
Thanked 2,784 Times in 2,291 Posts
CaptainBlack has disabled reputation
Default

Quote:
Originally Posted by shilz222 View Post
When I try to insert an image, all that comes up is the file name. There is no picure. I am using TeXnicCenter, and use the following conversion: LaTeX --> PDF

Here is the code I typed:
Code:
 \textbf{5}
\begin{figure}
\centering
\includegraphics{file.JPG}
\caption{r(t) graph}
\label{Fig 1}
\end{figure}
Any ideas?

Thanks
I always have trouble with graphics.

You could try making sure that the case of the file name is correct (try file.jpg)

Other than that all I can suggest is that you convert the jpg to an encapsulated postscript file, that always seems to work.

Another possibility is convert the graphic to a pdf file and try including that.

And yet another; rather than go from LaTeX to pdf directly, go to postscript and use ghostview/script to convert to pdf.

Finally every combination of the above.

Finally finally check that the "usepackage[driver]{graphicsx}" (or whatever you are using) is there and you are using the correct driver.

RonL
Reply With Quote
The following users thank CaptainBlack for this useful post:
Donate to MHF
  #3  
Old 01-16-2008, 10:38 AM
Super Member
 
Join Date: Aug 2007
Posts: 266
Country:
Thanks: 83
Thanked 4 Times in 4 Posts
shilz222 is on a distinguished road
Default

Thanks, I have the image in my file now (had to add another package). The only thing now is that the file name of the image is being shown also (even though I didn't type it as a caption).

I can't seem to get rid of it. So like the file name is this form: C:\My Documents \ blah \ blah (and this appears on the screen)

Thanks for the help.
Reply With Quote
  #4  
Old 01-16-2008, 10:44 AM
colby2152's Avatar
Calculus Guru

 
Join Date: Nov 2007
Location: The Steel City
Posts: 1,639
Country:
Thanks: 590
Thanked 522 Times in 405 Posts
colby2152 is a glorious beacon of lightcolby2152 is a glorious beacon of lightcolby2152 is a glorious beacon of lightcolby2152 is a glorious beacon of lightcolby2152 is a glorious beacon of lightcolby2152 is a glorious beacon of light
Send a message via AIM to colby2152
Default

Quote:
Originally Posted by shilz222 View Post
Thanks, I have the image in my file now (had to add another package). The only thing now is that the file name of the image is being shown also (even though I didn't type it as a caption).

I can't seem to get rid of it. So like the file name is this form: C:\My Documents \ blah \ blah (and this appears on the screen)

Thanks for the help.
Try typing {math}equations'n'at...{/math}{img}web address{/img}{math}more equations'n'at...{/math}.

Is that the direction you wanted to go? I tried putting images within the LaTeX and the web address pops up for it.
__________________

Reply With Quote
  #5  
Old 01-16-2008, 11:35 AM
Super Member
 
Join Date: Aug 2007
Posts: 266
Country:
Thanks: 83
Thanked 4 Times in 4 Posts
shilz222 is on a distinguished road
Default

I am not sure what you mean... I am using TeXnic Center.
Reply With Quote
  #6  
Old 01-16-2008, 11:50 AM
Super Member
 
Join Date: Aug 2007
Posts: 266
Country:
Thanks: 83
Thanked 4 Times in 4 Posts
shilz222 is on a distinguished road
Default

This is what I am talking about
Attached Thumbnails
problem-inserting-image-latex-file-untitled.jpg  
Reply With Quote
  #7  
Old 01-17-2008, 12:50 PM
Super Member
 
Join Date: Aug 2007
Posts: 266
Country:
Thanks: 83
Thanked 4 Times in 4 Posts
shilz222 is on a distinguished road
Default

has anyone had this problem before?
Reply With Quote
  #8  
Old 01-17-2008, 01:54 PM
Krizalid's Avatar
From a unit cube


 
Join Date: Mar 2007
Location: Santiago
Posts: 2,302
Country:
Thanks: 53
Thanked 988 Times in 798 Posts
Krizalid has much to be proud ofKrizalid has much to be proud ofKrizalid has much to be proud ofKrizalid has much to be proud ofKrizalid has much to be proud ofKrizalid has much to be proud ofKrizalid has much to be proud ofKrizalid has much to be proud ofKrizalid has much to be proud of
Send a message via MSN to Krizalid
Default

What about working on EPS extension?

Try to convert your file into a EPS one.
Reply With Quote
  #9  
Old 10-13-2008, 04:47 PM
sup sup is offline
Newbie
 
Join Date: Oct 2008
Posts: 1
Country:
Thanks: 0
Thanked 0 Times in 0 Posts
sup is on a distinguished road
Default

you must remove draft from documentclass - I have been bitten by this just now. At least I suppose we had the same problem.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 01:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2008 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.