LoginSignup
2
0

More than 5 years have passed since last update.

Arch Linux に日本語 LaTeX 環境を整える

Last updated at Posted at 2016-07-31

TeX Live

TeX Live をインストール.

yaourt -S texlive-langjapanese texlive-core texlive-localmanager-git

パッケージのインストール

お好みのパッケージ $PACKAGE_NAMEtllocalmgr でインストール.

tllocalmgr install $PACKAGE_NAME
sudo texhash

ヒラギノフォントを埋め込む

/usr/share/fonts/OTF/ にヒラギノフォントがインストールされていると仮定します.

以下のようにシンボリックリンクを作成し,

sudo ln -s '/usr/share/fonts/OTF/ヒラギノ角ゴ ProN W3.otf' /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraKakuProN-W3.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ角ゴ ProN W6.otf' /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraKakuProN-W6.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ角ゴ Pro W3.otf'  /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraKakuPro-W3.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ角ゴ Pro W6.otf'  /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraKakuPro-W6.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ角ゴ StdN W8.otf' /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraKakuStdN-W8.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ丸ゴ ProN W4.otf' /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraMaruProN-W4.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ丸ゴ Pro W4.otf'  /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraMaruPro-W4.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ明朝 ProN W3.otf' /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraMinProN-W3.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ明朝 ProN W6.otf' /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraMinProN-W6.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ明朝 Pro W3.otf'  /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraMinPro-W3.otf
sudo ln -s '/usr/share/fonts/OTF/ヒラギノ明朝 Pro W6.otf'  /usr/share/texmf-dist/fonts/opentype/public/hiragino/HiraMinPro-W6.otf

それらを以下のコマンドで読み込む.

sudo mktexlsr

現在の設定を確認し,

$ kanji-config-updmap-sys status
CURRENT family : ipaex
Standby family : hiragino
Standby family : hiragino-pron
Standby family : ipa

ヒラギノフォントの埋め込み設定を行う.

sudo kanji-config-updmap-sys hiragino-pron

設定できたことを確認.

$ kanji-config-updmap-sys status
CURRENT family : hiragino-pron
Standby family : hiragino
Standby family : ipa
Standby family : ipaex
2
0
0

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
2
0