2

I'm having a great deal of difficulty adding figures into a LaTeX template I downloaded. I downloaded and unzipped the template folder to a new folder, and am attemping to integrate a picture called "n1" that is contained in this folder. Unfortunately, I have had nothing but problems and have received file not found innumerable times.

I am using MikTeX 2.9, and I updated the file name database and added the file n1 to all of the folders specific under Setting-Roots. I am able to incorporate the file into other latex documents that I have created myself, but, for a reason I cannot determine, I can't add files to this template that I downloaded.

I am using pdfLaTeX.

Every attempt yields the following:

\includegraphics{n1} LaTeX Error: File `n1' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.81 \includegraphics{n1}

? 

The exact path of n1 is:

C:\Users\George\Documents\Thesis\psu-thesis\n1.png

The location of the TeX document is:

C:\Users\George\Documents\Thesis\psu-thesis\sample.tex

IF I state in the pre amble:

\graphicspath{{C:/Users/George/Documents/Thesis/psu-thesis/}}

I still receive the above error. I have attempted every solution that was suggested in past threads, and nothing has worked. Refreshing the FNDB was unsuccessful. Adding an absolute path was also unsuccessful. I greatly hope that the brilliant minds here will be able to think of a solution!

EDIT

Hellow world log:

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2012.1.19)  4 MAY 2015 13:58
entering extended mode
**C:/Users/George/Documents/Thesis/psu-thesis/hello_world.tex
(C:/Users/George/Documents/Thesis/psu-thesis/hello_world.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> 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 (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\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:\Users\George\Documents\Thesis\psu-thesis\hello_world.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <12> on input line 6.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 6.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 6.
 [1

{C:/Users/George/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(C:\Users\George\Documents\Thesis\psu-thesis\hello_world.aux) ) 
Here is how much of TeX's memory you used:
 225 strings out of 494045
 2698 string characters out of 3145966
 48890 words of memory out of 3000000
 3594 multiletter control sequences out of 15000+200000
 6675 words of font info for 24 fonts, out of 3000000 for 9000
 715 hyphenation exceptions out of 8191
 23i,6n,17p,244b,187s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program File
s (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Files (
x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb><C:/Program Files (x86
)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr17.pfb>
Output written on hello_world.pdf (1 page, 33459 bytes).
PDF statistics:
 18 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
  • Welcome to TeX.SX! What extension does n1 have? – egreg May 4 '15 at 17:35
  • 3
    Even brilliant minds needs a minimum of information. Your question is too vage, you give neither a complete example, nor the exact file name of the graphics, nor the pathes you used. – Ulrike Fischer May 4 '15 at 17:36
  • If you can use the image in other documents but not this one, then the problem is somewhere in the code for this one (probably). So what exactly is in this one? Normally, you don't install images into your TEXMF tree at all. The easiest way is just to have the image file in the same directory as your .tex file. – cfr May 4 '15 at 17:43
  • @egreg, it's just .png. – George May 4 '15 at 17:44
  • Next guess: are you compiling with latex or pdflatex? – egreg May 4 '15 at 17:45
5

Your template passes the option dvips to graphicx. But as you are using pdflatex (and not latex + dvips), you are lying to latex and so it doesn't look for the correct graphic type. Remove the option and hope that your template doesn't do more such silly things.

  • The unintentional lie did me in! Thanks for helping and thanks for your exception explanation. Much appreciated, I was losing my hair over this. – George May 4 '15 at 19:14
  • How to do that? – Sreejith Menon Feb 9 '17 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.