% pLaTeX
\documentclass[dvipdfmx]{jsarticle}
\usepackage{pxfonts}
\begin{document}
$食事3,000円\times11名=33,000円$、消費税3,300円。ビール1本550円で計36,850円支払いする。
ビール券は換金しなかった。$8万円+会費11,000円-36,850円=残金54,150円$
\end{document}
上記のソースをタイプセットして dvipdfmx にかけるとエラーを吐いて開けないPDFファイルが出来ます。ついこの間までは大丈夫だったのですが・・・
ログは以下のとおり。
C:\Users\tony\Documents>platex hoge
This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./hoge.tex(guessed encoding: Shift_JIS = sjis)
pLaTeX2e <2020-04-12> (based on LaTeX2e <2020-02-02> patch level 5)
L3 programming layer <2020-09-06>
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jsarticle.cls(guessed encoding: UTF-8 = utf8)
Document Class: jsarticle 2020/02/02 jsclasses (okumura, texjporg)
(c:/usr/local/share/texmf-dist/tex/platex/jsclasses/jslogo.sty))
(c:/usr/local/share/texmf-dist/tex/latex/pxr/pxfonts.sty)
(c:/usr/local/share/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def)
(./hoge.aux) (c:/usr/local/share/texmf-dist/tex/latex/pxr/omlpxmi.fd)
(c:/usr/local/share/texmf-dist/tex/latex/pxr/omspxsy.fd)
(c:/usr/local/share/texmf-dist/tex/latex/pxr/omxpxex.fd)
(c:/usr/local/share/texmf-dist/tex/latex/pxr/upxexa.fd)
(I search kanjifont definition file: . . ) (I search font definition file: . .
. . . . . ) (c:/usr/local/share/texmf-dist/tex/latex/pxr/ot1pxr.fd)
(c:/usr/local/share/texmf-dist/tex/latex/pxr/upxmia.fd)
(c:/usr/local/share/texmf-dist/tex/latex/pxr/upxsya.fd)
(c:/usr/local/share/texmf-dist/tex/latex/pxr/upxsyb.fd)
(c:/usr/local/share/texmf-dist/tex/latex/pxr/upxsyc.fd) [1] (./hoge.aux) )
Output written on hoge.dvi (1 page, 676 bytes).
Transcript written on hoge.log.
C:\Users\tony\Documents>dvipdfmx -v hoge
<FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/dlbase14.map><FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/updmap/dvipdfm.map><FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/kanjix.map>hoge -> hoge.pdf
DVI Comment: TeX output 2020.09.23:0942
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1<jis@9.57pt(TFM:jis)(VF:jis(TFM:rml)<rml@9.21pt(CMap:H)
pdf_font>> Input encoding "H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for "HaranoAjiMincho-Regular.otf".
(CID:HaranoAjiMincho-Regular)
pdf_font>> Type0 font "HaranoAjiMincho-Regular.otf" cmap_id=<H,2> font_id=<rml,1>.
>)(VF)><pxr@9.96pt(TFM:pxr)(VF:pxr(TFM:rpxpplr)<rpxpplr@9.96pt(Encoding:tx8r)
pdf_font>> Simple font "uplr8a" enc_id=<tx8r,3> font_id=<rpxpplr,2>.
>(TFM:rpxr)<rpxr@9.96pt
pdf_font>> Simple font "rpxr" enc_id=<builtin,-1> font_id=<rpxr,3>.
>)(VF)><pxmi@9.96pt(TFM:pxmi)(VF:pxmi(TFM:rpxmi)<rpxmi@9.96pt
pdf_font>> Simple font "rpxmi" enc_id=<builtin,-1> font_id=<rpxmi,4>.
>(TFM:rpxpplri)<rpxpplri@9.96pt
pdf_font>> Simple font "uplri8a" enc_id=<tx8r,3> font_id=<rpxpplri,5>.
>)(VF)><pxsy@9.96pt(TFM:pxsy)
pdf_font>> Simple font "pxsy" enc_id=<builtin,-1> font_id=<pxsy,6>.
>][Type0](uplr8a[Type1])(rpxr[Type1])(rpxmi[Type1])(uplri8a[Type1])(pxsy[Type1]):HaranoAjiMincho-Regular.otf[CIDFontType0]
dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
No output PDF file written.
aminophen への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- TONE Kozaburo の投稿
最新版(20200922)だと思います。
C:\Users\tony\Documents>dvipdfmx --version
This is dvipdfmx Version 20200922 by the DVIPDFMx project team,
modified for TeX Live,
an extended version of dvipdfm-0.13.2c developed by Mark A. Wicks.
Copyright (C) 2002-2020 the DVIPDFMx project team
Copyright (C) 2006-2020 SIL International.
This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
C:\Users\tony\Documents>
C:\Users\tony\Documents>dvipdfmx --version
This is dvipdfmx Version 20200922 by the DVIPDFMx project team,
modified for TeX Live,
an extended version of dvipdfm-0.13.2c developed by Mark A. Wicks.
Copyright (C) 2002-2020 the DVIPDFMx project team
Copyright (C) 2006-2020 SIL International.
This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
C:\Users\tony\Documents>
TONE Kozaburo への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- TONE Kozaburo の投稿
ちなみに\usepackage{pxfonts}をコメントするとdvipdfmxは正常なPDFを作ってくれます。
また
食事3,000円$\times$11名=33,000円、消費税3,300円。ビール1本550円で計36,850円支払いする。
ビール券は換金しなかった。8万円+会費11,000円$-$36,850円=残金54,150円
とするとdvipdfmxは正常なPDFを作ってくれます。
C:\Users\tony\Documents>dvipdfmx -v hoge
<FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/dlbase14.map><FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/updmap/dvipdfm.map><FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/kanjix.map>hoge -> hoge.pdf
DVI Comment: TeX output 2020.09.23:1253
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1<jis@9.57pt(TFM:jis)(VF:jis(TFM:rml)<rml@9.21pt(CMap:H)
pdf_font>> Input encoding "H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for "HaranoAjiMincho-Regular.otf".
(CID:HaranoAjiMincho-Regular)
pdf_font>> Type0 font "HaranoAjiMincho-Regular.otf" cmap_id=<H,2> font_id=<rml,1>.
>)(VF)><pxr@9.96pt(TFM:pxr)(VF:pxr(TFM:rpxpplr)<rpxpplr@9.96pt(Encoding:tx8r)
pdf_font>> Simple font "uplr8a" enc_id=<tx8r,3> font_id=<rpxpplr,2>.
>(TFM:rpxr)<rpxr@9.96pt
pdf_font>> Simple font "rpxr" enc_id=<builtin,-1> font_id=<rpxr,3>.
>)(VF)><pxsy@9.96pt(TFM:pxsy)
pdf_font>> Simple font "pxsy" enc_id=<builtin,-1> font_id=<pxsy,4>.
>][Type0](uplr8a[Type1])(rpxr[Type1])(pxsy[Type1]):HaranoAjiMincho-Regular.otf[CIDFontType0]
Compression saved 3987 bytes
13200 bytes written
C:\Users\tony\Documents>
また
食事3,000円$\times$11名=33,000円、消費税3,300円。ビール1本550円で計36,850円支払いする。
ビール券は換金しなかった。8万円+会費11,000円$-$36,850円=残金54,150円
とするとdvipdfmxは正常なPDFを作ってくれます。
C:\Users\tony\Documents>dvipdfmx -v hoge
<FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/dlbase14.map><FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/updmap/dvipdfm.map><FONTMAP:c:/usr/local/share/texmf-dist/fonts/map/dvipdfmx/base/kanjix.map>hoge -> hoge.pdf
DVI Comment: TeX output 2020.09.23:1253
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1<jis@9.57pt(TFM:jis)(VF:jis(TFM:rml)<rml@9.21pt(CMap:H)
pdf_font>> Input encoding "H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for "HaranoAjiMincho-Regular.otf".
(CID:HaranoAjiMincho-Regular)
pdf_font>> Type0 font "HaranoAjiMincho-Regular.otf" cmap_id=<H,2> font_id=<rml,1>.
>)(VF)><pxr@9.96pt(TFM:pxr)(VF:pxr(TFM:rpxpplr)<rpxpplr@9.96pt(Encoding:tx8r)
pdf_font>> Simple font "uplr8a" enc_id=<tx8r,3> font_id=<rpxpplr,2>.
>(TFM:rpxr)<rpxr@9.96pt
pdf_font>> Simple font "rpxr" enc_id=<builtin,-1> font_id=<rpxr,3>.
>)(VF)><pxsy@9.96pt(TFM:pxsy)
pdf_font>> Simple font "pxsy" enc_id=<builtin,-1> font_id=<pxsy,4>.
>][Type0](uplr8a[Type1])(rpxr[Type1])(pxsy[Type1]):HaranoAjiMincho-Regular.otf[CIDFontType0]
Compression saved 3987 bytes
13200 bytes written
C:\Users\tony\Documents>
TONE Kozaburo への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- Akira Kakuto の投稿
Akira Kakuto への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- TONE Kozaburo の投稿
TONE Kozaburo への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- Akira Kakuto の投稿
Akira Kakuto への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- TONE Kozaburo の投稿
ありがとうございました。
以前のソースで問題なくタイプセット、dvipdfmxで正常なPDFファイルが出来るようになりました。
C:\Users\tony\Documents>dvipdfmx --version
This is dvipdfmx Version 20200924 by the DVIPDFMx project team,
modified for TeX Live,
an extended version of dvipdfm-0.13.2c developed by Mark A. Wicks.
Copyright (C) 2002-2020 the DVIPDFMx project team
Copyright (C) 2006-2020 SIL International.
This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
C:\Users\tony\Documents>
以前のソースで問題なくタイプセット、dvipdfmxで正常なPDFファイルが出来るようになりました。
C:\Users\tony\Documents>dvipdfmx --version
This is dvipdfmx Version 20200924 by the DVIPDFMx project team,
modified for TeX Live,
an extended version of dvipdfm-0.13.2c developed by Mark A. Wicks.
Copyright (C) 2002-2020 the DVIPDFMx project team
Copyright (C) 2006-2020 SIL International.
This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
C:\Users\tony\Documents>
TONE Kozaburo への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- aminophen の投稿
dvipdfmx 20200924 を試してみたのですが
% c0.tex
\count0=1\relax
\loop\ifnum\count0<20000\relax
\shipout\vbox{a \the\count0}
\advance\count0 by1\relax
\repeat
\bye
という c0.tex を準備して
$ tex c0
$ dvipdfmx c0
とすると,時により
> dvipdfmx:fatal: pdf_write_obj: Invalid object, type = 0
> dvipdfmx:fatal: pdf_write_obj: Invalid object, type = -1
> Segmentation fault: 11
などがランダムに起こります。(macOS 10.11.6)
% c0.tex
\count0=1\relax
\loop\ifnum\count0<20000\relax
\shipout\vbox{a \the\count0}
\advance\count0 by1\relax
\repeat
\bye
という c0.tex を準備して
$ tex c0
$ dvipdfmx c0
とすると,時により
> dvipdfmx:fatal: pdf_write_obj: Invalid object, type = 0
> dvipdfmx:fatal: pdf_write_obj: Invalid object, type = -1
> Segmentation fault: 11
などがランダムに起こります。(macOS 10.11.6)
aminophen への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- Akira Kakuto の投稿
Akira Kakuto への返信
Re: dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
- aminophen の投稿