From: Angela Brands on 20 Mar 2010 12:21 hi there, I want to include a matlab figure in a latex file... Let say I want the figure: plot(1:10) I've read that you can save this figure as an eps file using the command: print -deps plot So now I have a file called plot.eps Then I need to iclude the figure as follows: \documentclass{report} \usepackage{graphicx} \begin{document} \begin{figure} \centering \includegraphics{plot} \end{figure} This is a sample document. \end{document} but when I build it, I get an Error that says: file 'plot' not found How can I get this right?? Does anyone have an idea...??? (I use TeXnicCenter and Miktex) I would really apreciate help! Thanks kind regards Angela I use TeXnicCenter and Miktex
From: Rune Allnor on 20 Mar 2010 12:36 On 20 Mar, 17:21, "Angela Brands" <angela_christ...(a)hotmail.com> wrote: > hi there, > > I want to include a matlab figure in a latex file... > > Let say I want the figure: plot(1:10) > I've read that you can save this figure as an eps file using the command: > > print -deps plot > > So now I have a file called plot.eps > > Then I need to iclude the figure as follows: > > \documentclass{report} > \usepackage{graphicx} > \begin{document} > \begin{figure} > \centering > \includegraphics{plot} > \end{figure} > This is a sample document. > \end{document} > > but when I build it, I get an Error that says: file 'plot' not found Specify the filename extension both when you plot the figure, print -deps plot.eps and when you include the plot in the LaTeX document: \includegraphics{plot.eps} Make sure you use a standard filename extension for the format you print to, or LaTeX might become confused about the format of the figure. Rune
From: Angela Brands on 20 Mar 2010 13:17 Rune Allnor <allnor(a)tele.ntnu.no> wrote in message <77e3275f-0021-4642-bd10-915bd5ed5d04(a)r27g2000yqn.googlegroups.com>... > On 20 Mar, 17:21, "Angela Brands" <angela_christ...(a)hotmail.com> > wrote: > > hi there, > > > > I want to include a matlab figure in a latex file... > > > > Let say I want the figure: plot(1:10) > > I've read that you can save this figure as an eps file using the command: > > > > print -deps plot > > > > So now I have a file called plot.eps > > > > Then I need to iclude the figure as follows: > > > > \documentclass{report} > > \usepackage{graphicx} > > \begin{document} > > \begin{figure} > > \centering > > \includegraphics{plot} > > \end{figure} > > This is a sample document. > > \end{document} > > > > but when I build it, I get an Error that says: file 'plot' not found > > Specify the filename extension both when you plot the figure, > > print -deps plot.eps > > and when you include the plot in the LaTeX document: > > \includegraphics{plot.eps} > > Make sure you use a standard filename extension for the > format you print to, or LaTeX might become confused about > the format of the figure. > > Rune Thanks for your reply!! I did what you told me to do but still I get an Error with: file 'plot.eps' not found and now I also get a warning: unknown graphics extension: .eps this is frustrating...
From: Sadik on 20 Mar 2010 13:29 Hi, I don't know whole a lot about the latex commands, but maybe the following is worth trying: \DeclareGraphicsExtensions{.eps,.jpg} This is right after \usepackage stuff. Hope this helps. Best.
From: Bogdan Cristea on 20 Mar 2010 13:50
"Angela Brands" <angela_christina(a)hotmail.com> wrote in message <ho2vuf$pc0$1(a)fred.mathworks.com>... > Rune Allnor <allnor(a)tele.ntnu.no> wrote in message <77e3275f-0021-4642-bd10-915bd5ed5d04(a)r27g2000yqn.googlegroups.com>... > > On 20 Mar, 17:21, "Angela Brands" <angela_christ...(a)hotmail.com> > > wrote: > > > hi there, > > > > > > I want to include a matlab figure in a latex file... > > > > > > Let say I want the figure: plot(1:10) > > > I've read that you can save this figure as an eps file using the command: > > > > > > print -deps plot > > > > > > So now I have a file called plot.eps > > > > > > Then I need to iclude the figure as follows: > > > > > > \documentclass{report} > > > \usepackage{graphicx} > > > \begin{document} > > > \begin{figure} > > > \centering > > > \includegraphics{plot} > > > \end{figure} > > > This is a sample document. > > > \end{document} > > > > > > but when I build it, I get an Error that says: file 'plot' not found > > > > Specify the filename extension both when you plot the figure, > > > > print -deps plot.eps > > > > and when you include the plot in the LaTeX document: > > > > \includegraphics{plot.eps} > > > > Make sure you use a standard filename extension for the > > format you print to, or LaTeX might become confused about > > the format of the figure. > > > > Rune > > Thanks for your reply!! I did what you told me to do but still I get an Error with: file 'plot.eps' not found and now I also get a warning: unknown graphics extension: .eps > > this is frustrating... The lines below is what I use usually when dealing with eps files in LaTeX \usepackage{graphicx} \begin{figure}[ht] \scalebox{0.6}{\includegraphics{Figs/LTI_time}} \end{figure} |