ご質問はこちらへ
B5用紙使用時に作成されたPDF認識するサイズについて
\documentclass[b5j,10pt,uplatex]{jsarticle}
\usepackage{amsmath,amssymb,okumacro}
\usepackage[margin=2truecm]{geometry}
\usepackage{layout}
\begin{document}
\layout
\end{document}
%===== 1 =====
★次に、「2」のように11ptにすると199.3x281.4mmに変化します。
%===== 2 =====
\documentclass[b5j,11pt,uplatex]{jsarticle}
\usepackage{amsmath,amssymb,okumacro}
\usepackage[margin=2truecm]{geometry}
\usepackage{layout}
\begin{document}
\layout
\end{document}
%===== 2 =====
★geometryのせいだと思って省いてみたところ、210x297と何故かA4になってしまいました。
%===== 3 =====
\usepackage{amsmath,amssymb,okumacro}
\usepackage{layout}
\begin{document}
\layout
\end{document}
%===== 3 =====
PDFのサイズを変更せず、フォントのサイズだけを変更することはできないのでしょうか?
【確認環境】
Windows10
【実行したコマンド】
ptex2pdf -u -l -ot $synctexoption -no-guess-input-enc -kanji=utf8 -shell-escape $fullname
luatexja-preset + newtx + siunitxを併用するとtabular内の負の指数の符号が消失
こんにちは。
タイトルに書いた通り、luatexja-preset + newtx + siunitxを併用するとtabular内の負の指数の符号が消失し、困っています。一体上記の3つのパッケージのどこに起因した問題なのか自力で解明できませんでした。
下記が問題を再現するコードです。実行した環境は Ubuntu focal (20.20) のパッケージからそのままインストールした texlive 2019 最新版です(texlive 2020では試せていません)。texlive-lang-japanese, texlive-fonts-extra, texlive-science のいずれもバージョンは 2019.20200218-1 です。
\documentclass{ltjsarticle}
\usepackage{luatexja-preset} %どれか1つをコメントアウトすると正常な挙動に戻る
\usepackage{newtxtext,newtxmath} %どれか1つをコメントアウトすると正常な挙動に戻る
\usepackage{siunitx}
\sisetup{detect-mode=true} %どれか1つをコメントアウトすると正常な挙動に戻る
\begin{document}\begin{tabular}{S}1e-2 %コメントアウトがないと1×10²と出力される\end{tabular}\end{document}大変恐縮ですが、お助け頂ければ幸いです。
TeX2imgとwsl上のTeX
luaotfloadの挙動?
dvipdfmx:fatal: typecheck: Invalid object type: -1 6 (line 1677)
\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.
TEXMFHOMEが存在しません
- 本体: iMac (Retina 5K, 27-inch, 2017)
- OS: macOS Catalina 10.15.6 (19G2021)
{{}/Users/masaru/Library/texlive/2020/texmf-config,/Users/masaru/Library/texlive/2020/texmf-var,/Users/masaru/Library/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive/2020/texmf-config,!!/usr/local/texlive/2020/texmf-var,!!/usr/local/texlive/2020/texmf-dist}
tar -zxvf install-tl-unx.tar.gz
cd install-tl-20200923
sudo ./install-tl -no-gui -repository http://mirror.ctan.org/systems/texlive/tlnet/
完了時に ----------------------------------------------------------------------
The following environment variables contain the string "tex"
(case-independent). If you're doing anything but adding personal
directories to the system paths, they may well cause trouble somewhere
while running TeX. If you encounter problems, try unsetting them.
Please ignore spurious matches unrelated to TeX.
SUDO_COMMAND=./install-tl -no-gui -repository http://mirror.ctan.org/systems/texlive/tlnet/
----------------------------------------------------------------------
Welcome to TeX Live!
See /usr/local/texlive/2020/index.html for links to documentation.
The TeX Live web site (https://tug.org/texlive/) contains any updates and
corrections. TeX Live is a joint project of the TeX user groups around the
world; please consider supporting it by joining the group best for you. The
list of groups is available on the web at https://tug.org/usergroups.html.
Add /usr/local/texlive/2020/texmf-dist/doc/man to MANPATH.
Add /usr/local/texlive/2020/texmf-dist/doc/info to INFOPATH.
Most importantly, add /usr/local/texlive/2020/bin/x86_64-darwin
to your PATH for current and future sessions.
Logfile: /usr/local/texlive/2020/install-tl.log
source .zshrc
sudo tlmgr update --self --all
を実行しました。
現在はここで止まっています。なお、ログファイルを添付致します。
対策や私の操作の誤りがあれば、ご教示頂ければ幸いです。
なにとぞよろしくお願いいたします。