こちらのお返事を拝見して、とりあえず現在インストールされていた texlive 関係を remove し(texlive-bin, -core, -extra, -latexextra の三つでした;これらは Manjaro の GUI, pamac で install 及び remove しました)、改めて端末で
sudo pacman -S texlive-langjapanese texlive-most ghostscript evince poppler-data
をすると、
:: There are 12 members in group texlive-most:
:: Repository extra
1) texlive-bibtexextra 2) texlive-core 3) texlive-fontsextra
4) texlive-formatsextra 5) texlive-games 6) texlive-humanities
7) texlive-latexextra 8) texlive-music 9) texlive-pictures
10) texlive-pstricks 11) texlive-publishers 12) texlive-science
Enter a selection (default=all): (デフォルトを選択)
warning: ghostscript-9.52-1 is up to date -- reinstalling
warning: poppler-data-0.4.9-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (20) gnome-desktop-1:3.36.0-1 gspell-1.8.3-1 libgxps-0.3.1-1
texlive-bin-2019.51075-7 evince-3.36.0-1 ghostscript-9.52-1
poppler-data-0.4.9-1 texlive-bibtexextra-2019.52577-1
texlive-core-2019.52579-1 texlive-fontsextra-2019.52580-1
texlive-formatsextra-2019.51280-1 texlive-games-2019.52525-1
texlive-humanities-2019.52574-1
texlive-langjapanese-2019.52531-1
texlive-latexextra-2019.52575-1 texlive-music-2019.52275-1
texlive-pictures-2019.52499-1 texlive-pstricks-2019.52550-1
texlive-publishers-2019.52538-1 texlive-science-2019.52582-1
Total Download Size: 551.61 MiB
Total Installed Size: 2355.83 MiB
Net Upgrade Size: 2295.66 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
texlive-langjapa... 33.5 MiB 2.40 MiB/s 00:14 [###################] 100%
... (ダウンロード経過途中省略)...
poppler-data-0.4... 1477.8 KiB 3.96 MiB/s 00:00 [###################] 100%
(20/20) checking keys in keyring [###################] 100%
(20/20) checking package integrity [###################] 100%
(20/20) loading package files [###################] 100%
(20/20) checking for file conflicts [###################] 100%
(20/20) checking available disk space [###################] 100%
:: Processing package changes...
( 1/20) installing texlive-bin [###################] 100%
Optional dependencies for texlive-bin
ed: for texconfig
biber: for bibliography processing
( 2/20) installing texlive-core [###################] 100%
>>> updmap custom entries should go into /etc/texmf/web2c/updmap-local.cfg
>>> fmtutil custom entries should go into /etc/texmf/web2c/fmtutil-local.cnf
NB: To setup ConTeXt and the lua(la)tex font db,
see http://wiki.archlinux.org/index.php/TeX_Live
Optional dependencies for texlive-core
dialog: for texconfig
ghostscript: for epstopdf, epspdf and other ConTeXt tools [installed]
java-runtime: for utilities like arara
perl-tk: for texdoctk
psutils: to manipulate the output of dvips
python: for pythontex [installed]
python2: for dviasm [installed]
ruby: for old ConTeXT MkII and epspdf [installed]
t1utils: can be useful when installing Type1 fonts
( 3/20) installing texlive-langjapanese [###################] 100%
( 4/20) installing texlive-bibtexextra [###################] 100%
( 5/20) installing texlive-fontsextra [###################] 100%
( 6/20) installing texlive-formatsextra [###################] 100%
( 7/20) installing texlive-games [###################] 100%
( 8/20) installing texlive-latexextra [###################] 100%
Optional dependencies for texlive-latexextra
python2-pygments: for pygmentex
texlive-genericextra: to use the calctab package [installed]
texlive-pictures: to use the package overpic [pending]
java-environment: to use pdfannotextractor
( 9/20) installing texlive-humanities [###################] 100%
Optional dependencies for texlive-humanities
texlive-pictures: for package qtree [pending]
(10/20) installing texlive-music [###################] 100%
Optional dependencies for texlive-music
python2: for scripts from the lilyglyphs packages [installed]
(11/20) installing texlive-pictures [###################] 100%
(12/20) installing texlive-pstricks [###################] 100%
(13/20) installing texlive-publishers [###################] 100%
(14/20) installing texlive-science [###################] 100%
(15/20) reinstalling ghostscript [###################] 100%
(16/20) installing libgxps [###################] 100%
(17/20) installing gnome-desktop [###################] 100%
(18/20) installing gspell [###################] 100%
(19/20) installing evince [###################] 100%
Optional dependencies for evince
texlive-bin: DVI support [installed]
gvfs: bookmark support and session saving [installed]
(20/20) reinstalling poppler-data [###################] 100%
:: Running post-transaction hooks...
(1/8) Arming ConditionNeedsUpdate...
(2/8) Compiling GSettings XML schema files...
(3/8) Updating icon theme caches...
(4/8) Updating TeXLive filename database...
(5/8) Updating the info directory file...
(6/8) Updating TeXLive format files...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_ADDRESS = "ja_JP.UTF-8",
LC_NAME = "ja_JP.UTF-8",
LC_MONETARY = "ja_JP.UTF-8",
LC_PAPER = "ja_JP.UTF-8",
LC_IDENTIFICATION = "ja_JP.UTF-8",
LC_TELEPHONE = "ja_JP.UTF-8",
LC_MEASUREMENT = "ja_JP.UTF-8",
LC_TIME = "en_GB.UTF-8",
LC_NUMERIC = "ja_JP.UTF-8",
LANG = "ja_JP.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("ja_JP.UTF-8").
Unable to read environment locale: exit now.
Unable to read environment locale: exit now.
Unable to read environment locale: exit now.
Unable to read environment locale: exit now.
Unable to read environment locale: exit now.
Unable to read environment locale: exit now.
Unable to read environment locale: exit now.
fmtutil [ERROR]: running `luatex -ini -jobname=luatex -progname=luatex luatex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `luatex -ini -jobname=dviluatex -progname=dviluatex dviluatex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `luatex -ini -jobname=pdfcsplain -progname=pdfcsplain -etex csplain.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `luatex -ini -jobname=lualatex -progname=lualatex lualatex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `luatex -ini -jobname=dvilualatex -progname=dvilualatex dvilualatex.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
fmtutil [ERROR]: running `luatex -ini -jobname=luacsplain -progname=luacsplain -etex csplain.ini </dev/null' return status 1
fmtutil [ERROR]: return error due to options --strict
error: command failed to execute correctly
(7/8) Updating TeXLive font maps...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_ADDRESS = "ja_JP.UTF-8",
LC_NAME = "ja_JP.UTF-8",
LC_MONETARY = "ja_JP.UTF-8",
LC_PAPER = "ja_JP.UTF-8",
LC_IDENTIFICATION = "ja_JP.UTF-8",
LC_TELEPHONE = "ja_JP.UTF-8",
LC_MEASUREMENT = "ja_JP.UTF-8",
LC_TIME = "en_GB.UTF-8",
LC_NUMERIC = "ja_JP.UTF-8",
LANG = "ja_JP.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("ja_JP.UTF-8").
(8/8) Updating the desktop file MIME type cache...
と出てインストール完了し、上記ページの例題:
\documentclass[autodetect-engine,dvipdfmx-if-dvi,ja=standard,a4paper,12pt]{bxjsarticle} \begin{document} \section{にほんご} 日本語もOK \end{document}
を試した所、確かに問題なく動きました。私の元の原稿
\documentclass[12pt,leqno]{article}
\usepackage{color,upref,amsmath,amssymb,amscd}
\usepackage{amsthm}
\usepackage{showkeys}
%
(マクロ定義他省略)
%
\begin{document}
\begin{flushright}
2020 年 4 月\\
モスクワにて\\
武部尚志
\end{flushright}
(以下略)
\end{document}
に試した所、日本語部分が消えましたが latex 自体は動き pdf が生成されました(emacs 上の「やてふ」で C-c t d)。documentclass をサンプルと同じにしたら日本語も表示されました。(テキスト部分の横幅が広くなりすぎましたが、これは別途対策します。)
デフォルトのロケールは、インストール時に日本語にして、お尋ねのファイルは以下のようになりました:
cat /etc/locale.conf
LANG=ja_JP.UTF-8
LC_ADDRESS=ja_JP.UTF-8
LC_IDENTIFICATION=ja_JP.UTF-8
LC_MEASUREMENT=ja_JP.UTF-8
LC_MONETARY=ja_JP.UTF-8
LC_NAME=ja_JP.UTF-8
LC_NUMERIC=ja_JP.UTF-8
LC_PAPER=ja_JP.UTF-8
LC_TELEPHONE=ja_JP.UTF-8
LC_TIME=ja_JP.UTF-8
cat /etc/default/locale
LANG=ja_JP.UTF-8
LC_ADDRESS=ja_JP.UTF-8
LC_IDENTIFICATION=ja_JP.UTF-8
LC_MEASUREMENT=ja_JP.UTF-8
LC_MONETARY=ja_JP.UTF-8
LC_NAME=ja_JP.UTF-8
LC_NUMERIC=ja_JP.UTF-8
LC_PAPER=ja_JP.UTF-8
LC_TELEPHONE=ja_JP.UTF-8
LC_TIME=ja_JP.UTF-8
気が付きましたが、最初にインストールする時は、
・"xornal++" のインストール時に依存関係で texlive 関係を要求され、
・その後で TeX 関係を入れようとした時に "texlive" を pamac で検索したところ、texlive-bin, texlive-core, texlive-latexextra が入っていた。
という状況で安心してしまい、他に何も入れなかったのが問題なのかもしれません。特に texlive-langjapanese には気づいていませんでした。
今、texlive-langjapanese を remove して、再度最初に問題を起こしたファイルをコンパイルした所、フォント関係のエラーが出て止まりましたが、「platex.fmt が無い」というエラーは出ませんでした。最初のエラーはこれが無かったせいではないようです。
とりあえず仕事が出来る環境にはなってホッとしています。和田先生ありがとうございます。