ラベル TeX の投稿を表示しています。 すべての投稿を表示
ラベル TeX の投稿を表示しています。 すべての投稿を表示

2020年4月13日月曜日

TeX Live 2020 での LuaLatex エンジン

前の記事 で、TeX Live 2020 は 2019 から対して変わってないのでは、みたいなことを書きましたが、 ちょっと使ってみて、それなりに大きな違いが発生していることに気が付きました。

僕はpdfの直接的な生成を考えて LuaLatex を、Eclipse上のTeXLipseで使っています。

TeXLipse上での実行時にコンソールに表示される最初のメッセージは、これまで、

running: /usr/local/texlive/2019/bin/x86_64-linux/lualatex -synctex=1 -interaction=nonstopmode document.tex 
lualatex> This is LuaTeX, Version 1.10.0 (TeX Live 2019) 

だったのですが、TeX Live 2020 に変えると、

running: /usr/local/texlive/2020/bin/x86_64-linux/lualatex -synctex=1 -interaction=nonstopmode document.tex 
lualatex> This is LuaHBTeX, Version 1.12.0 (TeX Live 2020) 

となっていることに気が付きました。

これまではLuaTeXベースだったのが TeX Live 2020 からは LuaHBTeXベースになったのですね。

LuaHBTeXは前にLuaTeXについて調べた時に存在は知っていたのですが、HarfBuzzライブラリを組み込んだLuaTeXのことみたいです。

HarfBuzzライブラリとは、フリーのOpenTypeテキストシェーピングエンジン(フォントレンダリングエンジン)みたいです。

ここが開発元で Android, Chrome, ChromeOS, Firefox, OpenJDK, Qt 等にも使われているみたいです。

TeX Live 2020 から変更されたことの情報源を探していたのですが、 LATEX News/Issue 31, February 2020 に記載がありました。

Concerning this release . . . (LuaLATEX engine) The new LuaHBTEX engine is LuaTEX with an embedded HarfBuzz library. HarfBuzz can be used by setting a suitable renderer in the font declaration. A basic interface for that is provided by fontspec. This additional font renderer will greatly improve the shaping of various scripts when using LuaLATEX, many of which are currently handled correctly only by X TEEX, which always uses HarfBuzz. To simplify testing of the new engine, binaries have already been added to MiKTEX and TEX Live 2019 and both distributions have already now changed the LuaLATEX-dev format to use it. Going forward, LuaLATEX (and LuaLATEX-dev) will both use the LuaHBTEX engine. The timing of the switch to the LuaHBTEX engine depends on the distribution you use (for TEX Live this will be with TEX Live 2020).

とのことです。

TeX Live 2020 のインストール

TeX Live 2020 がリリースされました。

TeX Liveは常時updateされているため、2020リリースの目玉となる特徴とかあるのか分かりませんが、 既にTeX Live 2019でのupdateが止まっているため、2020を入れてみようと思います。

プラットフォームはいつもながらの Ubuntu 18.04 です。

TeX Live 2020 のインストール

リリースの ダウンロードページ から install-tl-unx.tar.gz をダウンロードし、tar.gz を展開して出来る install-tl を実行することで、後は自動的にインストールされます。

sudo ./install-tl 
Loading http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb
Installing TeX Live 2020 from: http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet (verified)
Platform: x86_64-linux => 'GNU/Linux on x86_64'
Distribution: net  (downloading)
Using URL: http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet
Directory for temporary files: /tmp/aiomRbLkQx

======================> TeX Live installation procedure <=====================

======>   Letters/digits in <angle brackets> indicate   <=======
======>   menu items for actions or customizations      <=======

 Detected platform: GNU/Linux on x86_64
 
 <B> set binary platforms: 1 out of 16

 <S> set installation scheme: scheme-full

 <C> set installation collections:
     40 collections out of 41, disk space required: 6524 MB

 <D> set directories:
   TEXDIR (the main TeX directory):
     /usr/local/texlive/2020
   TEXMFLOCAL (directory for site-wide local files):
     /usr/local/texlive/texmf-local
   TEXMFSYSVAR (directory for variable and automatically generated data):
     /usr/local/texlive/2020/texmf-var
   TEXMFSYSCONFIG (directory for local config):
     /usr/local/texlive/2020/texmf-config
   TEXMFVAR (personal directory for variable and automatically generated data):
     ~/.texlive2020/texmf-var
   TEXMFCONFIG (personal directory for local config):
     ~/.texlive2020/texmf-config
   TEXMFHOME (directory for user-specific files):
     ~/texmf

 <O> options:
   [ ] use letter size instead of A4 by default
   [X] allow execution of restricted list of programs via \write18
   [X] create all format files
   [X] install macro/font doc tree
   [X] install macro/font source tree
   [ ] create symlinks to standard directories

 <V> set up for portable installation

Actions:
 <I> start installation to hard disk
 <P> save installation profile to 'texlive.profile' and exit
 <H> help
 <Q> quit

TeX Liveはパッケージ数が多いので、ダウンロード・インストール完了まで結構時間がかかります。

実際、3986パッケージのダウンロードにほぼ1時間かかりました。

ダウンロードサイトの帯域が狭い気はしますが、通常のupdate時も相応の時間がかかるので、最近はあまり気にしていません。

ざっと下のような感じでした。

Installing [3981/3986, time/total: 01:04:20/01:04:22]: zref [684k]
Installing [3982/3986, time/total: 01:04:21/01:04:22]: zwgetfdate [242k]
Installing [3983/3986, time/total: 01:04:21/01:04:22]: zwpagelayout [630k]
Installing [3984/3986, time/total: 01:04:22/01:04:22]: zxjafbfont [3k]
Installing [3985/3986, time/total: 01:04:23/01:04:23]: zxjafont [181k]
Installing [3986/3986, time/total: 01:04:23/01:04:23]: zxjatype [144k]

インストール後のファイルサイズはざっと7GBほどみたいですね。 インストール後に一度、既存のTeXドキュメントを lualatex でビルドしたので、 もしかしたらその際に生成されたファイルも含めてなのかもしれませんが、そのぐらいのサイズは必要となる模様です。

$ du -s /usr/local/texlive/2020/
6927572 /usr/local/texlive/2020/

2020年3月17日火曜日

TeX Live 2020

自分は TeX Live 使いでして、主に Ubuntu 18.04 上で個別に TeX Live 2019 を入れて使っています。
update は適宜 tlmgr を使って手動で実施しているのですが、昨夜、update しようとして全くアップデートがないことに気づき、同時に以下のメッセージに気づきました:

TeX Live 2019 is frozen forever and will no
longer be updated.  This happens in preparation for a new release.

カレンダーイヤー毎でフリーズする有意性は把握出来ていませんし、リポジトリの指定等で継続的なアップデートが出来るのかもしれませんが、TeX Live のホームページ上に以下のリリーススケジュールが記載されていることが分かりました。なお日付の表示はわかり易く変更しています:

Plan for TeX Live 2020:
2月15日: candidate/final sources committed, test builds begin.
2月28日: tlnet (and TL'19) frozen, tlpretest starts, CTAN updates continue there.
3月15日: code freeze for final build, major bug fixes only.
3月22日: final updates from CTAN, final doc tweaks.
3月29日: deliver TL image for TeX Collection packaging/testing.
4月5日: deliver TeX Collection DVD image for manufacturing.
4月10日: public release (also of MacTeX).
6月?: delivery of DVDs to members.

これを見るとカレンダーイヤーよりファイナンシャルイヤー(年度)のリリースと思った方が良さそうですね。
年度が変わる頃までには、TeX Live 2020 を新たにインストールするのか、TeX Live 2019 を継続的にアップデートし続ける方法があるのか、調べておきたく思います。


GNU Emacs for Windows における最近の IMEパッチ問題

自分は GNU Emacs 使いなのですが、Windows版の Emacs を使用する場合、IMEパッチの問題がありました。 ざっくり言うと、FSFの正規のリリースバイナリだと日本語変換のIMEに切り替えた時、インラインで候補文字が表示されないという問題です。そのために有志の方々...