もうTeXはと思いつつも4年ぶりに環境構築した話(続編) on Linux Mint 17
もうTeXはと思いつつも4年ぶりに環境構築した話 on Linux Mint 17 - 水色の写真館
昨日に引き続き昼酒で動けずにいるので、作業開始。昨日は動くとこまで、昔と比較すると日本語 TeX 環境の構築はきわめてラクになったというのが実感。
むむ!僕が TeX を使うのを辞めた3つの理由 - ++C++; // 管理人の日記
先ずは、昨日の続きでフォントの埋め込みだ。
$ kanji-config-updmap status
CURRENT family : noEmbed
Standby family : ipa
Standby family : ipaexipaとipaexがスタンバっている。
$ kanji-config-updmap hiragino
hiraginoはないよって…、おいおいそのままオートで…。
hiragino not available, falling back to auto!
CURRENT family : noEmbed
Standby family : ipa
Standby family : ipaex
Setting up ... ptex-ipaex.map
Creating new config file ~/.texmf-config/web2c/updmap.cfg
updmap is using the following updmap.cfg files (in precedence order):
~/.texmf-config/web2c/updmap.cfg
/usr/share/texmf/web2c/updmap.cfg
/usr/share/texlive/texmf-dist/web2c/updmap.cfg
updmap is using the following updmap.cfg file for writing changes:
~/.texmf-config/web2c/updmap.cfg
dvips output dir: "~/.texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "~/.texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "~/.texmf-var/fonts/map/dvipdfmx/updmap"
Transcript written on "~/.texmf-var/web2c/updmap.log"....................................................................
updmap: Updating ls-R files.
...................................................................
$ kanji-config-updmap status
CURRENT family : ipaex
終わった、楽になり過ぎ。
さて今日試したのは、Shift + 左クリックで対応する TeX 文書の該当箇所にジャンプする設定。PDFビューワーを見て手直しするEmacsの該当場所へ行くということで、これは作業効率上常時使う大事な機能となる。
先ずはコマンドの後に-synctex=1を追記するんだと。
(setq tex-command "platex -synctex=1")
SyncTeX というのは、PDF viewer と editor の間の synchronization を実現したものです.SyncTeX をサポートするエンジンは pdftex, luatex, luajittex, xetex, euptex, uptex, eptex, ptex です.
オプションで
- -synctex=1 とすると,zlib で圧縮した SyncTeX 用データを出力します.
- -synctex=-1 のように負の値に設定すると,圧縮しないデータを出力します.
だそうです。
当初方針通り一番簡単に設定できそうなPDFビューワーはOkularっぽい。
sudo apt-get install okular
(setq dvi2-command "okular")
[設定(S)]-[Okular を設定(O)...]-[エディタ] の項目から Emacs client を選択します.
Shift + 左クリックで対応する TeX 文書の該当箇所にジャンプします.
選択するだけ、後は Shift + 左クリックの都度Emacsが立ち上がらないように、サーバー化。
(require 'server)
(unless (server-running-p) (server-start))
シンプルな設定(汗)、超便利、快適に動いた。久しぶりにPCと戯れた休日でした。