Problema com a compilação: ! Erro LaTeX: Arquivo `./fig/Q_a_x' não encontrado

Problema com a compilação: ! Erro LaTeX: Arquivo `./fig/Q_a_x' não encontrado

A pasta figestá no mesmo diretório do .texarquivo e a figura Q_a_x.epsestá dentro da pasta fig. Esse problema acontece quando eu compilo usando pdflatexno Linux. Existe alguma maneira de resolver esse problema, mas continuar compilando usando pdflatex, em vez de latex? Desde já, obrigado!

As posições dos arquivos são mostradas aqui: insira a descrição da imagem aqui

E a figura está incluída no arquivo tex como:

    \begin{figure}[h]
  \centering
\includegraphics[width=3.4in]{./fig/Q_a_x.eps}
\caption{$Q^{GW}(a_*,x)$ as a function of x for different $a_*$'s.}
\label{figQ-a-x}
\end{figure}

Aqui está o resultado da compilação do pdflatex:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(./kerr.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/revtex4/revtex4.cls
Document Class: revtex4 2001/08/02 v4.0 (http://publish.aps.org/revtex4/
for documentation)
ltxutil: portions licensed from W. E. Baxter ([email protected])
ltxgrid: portions licensed from W. E. Baxter ([email protected])
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)
(/usr/share/texlive/texmf-dist/tex/latex/natbib/natbib.sty)
(/usr/share/texlive/texmf-dist/tex/latex/revtex4/revsymb.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texlive/texmf-dist/tex/latex/revtex4/aps.rtx)
(/usr/share/texlive/texmf-dist/tex/latex/revtex4/10pt.rtx)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/epsfig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg))

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/share/texlive/texmf-dist/tex/generic/ulem/ulem.sty)
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvipsnam.def))
(/usr/share/texlive/texmf-dist/tex/latex/subfig/subfig.sty
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty)

Package caption Warning: Unsupported document class (or package) detected,
(caption)                usage of the caption package is not recommended.
See the caption package documentation for explanation.

)) (/usr/share/texlive/texmf-dist/tex/latex/tools/tabularx.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty)) (./kerr.aux)
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)

Package hyperref Warning: Height of page (\paperheight) is invalid (0.0pt),
(hyperref)                using 11in.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./kerr.out) (./kerr.out)

Package caption Warning: \caption will not be redefined since it's already
(caption)                redefined by a document class or package which is
(caption)                unknown to the caption package.
See the caption package documentation for explanation.

(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)

LaTeX Warning: Reference `conclusions' on page 1 undefined on input line 74.

[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
Overfull \hbox (5.00699pt too wide) in alignment at lines 86--89
 [][][] []

LaTeX Warning: Reference `appendix:spin' on page 2 undefined on input
line 93.


Underfull \hbox (badness 4013) in paragraph at lines 93--95
[]\OT1/cmr/m/n/10 The above an-gu-lar equa-tion is the well-known

LaTeX Warning: Reference `appendix:spin' on page 2 undefined on input
line 112.



Package hyperref Warning: Ignoring empty anchor on input line 114.


LaTeX Warning: Reference `appendix:setup' on page 2 undefined on input
line 120
.

[2]
Underfull \hbox (badness 10000) in paragraph at lines 126--128
[]\OT1/cmr/m/n/10 We first de-fine a di-men-sion-less quan-tity

Underfull \hbox (badness 1142) in paragraph at lines 126--128
\OML/cmm/m/it/10 Q[]\OT1/cmr/m/n/10 (\OML/cmm/m/it/10 a[];
M!\OT1/cmr/m/n/10 )$
, which rep-re-sents the ex-pected emis-

Overfull \hbox (8.801pt too wide) in alignment at lines 128--132
 [][][] []

! LaTeX Error: File `./fig/Q_a_x' not found.

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

O preâmbulo do meu arquivo tex está aqui:

\documentclass[prd, amsfonts, twocolumn, nofootinbib, showpacs]{revtex4}
\usepackage{graphicx, epsfig}
\usepackage{color}
\usepackage{amsmath}
\usepackage{hyperref}
\lower0.6ex\hbox{$\sim$}}}
\newcommand{\lapp}{\mathrel{\raise.3ex\hbox{$<$}\mkern-14mu \lower0.6ex\hbox{$\sim$}}}
\def\bbox{{\,\lower0.9pt\vbox{\hrule \hbox{\vrule height 0.2 cm
\hskip 0.2 cm \vrule  height 0.2 cm}\hrule}\,}}

\makeatletter
\makeatother

%%%%%%%%%%%%%%%%%%%%% EDITING MARKUP %%%%%%%%%%%%%%%%%%
\usepackage{color}
\usepackage{ulem}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{subfig}
\usepackage{tabularx}

Responder1

pdflatexaceita (quase) todos os arquivos de imagem, exceto .eps. Tente convertê-lo para .pdfou .pngqualquer coisa conveniente.

Caso contrário, você poderia usar epstopdfo pacote, que faz o trabalho automaticamente. Nesse caso, você deve adicionar \epstopdfsetup{outdir=./fig/}, para informar onde colocar o .pdfarquivo produzido.

informação relacionada