memo.xight.org

日々のメモ

TeX + 日本語フォント

Summary

macOS付属の non-freeなフォントをLaTeXで使うためのツールやファイルは、TeX Live本体にはなく、TLContribにある

TLContribリポジトリの追加

% tlmgr repository add https://contrib.texlive.info/current tlcontrib
tlmgr: added repository with tag tlcontrib: https://contrib.texlive.info/current

% tlmgr pinning add tlcontrib '*'
tlmgr: package repositories
        main = http://mirror.ctan.org/systems/texlive/tlnet (verified)
        tlcontrib = http://contrib.texlive.info/current (verified)
tlmgr: new pinning data for tlcontrib: *

% curl -fsSL https://www.preining.info/rsa.asc | tlmgr key add -
tlmgr: key successfully imported

% tlmgr repository status
tlmgr: package repositories
        main = http://mirror.ctan.org/systems/texlive/tlnet (verified)
        tlcontrib = http://contrib.texlive.info/current (verified)
main https://ftp.kddilabs.jp/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb verified
tlcontrib http://contrib.texlive.info/current/tlpkg/texlive.tlpdb verified

% tlmgr install japanese-otf-nonfree japanese-otf-uptex-nonfree ptex-fontmaps-macos cjk-gs-integrate-macos

% cjk-gs-integrate --link-texmf --cleanup --force
cjk-gs-integrate: reading font database ...
cjk-gs-integrate: searching for Ghostscript resource
cjk-gs-integrate: going to clean up /opt/homebrew/share/ghostscript/9.54.0/Resource
cjk-gs-integrate: cleaning up all links, snippets and cidfmap.local ...
cjk-gs-integrate: removing cidfmap.local from cidfmap file ...
cjk-gs-integrate: removing snippets and cidfmap.aliases for font aliases ...
cjk-gs-integrate: removing cidfmap.aliases from cidfmap file ...
cjk-gs-integrate: running mktexlsr ...
mktexlsr: Updating /usr/local/texlive/2021/texmf-config/ls-R...
mktexlsr: Updating /usr/local/texlive/2021/texmf-dist/ls-R...
mktexlsr: Updating /usr/local/texlive/2021/texmf-var/ls-R...
mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
mktexlsr: Done.
cjk-gs-integrate: finished

% cjk-gs-integrate-macos --link-texmf --force
cjk-gs-integrate [WARNING]: Our built-in database does not support recent
cjk-gs-integrate [WARNING]: versions of Mac OS (10.8 Mountain Lion or later)!
cjk-gs-integrate [WARNING]: If you want to use Hiragino fonts bundled with
cjk-gs-integrate [WARNING]: your OS, obtain external database file and
cjk-gs-integrate [WARNING]: specify it with --fontdef-add option!
cjk-gs-integrate [WARNING]: I'll continue with my built-in database ...
cjk-gs-integrate: reading font database ...
cjk-gs-integrate: checking for files ...
cjk-gs-integrate: searching for Ghostscript resource
cjk-gs-integrate: output is going to /opt/homebrew/share/ghostscript/9.54.0/Resource
cjk-gs-integrate: generating links and snippets for CID fonts ...
cjk-gs-integrate: generating links, snippets and cidfmap.local for non-CID fonts ...
cjk-gs-integrate: adding cidfmap.local to cidfmap file ...
cjk-gs-integrate: generating snippets and cidfmap.aliases for font aliases ...
cjk-gs-integrate: adding cidfmap.aliases to cidfmap file ...
cjk-gs-integrate: running mktexlsr ...
mktexlsr: Updating /usr/local/texlive/2021/texmf-config/ls-R...
mktexlsr: Updating /usr/local/texlive/2021/texmf-dist/ls-R...
mktexlsr: Updating /usr/local/texlive/2021/texmf-var/ls-R...
mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
mktexlsr: Done.
cjk-gs-integrate: finished

% mktexlsr
mktexlsr: Updating /usr/local/texlive/2021/texmf-config/ls-R...
mktexlsr: Updating /usr/local/texlive/2021/texmf-dist/ls-R...
mktexlsr: Updating /usr/local/texlive/2021/texmf-var/ls-R...
mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
mktexlsr: Done.


% kanji-config-updmap-sys status
CURRENT family for ja: ipaex (variant: <empty>)
Standby family : ipa
Standby family : ms
Standby family : yu-win10


via

つーさにブログ - 2020-05-12 - macOSでLaTeX環境 (install-tlを使って)
https://tsuu32.hatenablog.com/entry/2020/05/12/190000

明治大学 - 桂田 祐史 - 2 MacTeX 2021を待つ …M1対応バージョン やって来ました!
http://nalab.mind.meiji.ac.jp/~mk/knowhow-2021/node2.html