LyXIncluding Graphic causes Error

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
cmegaw
Posts: 6
Joined: Wed Jun 01, 2011 1:11 am

Including Graphic causes Error

Post by cmegaw »

I am having an error when I try and include a graphic but this error only occurs when I try and input the command directly using ctrl.
This has been annoying me because there are some settings my professor wants me to put on my paper but I can't get it to work.

If I go to include graphics and include my image I get the source code:

Code: Select all

\begin{center}
\includegraphics[scale=0.4]{/home/cameron/Masters/Images/IntFeasCycl}\par
\end{center}
This compiles correctly and shows the .eps image. But if I try to copy and paste the source code into the red box. I get the error:

Code: Select all

 .../home/cameron/Masters/Images/IntFeasCycl}
                                                   \par\end{center}
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.
This makes no sense to me because I am exactly copying the source code that works from when I went to include graphics. Is there something I am doing wrong with my input?
Last edited by localghost on Wed Jun 06, 2012 10:22 am, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Including Graphic causes Error

Post by CrazyHorse »

You should use the LyX interface to import the graphic into your document. If you use the ERT (Evil Red Text) mode, then you'll have to convert the eps graphic to pdf by laoding the package

Code: Select all

eps2pdf
cmegaw
Posts: 6
Joined: Wed Jun 01, 2011 1:11 am

Re: Including Graphic causes Error

Post by cmegaw »

Thanks now it works!
It was the epstopdf package that was needed
Post Reply