PNG画像を埋め込めなくなった

PNG画像を埋め込めなくなった

- TONE Kozaburo の投稿
返信数: 12
最近のPDF画像を埋め込めなくなったのとの関連かもしれませんが、以下のソースで

% pLaTeX
\documentclass[]{jsarticle}
\usepackage[dvipdfmx]{graphicx}

\begin{document}

\includegraphics[width=5truecm,clip]{tiger.png}
%% https://texwiki.texjp.org/?%E3%82%A8%E3%83%A9%E3%83%BC%E5%A0%B1%E5%91%8A%E7%94%A8%E3%81%AE%E6%A8%99%E6%BA%96%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BB%E3%83%83%E3%83%88

\end{document}

tiger.png はコメントのURLからダウンロードしたもの

上記をタイプセットして dvipdfmx で処理すると以下のように埋め込みに失敗します。

C:\Users\tony\Documents>dvipdfmx -v hoge
<FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/dlbase14.map><FON
TMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/updmap/dvipdfm.map><FONTMA
P:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/kanjix.map><FONTMAP:c:/u
sr/local/share/texmf-local/fonts/map/dvipdfmx/base/cid-local-x.map>hoge -> hoge.
pdf
DVI Comment:  TeX output 2017.06.19:1253
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1
dvipdfmx:warning: Unrecognized key or invalid value for dimension/transformation
: page
dvipdfmx:warning: Reading option field in pdf:image failed.
dvipdfmx:warning: Interpreting special command image (pdf:) failed.
dvipdfmx:warning: >> at page="1" position="(81.1481, 583.23)" (in PDF)
dvipdfmx:warning: >> xxx "pdf:image page  width 142.26378pt (tiger.png) "
dvipdfmx:warning: >> Reading special command stopped around >>width 142.26378pt
(tiger.png) <<

Current input buffer is -->pdf:image page  width 142.26378pt (tiger.png) <--
<cmr10@9.96pt(TFM:cmr10)
pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at font_id=<cmr10,0>.
>](cmr10[Type1])
Compression saved 168 bytes
1375 bytes written

C:\Users\tony\Documents>

回避方法はあるでしょうか。
TONE Kozaburo への返信

Re: PNG画像を埋め込めなくなった

- Akira Kakuto の投稿
> 回避方法はあるでしょうか。

W32TeX の場合,
latex.tar.xz (2017/06/18 18:59:50)
にアプデートして下さい。
Akira Kakuto への返信

Re: PNG画像を埋め込めなくなった

- TONE Kozaburo の投稿
ありがとうございます。

[2017/06/18]
(01) biblatex-biber.tar.xz
    Add biblatex-enc.
(02) latex.tar.xz
    Update graphics-def.
(03) xetex-w32.tar.xz
    Update bidi, and xepersian.

を、インストールしました。
TONE Kozaburo への返信

Re: PNG画像を埋め込めなくなった

- TONE Kozaburo の投稿
すみません。新しい latex.tar.xz を入れてみたのですが、コレだと今のところ駄目のようです。

C:\Users\tony\Documents\work>platex hoge
This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (sjis) (TeX Live 2017/W32Te
X) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./hoge.tex
pLaTeX2e <2017/05/05> (based on LaTeX2e <2017-04-15>)
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jsarticle.cls(guessed encodi
ng: ISO-2022-JP = jis)
Document Class: jsarticle 2017/03/05 okumura, texjporg
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jslogo.sty))
(c:/usr/local/share/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/usr/local/share/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/usr/local/share/texmf-dist/tex/latex/graphics/graphics.sty
(c:/usr/local/share/texmf-dist/tex/latex/graphics/trig.sty)
(c:/usr/local/share/texmf-dist/tex/latex/config/graphics.cfg)
(c:/usr/local/share/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
(c:/usr/local/share/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(c:/usr/local/share/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))) (./hoge.aux
) <tiger.png> [1] (./hoge.aux) )
Output written on hoge.dvi (1 page, 264 bytes).
Transcript written on hoge.log.

C:\Users\tony\Documents\work>dvipdfmx -v hoge
<FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/dlbase14.map><FON
TMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/updmap/dvipdfm.map><FONTMA
P:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/kanjix.map><FONTMAP:c:/u
sr/local/share/texmf-local/fonts/map/dvipdfmx/base/cid-local-x.map>hoge -> hoge.
pdf
DVI Comment:  TeX output 2017.06.19:1620
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1
dvipdfmx:warning: Unrecognized key or invalid value for dimension/transformation
: page
dvipdfmx:warning: Reading option field in pdf:image failed.
dvipdfmx:warning: Interpreting special command image (pdf:) failed.
dvipdfmx:warning: >> at page="1" position="(81.1481, 583.23)" (in PDF)
dvipdfmx:warning: >> xxx "pdf:image page  width 142.26378pt (tiger.png) "
dvipdfmx:warning: >> Reading special command stopped around >>width 142.26378pt
(tiger.png) <<

Current input buffer is -->pdf:image page  width 142.26378pt (tiger.png) <--
<cmr10@9.96pt(TFM:cmr10)
pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at font_id=<cmr10,0>.
>](cmr10[Type1])
Compression saved 168 bytes
1375 bytes written

C:\Users\tony\Documents\work>

成功しないログファイルは
This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (sjis) (TeX Live 2017/W32TeX) (preloaded format=platex 2017.5.21)  19 JUN 2017 16:20
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./hoge.tex
(./hoge.tex
pLaTeX2e <2017/05/05> (based on LaTeX2e <2017-04-15>)
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jsarticle.cls
Document Class: jsarticle 2017/03/05 okumura, texjporg
\jsc@mpt=\dimen118
\jsc@mmm=\dimen119
\jsc@smallskipamount=\skip41
LaTeX Info: Redefining \rmfamily on input line 468.
LaTeX Info: Redefining \sffamily on input line 471.
LaTeX Info: Redefining \ttfamily on input line 474.
LaTeX Info: Redefining \textmc on input line 477.
LaTeX Info: Redefining \textgt on input line 479.
\symmincho=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `mincho' in version `bold'
(Font)                  JY1/mc/m/n --> JY1/gt/m/n on input line 540.
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 731.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 731.
\fullwidth=\dimen120
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 883.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 883.
\c@part=\count82
\c@section=\count83
\c@subsection=\count84
\c@subsubsection=\count85
\c@paragraph=\count86
\c@subparagraph=\count87
\@abstractbox=\box42
\c@figure=\count88
\c@table=\count89
\abovecaptionskip=\skip42
\belowcaptionskip=\skip43
\jsc@tocl@width=\dimen121
\@lnumwidth=\dimen122
\bibindent=\dimen123
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jslogo.sty
Package: jslogo 2017/02/24 okumura, texjporg
LaTeX Info: Redefining \TeX on input line 94.
LaTeX Info: Redefining \LaTeX on input line 147.
LaTeX Info: Redefining \LaTeXe on input line 200.
)
\heisei=\count90
)
(c:/usr/local/share/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)

(c:/usr/local/share/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks15
)
(c:/usr/local/share/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2017/06/13 v1.2b Standard LaTeX Graphics (DPC,SPQR)

(c:/usr/local/share/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(c:/usr/local/share/texmf-dist/tex/latex/config/graphics.cfg
File: graphics.cfg 2016/01/02 v1.10 graphics configuration of TeX Live
)
Package graphics Info: Driver file: dvipdfmx.def on input line 99.

(c:/usr/local/share/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
File: dvipdfmx.def 2016/06/22 v4.09 LaTeX color/graphics driver for dvipdfmx (T
eX Live/ChoF)

(c:/usr/local/share/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(c:/usr/local/share/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)))
\Gin@req@height=\dimen124
\Gin@req@width=\dimen125
) (./hoge.aux)
\openout1 = `hoge.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:    Checking defaults for JY1/mc/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for JT1/mc/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
File: tiger.png Graphic file (type bmp)
<tiger.png> [1

] (./hoge.aux) )
Here is how much of TeX's memory you used:
973 strings out of 493653
12034 string characters out of 6150772
69006 words of memory out of 5000000
4609 multiletter control sequences out of 15000+600000
8372 words of font info for 36 fonts, out of 8000000 for 9000
934 hyphenation exceptions out of 8191
27i,4n,21p,218b,164s stack positions out of 5000i,500n,10000p,500000b,80000s

Output written on hoge.dvi (1 page, 264 bytes).


TONE Kozaburo への返信

Re: PNG画像を埋め込めなくなった

- TONE Kozaburo の投稿
diff を取ると

C:\Users\tony\Documents\work>diff ok-hoge.log hoge.log
1c1
< This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (sjis) (TeX Live 2017/W32
TeX) (preloaded format=platex 2017.5.21)  19 JUN 2017 16:00
---
> This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (sjis) (TeX Live 2017/W32
TeX) (preloaded format=platex 2017.5.21)  19 JUN 2017 16:20
53,54c53,54
< (c:/usr/local/share/texmf-local/tex/latex/graphics-quickfix/graphicx.sty
< Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
---
> (c:/usr/local/share/texmf-dist/tex/latex/graphics/graphicx.sty
> Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
60,61c60,61
< (c:/usr/local/share/texmf-local/tex/latex/graphics-quickfix/graphics.sty
< Package: graphics 2017/04/14 v1.1b Standard LaTeX Graphics (DPC,SPQR)
---
> (c:/usr/local/share/texmf-dist/tex/latex/graphics/graphics.sty
> Package: graphics 2017/06/13 v1.2b Standard LaTeX Graphics (DPC,SPQR)
71,74c71,80
< (c:/usr/local/share/texmf-local/tex/latex/graphics-quickfix/dvipdfmx.def
< File: dvipdfmx.def 2017/01/22 v4.13 LaTeX color/graphics driver for dvipdfmx (
L
< 3/ChoF)
< ))
---
> (c:/usr/local/share/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
> File: dvipdfmx.def 2016/06/22 v4.09 LaTeX color/graphics driver for dvipdfmx (
T
> eX Live/ChoF)
>
> (c:/usr/local/share/texmf-dist/tex/generic/oberdiek/infwarerr.sty
> Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
> )
> (c:/usr/local/share/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
> Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
> )))
77,78c83
< )
< (./hoge.aux)
---
> ) (./hoge.aux)
102,105c107,110
<  799 strings out of 493653
<  9398 string characters out of 6150772
<  67788 words of memory out of 5000000
<  4442 multiletter control sequences out of 15000+600000
---
>  973 strings out of 493653
>  12034 string characters out of 6150772
>  69006 words of memory out of 5000000
>  4609 multiletter control sequences out of 15000+600000
108c113
<  25i,4n,21p,187b,164s stack positions out of 5000i,500n,10000p,500000b,80000s
---
>  27i,4n,21p,218b,164s stack positions out of 5000i,500n,10000p,500000b,80000s
110c115
< Output written on hoge.dvi (1 page, 308 bytes).
---
> Output written on hoge.dvi (1 page, 264 bytes).

C:\Users\tony\Documents\work>
TONE Kozaburo への返信

Re: PNG画像を埋め込めなくなった

- Z. R. の投稿
> (c:/usr/local/share/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
> File: dvipdfmx.def 2016/06/22 v4.09 LaTeX color/graphics driver for dvipdfmx (T
> eX Live/ChoF)

dvipdfmx.def の配置場所は2016年7月に
$TEXMFDIST/tex/latex/dvipdfmx-def/dvipdfmx.def
から
$TEXMFDIST/tex/latex/graphics-def/dvipdfmx.def
に変わっています。

W32TeX で“単純に上書き”してアップデートした場合に、dvipdfmx-def にある古い版の dvipdfmx.def が残っていて、graphics.sty と不整合になっているのでしょう。

TONE Kozaburo への返信

Re: PNG画像を埋め込めなくなった

- Akira Kakuto の投稿
おそらく,ディレクトリの変更のせいです。
いったん全部入れ替えたようが良いと思います。
ご面倒ですみません。

(ちゃんとした diff ではありませんが以下参照)

-(c:/usr/local/share/texmf-dist/tex/latex/config/graphics.cfg
-File: graphics.cfg 2016/01/02 v1.10 graphics configuration of TeX Live
+(c:/usr/local/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
+File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
(graphics.cfg の場所が変更されていることに注意。
graphics.cfg は web2c-lib.tar.xz 内だったか)


-(c:/usr/local/share/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
-File: dvipdfmx.def 2016/06/22 v4.09 LaTeX color/graphics driver for dvipdfmx (T
-eX Live/ChoF)
+(c:/usr/local/share/texmf-dist/tex/latex/graphics-def/dvipdfmx.def
+File: dvipdfmx.def 2017/06/14 v5.0e Graphics/color driver for dvipdfmx
+))

(dvipdfmx.def の場所が変更されていることに注意)
Akira Kakuto への返信

Re: PNG画像を埋め込めなくなった

- TONE Kozaburo の投稿
>おそらく,ディレクトリの変更のせいです。
>いったん全部入れ替えたようが良いと思います。

ありがとうございます。
texmf-local 以外は削除して全部入れ替えました。

「古い版をカスタムでインストールする」を行うこと無く正常にPNG画像を埋め込めるようになりました。

今回のログファイルです。

This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (sjis) (TeX Live 2017/W32TeX) (preloaded format=platex 2017.5.21)  19 JUN 2017 19:25
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./hoge.tex
(./hoge.tex
pLaTeX2e <2017/05/05> (based on LaTeX2e <2017-04-15>)
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jsarticle.cls
Document Class: jsarticle 2017/03/05 okumura, texjporg
\jsc@mpt=\dimen118
\jsc@mmm=\dimen119
\jsc@smallskipamount=\skip41
LaTeX Info: Redefining \rmfamily on input line 468.
LaTeX Info: Redefining \sffamily on input line 471.
LaTeX Info: Redefining \ttfamily on input line 474.
LaTeX Info: Redefining \textmc on input line 477.
LaTeX Info: Redefining \textgt on input line 479.
\symmincho=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `mincho' in version `bold'
(Font)                  JY1/mc/m/n --> JY1/gt/m/n on input line 540.
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 731.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 731.
\fullwidth=\dimen120
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 883.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 883.
\c@part=\count82
\c@section=\count83
\c@subsection=\count84
\c@subsubsection=\count85
\c@paragraph=\count86
\c@subparagraph=\count87
\@abstractbox=\box42
\c@figure=\count88
\c@table=\count89
\abovecaptionskip=\skip42
\belowcaptionskip=\skip43
\jsc@tocl@width=\dimen121
\@lnumwidth=\dimen122
\bibindent=\dimen123
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jslogo.sty
Package: jslogo 2017/02/24 okumura, texjporg
LaTeX Info: Redefining \TeX on input line 94.
LaTeX Info: Redefining \LaTeX on input line 147.
LaTeX Info: Redefining \LaTeXe on input line 200.
)
\heisei=\count90
)
(c:/usr/local/share/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)

(c:/usr/local/share/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks15
)
(c:/usr/local/share/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2017/06/13 v1.2b Standard LaTeX Graphics (DPC,SPQR)

(c:/usr/local/share/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(c:/usr/local/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: dvipdfmx.def on input line 99.

(c:/usr/local/share/texmf-dist/tex/latex/graphics-def/dvipdfmx.def
File: dvipdfmx.def 2017/06/14 v5.0e Graphics/color driver for dvipdfmx
))
\Gin@req@height=\dimen124
\Gin@req@width=\dimen125
)
(./hoge.aux)
\openout1 = `hoge.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:    Checking defaults for JY1/mc/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for JT1/mc/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
File: tiger.png Graphic file (type bmp)
<tiger.png>
[1

] (./hoge.aux) )
Here is how much of TeX's memory you used:
802 strings out of 493653
9398 string characters out of 6150772
66805 words of memory out of 5000000
4445 multiletter control sequences out of 15000+600000
8372 words of font info for 36 fonts, out of 8000000 for 9000
934 hyphenation exceptions out of 8191
25i,4n,21p,183b,164s stack positions out of 5000i,500n,10000p,500000b,80000s

Output written on hoge.dvi (1 page, 332 bytes).
TONE Kozaburo への返信

Re: PNG画像を埋め込めなくなった

- TONE Kozaburo の投稿
回答ありがとうございます。

以下のページ

「graphicxパッケージでのPDF画像挿入の仕様が変わってヤバイ件」
http://qiita.com/zr_tex8r/items/a0516f211831a3fc2c0e

「古い版をカスタムでインストールする」で解決しました。

埋め込めないのは「PDFファイル*だけ*」と読んだのですが、間違っていたようです。TEXHOME は無かったので TEXLOCAL 下のディレクトリに置きました。

成功しているログは以下のとおりです。

This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (sjis) (TeX Live 2017/W32TeX) (preloaded format=platex 2017.5.21)  19 JUN 2017 16:00
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**./hoge.tex
(./hoge.tex
pLaTeX2e <2017/05/05> (based on LaTeX2e <2017-04-15>)
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jsarticle.cls
Document Class: jsarticle 2017/03/05 okumura, texjporg
\jsc@mpt=\dimen118
\jsc@mmm=\dimen119
\jsc@smallskipamount=\skip41
LaTeX Info: Redefining \rmfamily on input line 468.
LaTeX Info: Redefining \sffamily on input line 471.
LaTeX Info: Redefining \ttfamily on input line 474.
LaTeX Info: Redefining \textmc on input line 477.
LaTeX Info: Redefining \textgt on input line 479.
\symmincho=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `mincho' in version `bold'
(Font)                  JY1/mc/m/n --> JY1/gt/m/n on input line 540.
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 731.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 9.60999pt on input line 731.
\fullwidth=\dimen120
LaTeX Font Info:    Font shape `JT1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 883.
LaTeX Font Info:    Font shape `JY1/mc/m/n' will be
(Font)              scaled to size 7.68799pt on input line 883.
\c@part=\count82
\c@section=\count83
\c@subsection=\count84
\c@subsubsection=\count85
\c@paragraph=\count86
\c@subparagraph=\count87
\@abstractbox=\box42
\c@figure=\count88
\c@table=\count89
\abovecaptionskip=\skip42
\belowcaptionskip=\skip43
\jsc@tocl@width=\dimen121
\@lnumwidth=\dimen122
\bibindent=\dimen123
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jslogo.sty
Package: jslogo 2017/02/24 okumura, texjporg
LaTeX Info: Redefining \TeX on input line 94.
LaTeX Info: Redefining \LaTeX on input line 147.
LaTeX Info: Redefining \LaTeXe on input line 200.
)
\heisei=\count90
)
(c:/usr/local/share/texmf-local/tex/latex/graphics-quickfix/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)

(c:/usr/local/share/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks15
)
(c:/usr/local/share/texmf-local/tex/latex/graphics-quickfix/graphics.sty
Package: graphics 2017/04/14 v1.1b Standard LaTeX Graphics (DPC,SPQR)

(c:/usr/local/share/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(c:/usr/local/share/texmf-dist/tex/latex/config/graphics.cfg
File: graphics.cfg 2016/01/02 v1.10 graphics configuration of TeX Live
)
Package graphics Info: Driver file: dvipdfmx.def on input line 99.

(c:/usr/local/share/texmf-local/tex/latex/graphics-quickfix/dvipdfmx.def
File: dvipdfmx.def 2017/01/22 v4.13 LaTeX color/graphics driver for dvipdfmx (L
3/ChoF)
))
\Gin@req@height=\dimen124
\Gin@req@width=\dimen125
)
(./hoge.aux)
\openout1 = `hoge.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:    Checking defaults for JY1/mc/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for JT1/mc/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
File: tiger.png Graphic file (type bmp)
<tiger.png> [1

] (./hoge.aux) )
Here is how much of TeX's memory you used:
799 strings out of 493653
9398 string characters out of 6150772
67788 words of memory out of 5000000
4442 multiletter control sequences out of 15000+600000
8372 words of font info for 36 fonts, out of 8000000 for 9000
934 hyphenation exceptions out of 8191
25i,4n,21p,187b,164s stack positions out of 5000i,500n,10000p,500000b,80000s

Output written on hoge.dvi (1 page, 308 bytes).

TONE Kozaburo への返信

Re: PNG画像を埋め込めなくなった

- aminophen の投稿
> 最近のPDF画像を埋め込めなくなった

https://okumuralab.org/tex/mod/forum/discuss.php?d=2211
を見て誤解されているかもしれませんので正しておきます。

最近の dvipdfmx.def や graphicx の変更は
「特殊な PDF を \includegraphics するときに,採用される
バウンディングボックスが変化する場合がある」
というものです。
したがって,バウンディングボックスが変わって PDF 図版周囲の余白量が
変わることはあっても,決して「そもそも PDF を埋め込めなくなった」
ということはありません。

特殊な,というのは例えば Adobe Illustrator のような
「一つのページに複数のバウンディングボックスがある場合」
のことです。
ほとんどのソフトで作った PDF は MediaBox だけか,もしくは
MediaBox と CropBox しか持っていないので,影響は限られます。

-----

蛇足ですが

この変更は賛否両論あるようですね。

後方互換性を重んじる立場からは,既存文書に影響が出うるいかなる変更も
許容されないという意見が出るでしょう。

一方で,こういう見方もあります。
dvipdfmx は従来から「独特のバウンディングボックス選択律」を持っていて,
世界的に見てよりユーザの多い pdflatex + lualatex とは異なっていた
わけです。これがようやく pdflatex / lualatex 方式に統一された,つまり
「platex + dvipdfmx から lualatex に乗り換えるときに突然余白量が変わって困る」
ということが起きにくくなった,という肯定的な見方もあるでしょう。