microtype 的字母间距(和跟踪)选项是否不适用于最新版本的 LuaTeX?
当我尝试时:
\documentclass{article}
\usepackage[no-math]{fontspec}
\fontspec[SmallCapsFont={LinLibertineCapitalsO},
SmallCapsFeatures={Letters=SmallCaps}]{Linux Libertine O}
\usepackage[tracking,letterspace=500]{microtype}
\begin{document}\parindent0em
stealing sheap
\textsc{Stealing Sheep}
\textls[800]{\scshape Stealing Sheep}
\end{document}
我的 .log 中收到错误消息:
This is LuaTeX, Version beta-0.70.2-2012062812 (TeX Live 2012) (format=lualatex 2012.7.13) 10 AUG 2012 09:14
.....
! Package microtype Error: The `tracking' feature doesn't currently work
(microtype) with luatex.
......
! Package microtype Error: Letterspacing currently doesn't work with luatex.
See the microtype package documentation for explanation.
Type H <return> for immediate help.
...
l.18 \textls[800]{\scshape Stealing Sheep}
Run pdftex, or use the `soul' package instead.
答案1
如果您使用 2.5 版软件包microtype
- 仍处于“后期测试版”,但可在线访问http://tlcontrib.metatex.org/cgi-bin/package.cgi/action=view/id=608-- 您可以使用该包的字母间距和跟踪功能 -- 但还不能使用字距调整功能;后者仅在该包与 pdflatex 一起使用时可用。
% !TEX TS-program = lualatex
\documentclass{article}
\usepackage[no-math]{fontspec}
\fontspec[SmallCapsFont={LinLibertineCapitalsO},
SmallCapsFeatures={Letters=SmallCaps}]{Linux Libertine O}
\usepackage[tracking,letterspace=500]{microtype}
\begin{document}
stealing sheap
\textsc{Stealing Sheep}
\textls[800]{\scshape Stealing Sheep}
\end{document}