Graphics, Figures & TablesError on inserting png image: File not found

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Shavril
Posts: 3
Joined: Sat Jul 30, 2016 1:52 am

Error on inserting png image: File not found

Post by Shavril »

Hello, I looked around and checked other topics of similar problem but didn't come up with solution. I have MikTeX 2.9 and am writing in WinEdt 5.3. When trying to compile LaTeX I get error
! LaTeX Error: File 'catalog' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
1.213 \includegraphics[width=10cm]{catalog}
Parts of my code are as follows:

Code: Select all

Code, edit and compile here:
\documentclass[english, 12pt, a4paper]{article}
\usepackage{amsmath, amsfonts, amsthm}
\usepackage{babel}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage[T1]{fontenc}
\usepackage[cp1250]{inputenc}
\usepackage{alltt}
\usepackage{color}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and then the problematic part

Code: Select all

Code, edit and compile here:
\begin{figure}[h]
\includegraphics[width=10cm]{catalog}
\centering
\caption{Systematic errors of common astrometric catalogs in comparison to 2MASS catalog. Horizontal axis shows the difference in arcsecs and vertical axis shows the probability density in arcsec$^{-1}$ \cite{catalogs07}.
}
\end{figure}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I also tried to use \scalebox{0.5}{\includegraphics{catalog}} with package graphics to no avail.

The image file is .png and is included in the folder of the .tex file, which is D:\tmp\TeXvzor\

What am I doing wrong?

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Error on inserting png image

Post by Stefan Kottwitz »

Hi Shavril,

welcome to the forum!

Could you please post your .log file here, as attachment? The information in that file could help.

Stefan
LaTeX.org admin
Shavril
Posts: 3
Joined: Sat Jul 30, 2016 1:52 am

Error on inserting png image: File not found

Post by Shavril »

Here is the .log file. Theres probably more stuff than this error because Im trying to compile two years old .tex (which compiled fine on my previous LaTeX; no I dont know the version.)

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9) (preloaded format=pdflatex 2016.7.24) 30 JUL 2016 17:38
entering extended mode
**./Teze.tex
(Teze.tex
LaTeX2e <2016/03/31> patch level 1
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
(D:\\texmf\tex\latex\base\article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(D:\\texmf\tex\latex\base\size12.clo
File: size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (D:\\texmf\tex\latex\amsmath\amsmath.sty
Package: amsmath 2016/03/10 v2.15b AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the `?' option.
(D:\\texmf\tex\latex\amsmath\amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text
(D:\\texmf\tex\latex\amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks14
\ex@=\dimen103
))
(D:\\texmf\tex\latex\amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen104
)
(D:\\texmf\tex\latex\amsmath\amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Shavril
Posts: 3
Joined: Sat Jul 30, 2016 1:52 am

Re: Error on inserting png image

Post by Shavril »

This is going to sound stupid, but because of desperation I just tried to compile the .tex despite the errors, pushing Enter every time the black-background window stopped to tell me something. LaTeX, then PDFLaTeX. And I got my .pdf file in the end, and all the images are there. Am I supposed to do that nowadays to get my file? :shock:
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Error on inserting png image: File not found

Post by Johannes_B »

The log file you are showing does not have the problem of files not found.

What it tells you, is (quite likely) that you are not using correct paragraph markup. When you want to start a new paragraph, add a blank line in your code. Do not use a double backslash.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Error on inserting png image: File not found

Post by Stefan Kottwitz »

The log file looks good. It says, that the PNG image is found and included:

Code: Select all

[7] <catalog.png, id=38, 850.67813pt x 433.62pt>
File: catalog.png Graphic file (type png)
<use catalog.png>
Package pdftex.def Info: catalog.png used on input line 213.
(pdftex.def) Requested size: 284.52756pt x 145.03368pt.
[8 <./catalog.png>]
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
So it should work, right? Or do you get an error message? Every error message is also in the log file.

Stefan
LaTeX.org admin
Post Reply