角藤先生ありがとうございます。
kpsewhich -var-value=shell_escapeの出力はpでした。
-shell-restrictedオプションをつけてもうまくxbbファイルは作成されませんでした。
そして-Shell-escapeオプションをつけてもうまく動きませんでした。
参考までに処理の履歴を貼り付けておきます。なお、コンパイルするTeXファイル本体はutf-8で記述しています。
This is e-pTeX, Version 3.1415926-p3.4-130605-2.6 (sjis) (TeX Live 2013/W32TeX)
\write18 enabled.
entering extended mode
(./main.tex
pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2011/06/27> patch level 0)
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(c:/w32tex/share/texmf-dist/tex/platex/js/jsarticle.cls(guessed encoding: ISO-20
22-JP = jis)
Document Class: jsarticle 2013/04/24 okumura
) (c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/w32tex/share/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/w32tex/share/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/w32tex/share/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(c:/w32tex/share/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/w32tex/share/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/w32tex/share/texmf-dist/tex/latex/graphics/graphics.sty
(c:/w32tex/share/texmf-dist/tex/latex/graphics/trig.sty)
(c:/w32tex/share/texmf-dist/tex/latex/config/graphics.cfg)
(c:/w32tex/share/texmf-dist/tex/latex/graphics/dvipdfmx.def))) (./main.aux(guess
ed encoding: Shift_JIS = sjis))
(./sec1.tex(guessed encoding: UTF-8 = utf8)) (./sec2.tex(guessed encoding: UTF-8
= utf8)) (./sec3.tex(guessed encoding: UTF-8 = utf8) [1]
(c:/w32tex/share/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/w32tex/share/texmf-dist/tex/latex/amsfonts/umsb.fd)
! LaTeX Error: File `hadou.xbb' not found. Use -shell-escape option to generate
automatically.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.6 \includegraphics[width=5cm]{hadou.pdf}
?