Graphics, Figures & TablesNo PDF when using graphics package

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Hauken
Posts: 3
Joined: Thu Jan 13, 2011 4:42 pm

No PDF when using graphics package

Post by Hauken »

Hi,

I'm quite new to Latex, so here is the newbie question:

I have been writing on an article for a while (all have been working well) and where about to start including som graphics. When I try to build and view output in TeXnicCenter I get two errors.

The first says: There was an error in opening this document. This
file cannot be found.
The second is a TeXnicCenter popup window saying: [DocOpen("%bm.pdf")]
[FileOpen("%bm.pdf")] Cannot execute the command.

I get the same two errors if I try with this simple example:

Code: Select all

\documentclass{article}
\usepackage[pdftex]{graphics}
\begin{document}

This is my first image.
\begin{figure}
	\centering
		\includegraphics{dybdesensitivitetw.png}
	\label{fig:dybdesensitivitetw}
\end{figure}

That's a cool picture up above.
\end{document}
Could anyone help me with this?

Thanks
Hauken
Last edited by Hauken on Mon Jan 17, 2011 11:33 am, edited 2 times in total.

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

Re: No PDF when using graphics package

Post by localghost »

The according log file should tell you what has gone wrong.


Best regards and welcome to the board
Thorsten
Hauken
Posts: 3
Joined: Thu Jan 13, 2011 4:42 pm

No PDF when using graphics package

Post by Hauken »

Sorry for not reading the board rules :roll: Here is the log file: I'm still stuck though. Very thankfull if anyone could help :!:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded format=pdflatex 2010.12.20)  14 JAN 2011 13:22
entering extended mode
**C:/Users/Kjetil/Documents/jepp/jepp.tex
(C:/Users/Kjetil/Documents/jepp/jepp.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 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
)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.

("C:\Program Files\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2010/09/14 v0.05b Graphics/color for pdfTeX
\Gread@gobject=\count87
))
(C:\Users\Kjetil\Documents\jepp\jepp.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

No PDF when using graphics package

Post by frabjous »

That log file is not complete. I wonder if you're having the same problem as this person here, which may or may not be due to a problem between MiKTeX and TeXnicCenter mentioned here -- we haven't heard back from the other poster yet if this helped.
Hauken
Posts: 3
Joined: Thu Jan 13, 2011 4:42 pm

Re: No PDF when using graphics package

Post by Hauken »

Thank you VERY much frabjous :!: , that worked out fine!

Hauken
Post Reply