List of charset - Baldanders.info
tag:Baldanders.info,2014-09-03:/tags
2014-09-03T09:00:00+00:00
バルトアンデルスは連続的な怪物,時間の怪物である。(ホルヘ・ルイス・ボルヘス 『幻獣辞典』より)
https://baldanders.info/images/avatar.jpg
https://baldanders.info/images/avatar.jpg
TeX Live 2014 for Windows
tag:Baldanders.info,2014-09-03:/blog/000730/
2014-09-03T09:00:00+00:00
2014-09-03T09:00:00+00:00
サイトのリニューアルがひと段落したところで「そういえば TeX Live 2014 ってもう出てるよなぁ」と思い出した。
Spiegel
/profile/
<p> サイトのリニューアルがひと段落したところで「そういえば TeX Live 2014 ってもう出てるよなぁ」と思い出した。 さっそく <a href="http://www.tug.org/">TUG</a> へ。 </p><ul> <li><a href="http://www.tug.org/texlive/">TeX Live - TeX Users Group</a></li> </ul><p> 前に書いたとおり<q><a href="http://www.tug.org/texlive/acquire-netinstall.html">install-tl.exe for Windows からインストールするのがお薦め♡</a></q>(←超意訳)と書いてあるので,仰せのままに。 インストーラを起動するとあの画面が。 </p> <figure style="margin:0 auto;text-align:center;"> <iframe src="https://www.flickr.com/photos/spiegel/14940627059/player/" width="640" height="444" frameborder="0" allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen="" oallowfullscreen="" msallowfullscreen=""></iframe> <figcaption>TeX Live Installer (1)</figcaption> </figure> <p> ここで「既存リポジトリを変更」にチェックを入れるのを忘れすに。 チェックを入れた状態で「次へ」進むと以下の画面になる。 </p> <figure style="margin:0 auto;text-align:center;"> <iframe src="https://www.flickr.com/photos/spiegel/14940626899/player/" width="640" height="444" frameborder="0" allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen="" oallowfullscreen="" msallowfullscreen=""></iframe> <figcaption>TeX Live Installer (2)</figcaption> </figure> <p> ここで国内のリポジトリを指定する。 何となく<del>利権</del>(おっと!)理研のサーバを忌避してしまったのに深い意味はありません。 あとは終わるのを待つだけだが相変わらず長い... </p><p> インストールが完了したらコマンドプロンプトでバージョンを確認しておく。 </p> <pre class="brush:bash">> platex -v
e-pTeX 3.14159265-p3.5-130605-2.6 (sjis) (TeX Live 2014/W32TeX)
kpathsea version 6.2.0
ptexenc version 1.3.2
Copyright 2014 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the e-pTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the e-pTeX source.
Primary author of e-pTeX: Peter Breitenlohner.</pre>
<p>
はい。 OK ですね。
おお, e-pTeX のバージョンが 3.14159265 まで進んでる。
(オリジナルの TeX はバージョン 3 で既に fix されていて,メンテナンスでバージョンが上がると円周率の数字列で桁が上がっていく仕組みになっている。 fork 版もそれに追随してバージョンが進んでいくのだ)
</p><p>
インストールが終わったら日本語環境用の設定を行う。
まず {$InstallFolder}/texmf-dist/web2c/texmf.cnf を開いて <code>shell_escape_commands</code> に関する記述を探す。
</p>
<pre class="brush:plain" title="texmf.cnf">shell_escape_commands = \
bibtex,bibtex8,\
kpsewhich,\
makeindex,\
mpost,\
repstopdf</pre>
<p>
これを以下のように変更する。
</p>
<pre class="brush:plain" title="texmf.cnf">shell_escape_commands = \
bibtex,bibtex8,bibtexu,upbibtex,biber,\
kpsewhich,\
makeindex,mendex,texindy,xindy,\
mpost,upmpost,\
repstopdf,epspdf,extractbb</pre>
<p>
これを保存したら mktexlsr を実行するのを忘れないように。
</p>
<pre class="brush:bash">> mktexlsr</pre>
<p>
フォントの埋め込みもこれまでどおり。
kanji-config-updmap を実行すれば良い。
</p>
<pre class="brush:bash">> kanji-config-updmap ipaex</pre>
<p>
TeX Live 2013 までは文字コードの自動判別のオプションがなかったが, 2014 では {$InstallFolder}/texmf-dist/web2c/texmf.cnf の末尾に追記されている。
めでたい。
</p>
<pre class="brush:plain" title="texmf.cnf">% Guess input encoding (SJIS vs. Unicode, etc.) in pTeX and friends?
% Default is 0, to not guess.
guess_input_kanji_encoding = 1</pre>
<p>
ただし自動判別は絶対ではない。
うまくいかないようなら <code>-kanji</code> オプションを使う手もある。
</p>
<pre class="brush:bash">> platex -kanji=utf8 -v
e-pTeX 3.14159265-p3.5-130605-2.6 (utf8.sjis) (TeX Live 2014/W32TeX)
kpathsea version 6.2.0
ptexenc version 1.3.2
Copyright 2014 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the e-pTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the e-pTeX source.
Primary author of e-pTeX: Peter Breitenlohner.</pre>
<section>
<h3>PXjahyper パッケージの導入</h3>
<p>
今公開している <a href="https://github.com/spiegel-im-spiegel/charset_document">spiegel-im-spiegel/charset_document</a> で PDF の目次が文字化けするという報告を受けていて,これを解消するのに PXjahyper パッケージを使うのがいいらしい。
</p><ul>
<li><a href="https://github.com/zr-tex8r/PXjahyper">zr-tex8r/PXjahyper</a></li>
<li><a href="http://d.hatena.ne.jp/zrbabbler/20120527/1338111080">hyperref で日本語しおりに endash を出す件について - マクロツイーター</a></li>
</ul><p>
導入するには {$InstallFolder}/texmf-dist/tex/latex/ フォルダに PXjahyper フォルダごと突っ込めばいいらしい。
そのあと mktexlsr を実行すればいいのかな?
</p><p>
LaTeX 文書ファイルに入れるのも簡単で, hyperref パッケージの直後に指定すればいいみたい。
</p>
<pre class="brush:plain" title="charset.tex">\documentclass[a4j,10pt,fleqn]{jsarticle}
\usepackage[dvipdfmx]{hyperref}
\usepackage{pxjahyper}</pre>
<p>
おおっ,楽ちんになったなぁ。
でも,うちは Windows 環境なのでちゃんと改善しているかどうかわからない(Mac 環境で文字化けするらしいのだ)。
問題があればここのフィードバックか最寄りの SNS に報告下さい。
</p>
</section>
<section>
<h3>そうそう</h3>
<p>
PDF の閲覧は「<a href="http://pdfreaders.org/">自由なソフト</a>」を使いましょう。
プロプライエタリなソフトを強制してはいけません。
分かってますか? <a href="http://www.mext.go.jp/b_menu/houdou/26/02/1344132.htm">文科省の中</a>の人とか。
</p>
</section>
<section>
<h3>charset_document について</h3>
<p>
<a href="https://github.com/spiegel-im-spiegel/charset_document">spiegel-im-spiegel/charset_document</a> で使用している図は大昔(20世紀末!)に Visio で起こしたものだが,もう Visio なんか持ってないし,この機会に <a href="https://www.libreoffice.org/">LibreOffice</a> の <a href="https://www.libreoffice.org/discover/draw/">Draw</a> にファイル変換した。
これを SVG 形式で export し,更に <a href="http://www.inkscape.org/">Inkscape</a> で読み込めるようにしている。
</p>
<figure style="margin:0 auto;text-align:center;">
<object type="image/svg+xml" data="/images/iso2022-8.svg" width="350" height="592"></object>
<figcaption>ISO/IEC 2022</figcaption>
</figure>
<p>
したがって最終的に EPS ファイルを出力しているのは <a href="http://www.inkscape.org/">Inkscape</a> である。
<a href="http://www.inkscape.org/">Inkscape</a> は SVG をベースにしているので draw 系のお絵かきに向いているが,これで絵本やコミケのパンフとか作っておられる人もいるらしい。
個人的にはそこまでの絵心はないが,簡単な絵なら <a href="http://www.inkscape.org/">Inkscape</a> で必要十分なので(<q><a href="https://baldanders.info/spiegel/rdfa/">RDFa 入門</a></q>の絵も <a href="http://www.inkscape.org/">Inkscape</a> を使っている)今後もこれで行きたいと思う。
こーやって絵とかも「オープンデータ」(オープンソースっていうとどっかから怒られるので)になっていくと面白いんだけどねぇ。
</p>
</section>
<section>
<h3>参考</h3>
<div class="hreview"><a class="item url" href="https://www.amazon.co.jp/exec/obidos/ASIN/4774160458/baldandersinf-22/"><img src="https://images-fe.ssl-images-amazon.com/images/I/51UNf22nkGL._SL160_.jpg" alt="photo" class="photo"/></a><dl><dt class="fn"><a class="item url" href="https://www.amazon.co.jp/exec/obidos/ASIN/4774160458/baldandersinf-22/">[改訂第6版] LaTeX2ε美文書作成入門</a></dt><dd>奥村 晴彦 黒木 裕介 </dd><dd>技術評論社 2013-10-23</dd><dd>評価<abbr class="rating" title="4"><img src="https://images-fe.ssl-images-amazon.com/images/G/01/detail/stars-4-0.gif" alt=""/></abbr> </dd></dl><p class="similar"><a href="https://www.amazon.co.jp/exec/obidos/ASIN/4798118141/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/4798118141.09._SCTHUMBZZZ_.jpg" alt="LaTeX2e辞典 用法・用例逆引きリファレンス (DESKTOP REFERENCE)"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/448009525X/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/448009525X.09._SCTHUMBZZZ_.jpg" alt="数学文章作法 基礎編 (ちくま学芸文庫)"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/4320122488/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/4320122488.09._SCTHUMBZZZ_.jpg" alt="はやわかりMathematica 第3版"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/4274215881/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/4274215881.09._SCTHUMBZZZ_.jpg" alt="ロボット考学と人間―未来のためのロボット工学―"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/4877833110/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/4877833110.09._SCTHUMBZZZ_.jpg" alt="LATEXはじめの一歩―Windows8/7対応 (やさしいプログラミング)"/></a> </p>
<p class="gtools">reviewed by <a href="#me" class="reviewer">Spiegel</a> on <abbr class="dtreviewed" title="2014-09-03">2014/09/03</abbr> (powered by <a href="http://www.goodpic.com/mt/aws/index.html">G-Tools</a>)</p>
</div>
<div class="hreview"><a class="item url" href="https://www.amazon.co.jp/exec/obidos/ASIN/B00E0O31GC/baldandersinf-22/"><img src="https://images-fe.ssl-images-amazon.com/images/I/51QLl3p9kLL._SL160_.jpg" alt="photo" class="photo"/></a><dl><dt class="fn"><a class="item url" href="https://www.amazon.co.jp/exec/obidos/ASIN/B00E0O31GC/baldandersinf-22/">ドシロウトが無料ソフトInkscapeで絵本制作&Kindle出版</a></dt><dd>ますや かつひさ </dd><dd>tomotomobooks 2013-11-16</dd><dd>評価<abbr class="rating" title="4"><img src="https://images-fe.ssl-images-amazon.com/images/G/01/detail/stars-4-0.gif" alt=""/></abbr> </dd></dl><p class="similar"><a href="https://www.amazon.co.jp/exec/obidos/ASIN/B00C6SMFKM/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/B00C6SMFKM.09._SCTHUMBZZZ_.jpg" alt="できるクリエイターGIMP 2.8独習ナビ Windows&Mac OS X対応"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/B00ILCA34M/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/B00ILCA34M.09._SCTHUMBZZZ_.jpg" alt="オバケだらけのカタカナえほん"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/B00BQFSPGO/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/B00BQFSPGO.09._SCTHUMBZZZ_.jpg" alt="おばけだらけのあいうえお"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/B00H0I5T6U/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/B00H0I5T6U.09._SCTHUMBZZZ_.jpg" alt="キッキのメリークリスマス"/></a> <a href="https://www.amazon.co.jp/exec/obidos/ASIN/B00II206O2/baldandersinf-22/" target="_top"><img src="https://images-fe.ssl-images-amazon.com/images/P/B00II206O2.09._SCTHUMBZZZ_.jpg" alt="おもちゃやのロボット 〜さいごのプレゼント〜(エスネスの絵本シリーズ7)"/></a> </p>
<p class="gtools">reviewed by <a href="#me" class="reviewer">Spiegel</a> on <abbr class="dtreviewed" title="2014-09-03">2014/09/03</abbr> (powered by <a href="http://www.goodpic.com/mt/aws/index.html">G-Tools</a>)</p>
</div>
</section>