コンパイルの問題: ! LaTeX エラー: ファイル `./fig/Q_a_x' が見つかりません

コンパイルの問題: ! LaTeX エラー: ファイル `./fig/Q_a_x' が見つかりません

フォルダはファイルfigと同じディレクトリにあり.tex、図はQ_a_x.epsフォルダ内にありますfig。この問題は、Linux で を使用してコンパイルすると発生します。ではなくpdflatexを使用してコンパイルし続けることでこの問題を解決する方法はありますか? よろしくお願いします!pdflatexlatex

ファイルの位置は次のようになります。 ここに画像の説明を入力してください

そして、図は次のように tex ファイルに含まれています:

    \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}

以下は 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.
 ...

私の tex ファイルの序文は次のとおりです:

\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}

答え1

pdflatexは、 を除く (ほぼ) すべての画像ファイルを受け入れます.eps。 を.pdf.pngまたは便利な形式に変換してみてください。

epstopdfそれ以外の場合は、自動的に作業を実行する package を使用できます。その場合は、\epstopdfsetup{outdir=./fig/}生成されたファイルをどこに置くかを指示するために を追加する必要があります.pdf

関連情報