Graphics, Figures & Tablesfigure cannot be found even with graphicspath

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

figure cannot be found even with graphicspath

Post by pazmush »

I'm not to sure if this is the corect place to post, but Texnic center is telling me it can't find my figure when it is clearl there has anyone got any ideas.



ps.

do i have to write the whole path even if its in the same folder?

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

figure cannot be found even with graphicspath

Post by localghost »

You should describe a little bit more precise how you try to build your document and where those external graphics files are placed. The log file could be very helpful. Usually it is not necessary to give the whole path in case the graphics files reside in the same folder as the source. It is recommendable to to put them into a subdirectory and then include them with the relative path given.

Code: Select all

\includegraphics{subdir/filename}

Best regards
Thorsten¹
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

figure cannot be found even with graphicspath

Post by pazmush »

ok

this is how my document starts

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage{graphicx}
\usepackage{amssymb,amsmath}
\numberwithin{equation}{section}
\graphicspath{{C:/Users/Pazmush/Desktop/Latex files/Lab Report/pics}}
and this is how i attempt to place a figure

Code: Select all

\begin{figure}[tbp]
  \centering
  \includegraphics[width=1.00\textwidth]{transient}
\end{figure}
the pics are in the file above, but i only just made the chang to include a \graphicspath{{}} thingy
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Figures

Post by localghost »

From this code I can't see any problem. You didn't provide the log file (as attachment) I already asked for in my last reply. It would be very helpful in getting a clue.
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

Re: Figures

Post by pazmush »

oh yeah sorry,



ummmmmmm, how do i get that to you?

sorry, i got it
Attachments
LabReport.log
(8.35 KiB) Downloaded 268 times
Last edited by pazmush on Mon Jan 05, 2009 8:42 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

figure cannot be found even with graphicspath

Post by localghost »

pazmush wrote:[...] how do i get that to you?
You can upload files to the server as attachment to your post in the section "Upload attachment" right below the input window. To make sure the server accepts the file, simply put it into a ZIP archive.
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

Re: Figures

Post by pazmush »

decided to use the old copy and paste technique

does my package no longer support .eps files?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

figure cannot be found even with graphicspath

Post by localghost »

pazmush wrote:decided to use the old copy and paste technique

does my package no longer support .eps files?
I edited your last post and put the log file as attachment to prevent mouse wheels from early death. The log file says that you are compiling with pdflatex. You now say that you try to insert EPS files. That doesn't work because pdflatex only accepts the formats JPG, PDF and PNG for external graphics files. I suggest to convert your EPS files to PDF with the command line tool epstopdf or "on the fly" with the epstopdf package. You will need Ghostscript installed.
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

Re: Figures

Post by pazmush »

so once ive installed the package i can just use

\usepackage{epstopdf}

and everything will be cool?

or do i have to define thos other things eg.

\DeclareGraphicsExtensions?????
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

figure cannot be found even with graphicspath

Post by localghost »

Declaring graphics extensions as well as giving suffixes to file names is not necessary. The compiler will search the right format for the external files on its own. Note that you have to call the compiler with the switch -enable-write18 in the command line options to enable usage of external executables. Just adapt the output profiles of your editor.
Post Reply