3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

macOS Ventura + uplatex in MacTeX(texlive) 2022 + ヒラギノフォント

Last updated at Posted at 2022-12-01

理由

macOS VenturaのローカルTeX環境(uplatex)でヒラギノフォントを使いたい

調べてみた

Mojaveにおける方法を発見.
https://qiita.com/sira/items/d7f5c411ccb0f90c43d8#%E3%83%92%E3%83%A9%E3%82%AE%E3%83%8E

上記サイトによると,

sudo tlmgr repository add http://contrib.texlive.info/current tlcontrib
sudo tlmgr pinning add tlcontrib '*'
sudo tlmgr install japanese-otf-nonfree japanese-otf-uptex-nonfree ptex-fontmaps-macos cjk-gs-integrate-macos
sudo cjk-gs-integrate --link-texmf --cleanup
sudo cjk-gs-integrate-macos --link-texmf
sudo mktexlsr
sudo kanji-config-updmap-sys --jis2004 hiragino-highsierra-pron

しかしこの方法だけではVenturaでヒラギノフォントは使えなかった.

追加でやったこと

sudo cjk-gs-integrate-macos --link-texmf --fontdef-add=cjkgs-macos-highsierra.dat

結局以下のようになる(と思う)

sudo tlmgr repository add http://contrib.texlive.info/current tlcontrib
sudo tlmgr pinning add tlcontrib '*'
sudo tlmgr install japanese-otf-nonfree japanese-otf-uptex-nonfree ptex-fontmaps-macos cjk-gs-integrate-macos
sudo cjk-gs-integrate --link-texmf --cleanup
sudo cjk-gs-integrate-macos --link-texmf
sudo cjk-gs-integrate-macos --link-texmf --fontdef-add=cjkgs-macos-highsierra.dat
sudo mktexlsr
sudo kanji-config-updmap-sys --jis2004 hiragino-highsierra-pron

テスト

例えばtest.texとして以下の内容を保存.

\documentclass[uplatex,a4paper,10pt]{bxjsarticle}
\usepackage[dvipdfmx]{graphicx}

\begin{document}
\section{日本語だよ.}
日本語English
\end{document}

つづいて

uplatex ./test.tex
dvipdfmx test.dvi
open test.pdf

私の環境では以上でOKでした.

3
4
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?