I am experiencing a problem whilst trying to insert a jpg image into a report that I am producing. I am using TeXnic Center 1 Beta v7.01. On XP Home Edition.
I have included the following packages at the beginning of the document:
\documentclass[a4paper,twoside,10pt]{article}
\usepackage{fancyhdr}
\usepackage{acronym}
\usepackage{subfigure}
\usepackage{graphicx}
\usepackage[myheadings]{fullpage}
\usepackage{lastpage}
\usepackage{array}
\usepackage{varwidth}
\usepackage{calc}
\usepackage{pst-uml}
And I have included the graphics as follows:
\begin{figure}[ht]
\begin{center}
\includegraphics[scale=.6]{BlockDiagram1}
\end{center}
\caption{\small{ZL20250 Block Diagram}}
\label{ZL20250BlockDiagram}
\end{figure}
Unfortunately, the diagram does not shown in any of the output forms, PDF, DVI, PS->PDF and so fourth. I have also tried adding .jpg extension at the end of the picture file name shown above. Finally, I have tried saving the same picture as a TIFF, BITMAP and GIF and included all four picture formats within the project folder with no avail.
The error message I keep receiving is:
! LaTeX Error: File `BlockDiagram1' not found.
I have ensured that the file name and name presented in the field \includegraphics{....} are the same.
Any suggestions would be greatly appreciated as I have used this method in the past with no problems.
Kind Regards.
General ⇒ jpg Images not recognised
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
jpg Images not recognised
What is your compiling route? In which directory are the graphics placed? If they are not in the same directory as your source file(s), you need to give the path to the directory you placed them. In your example the compiler only searches for graphics files in the same directory as the source code is in. pdflatex only accepts files in JPG, PNG or PDF format. latex needs the files in EPS format.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: jpg Images not recognised
Thank you for your reply.
Firstly, yes the files are within the same directory as the document so I have not needed to reference them within the includegraphics{...} command.
Furthermore, I have saved the same image within this directory as JPG, GIFF, TIFF and bitmap all with the same name.
I am using MikTex 2.6 and TeXnicCentre.
I have tried compiling from LaTeX => PS, LaTeX => PS => PDF, LaTeX => YAP and LaTeX => PDF
None seem to be successful......
Firstly, yes the files are within the same directory as the document so I have not needed to reference them within the includegraphics{...} command.
Furthermore, I have saved the same image within this directory as JPG, GIFF, TIFF and bitmap all with the same name.
I am using MikTex 2.6 and TeXnicCentre.
I have tried compiling from LaTeX => PS, LaTeX => PS => PDF, LaTeX => YAP and LaTeX => PDF
None seem to be successful......
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
Re: jpg Images not recognised
I have tried using your document settings and packages with a jpg figure, and compiling with LaTeX => PDF in TeXnicCenter. It works fine.
Try checking that TeXnicCenter is setup correctly.
Go to "Build" >> "Define Output Profiles" and check LaTeX => PDF. Is the LaTeX compile set to:
"..\MiKTeX 2.6\miktex\bin\pdflatex.exe"?
Patrick.
Try checking that TeXnicCenter is setup correctly.
Go to "Build" >> "Define Output Profiles" and check LaTeX => PDF. Is the LaTeX compile set to:
"..\MiKTeX 2.6\miktex\bin\pdflatex.exe"?
Patrick.
- countbela666
- Posts: 64
- Joined: Thu Apr 26, 2007 2:44 pm
jpg Images not recognised
As you are using a pstricks package (pst-uml) you have to compile with LaTeX, not with pdfLaTeX, but unfortunately LaTeX does not accept JPG images (as localghost already said).Blue Ice wrote: I am experiencing a problem whilst trying to insert a jpg image into a report that I am producing. I am using TeXnic Center 1 Beta v7.01. On XP Home Edition.
I have included the following packages at the beginning of the document:
So you either have to provide your graphics in EPS format or you have to include pst-pdf, which enables you both to compile with pdfLaTeX (via a shell script) and to use your graphics in JPG format.
Regards
Marcel
Listen to me children of the night, beyond the doors of darkness you will find
a thousand worlds for you to see here, take my hand and follow me...
a thousand worlds for you to see here, take my hand and follow me...