doraTeX / TeX2img

TeX2img for macOS
https://tex2img.tech
Other
26 stars 2 forks source link

任意の画像が真っ白になる #123

Open aminophen opened 3 years ago

aminophen commented 3 years ago

相変わらず OS X 10.11.6 を使っているのですが,TeX2img 2.4.3 であらゆる画像が出力されない症状が出ています。中間ファイルを置いておきます:

************************************
  TeX2img settings
************************************
Version: 2.4.3
Output file: /Users/aminophen/Desktop/equation.pdf
LaTeX compiler: /usr/local/texlive/2020dev/bin/x86_64-darwin/platex 
Auto detection of the number of compilation: enabled
The maximal number of compilation: 10
DVI Driver: /usr/local/texlive/2020dev/bin/x86_64-darwin/dvipdfmx
Ghostscript: /opt/local/bin/gs
Working directory: /var/folders/m8/j64xn09j2_xbqscws7skdbxc0000gn/T/
Resolution level: 15.0
DPI: 72
Left   margin: 0bp
Right  margin: 0bp
Top    margin: 0bp
Bottom margin: 0bp
Transparent: enabled
Background color: #FFFFFF (R=255, G=255, B=255)
Text embedded PDF: enabled
Ignore nonfatal errors: disabled
Substitute \UTF / \CID for non-JIS X 0208 characters: disabled
Conversion mode: quality priority mode
Send notification: disabled
Preview generated files: enabled
Delete temporary files: disabled
Embed source into generated files: enabled
Copy generated files to clipboard: disabled
Paste generated files into Microsoft Word: disabled
Embed generated files in Illustrator: disabled
************************************

$ export PATH=$PATH:"/usr/local/texlive/2020dev/bin/x86_64-darwin":"/opt/local/bin";/usr/local/texlive/2020dev/bin/x86_64-darwin/platex -interaction=nonstopmode "/var/folders/m8/j64xn09j2_xbqscws7skdbxc0000gn/T/temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.tex" 2>&1
entering extended mode

(/var/folders/m8/j64xn09j2_xbqscws7skdbxc0000gn/T/temp906-BCFB12B6-B9BD-42A7-88
F6-8D3437A75F8C.tex
pLaTeX2e <2020-10-01>+1 (based on LaTeX2e <2020-10-01> patch level 1)
L3 programming layer <2020-10-05> xparse <2020-03-03>
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/platex/jsclasses/
jsarticle.cls
Document Class: jsarticle 2020/10/09 jsclasses (okumura, texjporg)

(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/base/fleqn.
clo)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/platex/jsclasses/
jslogo.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
math.sty
For additional information on amsmath, use the `?' option.

(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
text.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
gen.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
bsy.sty)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
opn.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/am
ssymb.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/am
sfonts.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/gr
aphicx.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/ke
yval.sty)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/gr
aphics.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/tr
ig.sty)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics-cf
g/graphics.cfg)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics-de
f/dvipdfmx.def)))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/co
lor.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics-cf
g/color.cfg)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/dv
ipsnam.def))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/l3backend/l
3backend-dvips.def)
No file temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.aux.

(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/um
sa.fd)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/um
sb.fd) [1] (./temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.aux) )
Output written on temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.dvi (1 page, 524
 bytes).
Transcript written on temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.log.

$ export PATH=$PATH:"/usr/local/texlive/2020dev/bin/x86_64-darwin":"/opt/local/bin";/usr/local/texlive/2020dev/bin/x86_64-darwin/platex -interaction=nonstopmode "/var/folders/m8/j64xn09j2_xbqscws7skdbxc0000gn/T/temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.tex" 2>&1
entering extended mode

(/var/folders/m8/j64xn09j2_xbqscws7skdbxc0000gn/T/temp906-BCFB12B6-B9BD-42A7-88
F6-8D3437A75F8C.tex
pLaTeX2e <2020-10-01>+1 (based on LaTeX2e <2020-10-01> patch level 1)
L3 programming layer <2020-10-05> xparse <2020-03-03>
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/platex/jsclasses/
jsarticle.cls
Document Class: jsarticle 2020/10/09 jsclasses (okumura, texjporg)

(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/base/fleqn.
clo)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/platex/jsclasses/
jslogo.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
math.sty
For additional information on amsmath, use the `?' option.

(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
text.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
gen.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
bsy.sty)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsmath/ams
opn.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/am
ssymb.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/am
sfonts.sty))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/gr
aphicx.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/ke
yval.sty)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/gr
aphics.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/tr
ig.sty)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics-cf
g/graphics.cfg)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics-de
f/dvipdfmx.def)))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/co
lor.sty
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics-cf
g/color.cfg)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/graphics/dv
ipsnam.def))
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/l3backend/l
3backend-dvips.def) (./temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.aux)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/um
sa.fd)
(/Users/aminophen/tex-devel/texlive-svn/Master/texmf-dist/tex/latex/amsfonts/um
sb.fd) [1] (./temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.aux) )
Output written on temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.dvi (1 page, 524
 bytes).
Transcript written on temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.log.

$ export PATH=$PATH:"/usr/local/texlive/2020dev/bin/x86_64-darwin":"/opt/local/bin";/usr/local/texlive/2020dev/bin/x86_64-darwin/dvipdfmx "/var/folders/m8/j64xn09j2_xbqscws7skdbxc0000gn/T/temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.dvi" 2>&1
[1]
5519 bytes written

TeX2img: Getting the bounding box...

$ /opt/local/bin/gs -dBATCH -dNOPAUSE -sDEVICE=bbox -c '<< /WhiteIsOpaque true >> setpagedevice' -f "temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.pdf" > temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C-bbox 2>&1

TeX2img: Adjusting bounding boxes...

TeX2img: 1 個のファイルを生成しました。

一応,手動で

$ /opt/local/bin/gs -dBATCH -dNOPAUSE -sDEVICE=bbox -c '<< /WhiteIsOpaque true >> setpagedevice' -f /Users/aminophen/Downloads/temporary-20201030/temp906-BCFB12B6-B9BD-42A7-88F6-8D3437A75F8C.pdf

としてみると

GPL Ghostscript 9.52 (2020-03-19)
Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 81 714 147 725
%%HiResBoundingBox: 81.377998 714.401978 146.987996 724.337978

と正常に出ていることは確認しています。