我在 OS X 上使用 TexLive 2015。
tlmgr info latex
报告说我有最新的 latex 版本2015-08-03
$> tlmgr info latex
package: latex
category: Package
shortdesc: A TeX macro package that defines LaTeX
longdesc: LaTeX is a widely-used macro package for TeX, providing many basic document formating commands extended by a wide range of packages. It is a development of Leslie Lamport's LaTeX 2.09, and superseded the older system in June 1994. The basic distribution is catalogued separately, at latex-base; apart from a large set of contributed packages and third-party documentation (elsewhere on the archive), the distribution includes: - a bunch of required packages, which LaTeX authors are "entitled to assume" will be present on any system running LaTeX; and - a minimal set of documentation detailing differences from the 'old' version of LaTeX in the areas of user commands, font selection and control, class and package writing, font encodings, configuration options and modification of LaTeX. For downloading details, see the linked catalogue entries above.
installed: Yes
revision: 38732
sizes: src: 2909k, doc: 14809k, run: 2793k
relocatable: No
cat-date: 2015-08-03 05:43:12 +0200
cat-license: lppl1.3
cat-topics: format
collection: collection-latex
但是当我对文档使用 lualatex 时,报告的 LaTeX 版本是2015/01/01
$> lualatex examples/amiri-sample.tex
This is LuaTeX, Version beta-0.80.1 (TeX Live 2015) (rev 5253)
restricted \write18 enabled.
(./examples/amiri-sample.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.clo)) (./harfbuzz.sty
…
造成这种差异的原因可能是什么?
答案1
正如@JosephWright 在评论中指出的那样,我通过以下方式解决了该问题:
rm -rf ~/Library/texlive/2015/texmf-var
sudo fmtutil-sys --byengine luatex