Graphics, Figures & Tablesproblem with graphicx

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

problem with graphicx

Post by NELLLY »

Hi
In the last few days, I faced problems with my graphics that I didn't have before that. I used

Code: Select all

\usepackage{graphicx, float}
\begin{figure}[H]
\includegraphics [width=0.95\textwidth, angle=-90]
{C:/MESIMAGES/VSSchart} \vspace*{-7cm}
 \caption{Chart's partition when $VSS$ chart is used.} \label{VSSchart}
\end{figure}
When I typset I get the following error message
LaTex Error:File:C:/MESIMAGES/VSSchart' not found.
However, the graph(pdf format) is well saved in the given path. Before, I didn't have the message error and the typset was perfect. I didn't change anythink in the text. I didn't know why I get this problem. What can I do?

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

problem with graphicx

Post by frabjous »

Does it work if you copy the image file into the same folder with the .tex and file and change {C:/MESIMAGES/VSSchart} to {VSSchart} ? I realize you may have a reason for wanting it in another folder, but just for the purposes of troubleshooting to determine the cause of the problem, this is worth a try.

Taking a look at the grffile package might also be worthwhile.

Beyond that, this is difficult to diagnose without a minimal working example.
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

problem with graphicx

Post by NELLLY »

Hi
When I use instead

Code: Select all


\usepackage[pdftex]{graphicx}
\usepackage{float}
The following error message is indicated
La Tex error: option clash for package graphicx.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: problem with graphicx

Post by frabjous »

There shouldn't be any need for adding the pdftex option to graphicx; the driver is auto-detected just fine.

Why were you trying that?
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

problem with graphicx

Post by NELLLY »

Hi
As you suggeted, I saved the graphic at the same folder of the .tex.

Code: Select all

\begin{figure}[H]
\includegraphics [width=0.95\textwidth, angle=-90]
{VSSchart} \vspace*{-7cm}
 \caption{Chart's partition when $VSS$ chart is used.} \label{VSSchart}
\end{figure}
I still have the same problem.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

problem with graphicx

Post by frabjous »

The problem is impossible to diagnose without more information. I have no trouble with the following mini document, when VSSchart.pdf is in the same folder as the .tex file:

Code: Select all

\documentclass{article}
\usepackage{graphicx,float}
\begin{document}
\begin{figure}[H]
\includegraphics [width=0.95\textwidth, angle=-90]
{VSSchart} \vspace*{-7cm}
\caption{Chart's partition when $VSS$ chart is used.} \label{VSSchart}
\end{figure}
\end{document}
Do you?

Double check that make sure VSSchart.pdf and not VSSChart.pdf or something like that.

Try testing with more sample documents. Does \includegraphics ever work for you? Even with another image file?
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Re: problem with graphicx

Post by NELLLY »

It does'nt work for any image.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: problem with graphicx

Post by frabjous »

Try adding \listfiles to the beginning of the document, compile, and post the resulting .log file here as an attachment.
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Re: problem with graphicx

Post by NELLLY »

Below, the attached file.
Attachments
listfiles.txt
(1.23 KiB) Downloaded 192 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

problem with graphicx

Post by frabjous »

Sorry, but that is not very helpful.

Firstly, I wanted the complete log file, not just the listfiles part of it.

Secondly, I wanted the log file for a minimal document: the minimal document I posted above. Your list shows that you are loading things like rotating and titlesec which are NOT found in the minimal example.

I ask again: do you get the problem with my minimal example, or just a longer, complete document? It does no one any good if you don't provide an actual minimal working example and limit the discussion to that. Otherwise, how are we to know whether or not the other packages are the source of the problem?

However, it does look like many of your packages are positively ancient, and it wouldn't be surprising if there were incompatibility problems. Consider updating your TeX system, or even installing a completely new one.
Post Reply