xelatex (日本語)のインストールについて

xelatex (日本語)のインストールについて

- 森本 光生 の投稿
返信数: 3
abtexinst.exe TeXインストーラ3 0.84r6
でW32TeXをインストールしました。

platexは使えるのに、xelatex が使えたり使えなかったりします。たとえば、
\documentclass[a4paper]{article}
\usepackage{graphicx}
\showboxbreadth=100
\begin{document}
\begin{center}
\fbox{\includegraphics{taisei19-13_zu.jpg}}
\end{center}
\end{document}
のように日本語出力がなければ、コンパイルできます。
しかし、

\documentclass{article}
\usepackage{xltxtra}
\setmainfont{IPAPMincho}
\setsansfont{IPAPGothic}
\setmonofont{IPAGothic}
\XeTeXlinebreaklocale "ja"
\begin{document}
こんにちは世界
\end{document}

では、エラーメッセージ
Fontcongig erro;: line 72: not well-formed (invalid token)
がでて、コンパイルできません。このエラーメッセージは
コマンドプロンプトでfc-cache -vとしても出てきます。
fc-cache -v
Note that it needs some time to create caches,
especially if there are many large font files.
Wait with patience.

C:/w32tex/share/texmf-dist/fonts/cache: cleaning cache directory
fc-cache: succeeded
Fontconfig error: line 72: not well-formed (invalid token)
Fontconfig error: Cannot load default config file
Fontconfig error: line 72: not well-formed (invalid token)
Fontconfig error: Cannot load default config file

http://w32tex.org/index-ja.html にあるXeTeX for W32 のインストール方法は読んでみたのですが、自分のインストールのやり方が不十分なのかわかりません。

以上はデスクトップパソコンの場合ですが、同じようにインストールしたノートパソコン上ではxelatex で日本語が問題なく動いています。



森本 光生 への返信

Re: xelatex (日本語)のインストールについて

- 森本 光生 の投稿
「こんにちは世界のエラーメッセージ」は次の通り

This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2014/W32TeX) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./test_xelatex.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(c:/w32tex/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(c:/w32tex/share/texmf-dist/tex/latex/base/size10.clo))
(c:/w32tex/share/texmf-dist/tex/latex/xltxtra/xltxtra.sty
(c:/w32tex/share/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(c:/w32tex/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(c:/w32tex/share/texmf-dist/tex/latex/fontspec/fontspec.sty
(c:/w32tex/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/w32tex/share/texmf-dist/tex/latex/l3kernel/expl3-code.tex
(c:/w32tex/share/texmf-dist/tex/latex/etex-pkg/etex.sty))
(c:/w32tex/share/texmf-dist/tex/latex/l3kernel/l3unicode-data.def)
(c:/w32tex/share/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(c:/w32tex/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(c:/w32tex/share/texmf-dist/tex/latex/fontspec/fontspec-patches.sty)
(c:/w32tex/share/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(c:/w32tex/share/texmf-dist/tex/latex/base/fontenc.sty
(c:/w32tex/share/texmf-dist/tex/latex/euenc/eu1enc.def)
(c:/w32tex/share/texmf-dist/tex/latex/euenc/eu1lmr.fd)Fontconfig error: line 72: not well-formed (invalid token)
Fontconfig error: Cannot load default config file
fontconfig initialization failed!
森本 光生 への返信

Re: xelatex (日本語)のインストールについて

- Akira Kakuto の投稿
まことに申し訳けありません。バグ付のファイルを入れて
います。自分のディスクだけ訂正して,配布用のものの
訂正を忘れていました。耄碌しているようです。

.../texmf-dist/fonts/conf/

というディレクトリに fonts.conf というファイルが
あります。それをここに添付してあるものと入れ替えて
下さい。
Akira Kakuto への返信

Re: xelatex (日本語)のインストールについて

- 森本 光生 の投稿
Kakuto 様、
fonts.conf を入れ替えたら、すべてうまくいきました。
「こんにちは世界」はもちろん、画像のたくさん入ったスライドもコンパイルできました。どうも有り難うございました。