我可以使用\LaTeX
和\XeTeX
带有包xltxtra
,但我找不到编写LuaTeX
或的方法LuaLaTeX
。
有办法吗?
答案1
如果你想拥有完全一样徽标与 LuaTeX 手册中的徽标相同,您可以从 ConTeXt 核心文件中复制定义cont-log.mkiv
。
它与 仅有细微的差别Lua\TeX
。
\documentclass{article}
\let\unexpanded\protected
\let\dontleavehmode\leavevmode
\newdimen\zeropoint \zeropoint=0pt
% from cont-log.mkiv
\unexpanded\def\LuaTeX
{\dontleavehmode
\begingroup
Lua%
% hope for kerning, try aT
\setbox0\hbox{aT}%
\setbox2\hbox{a\kern\zeropoint T}%
\ifdim\wd0=\wd2 % kerns can go two ways
% no aT kerning, try oT as a is not symmetrical
\setbox0\hbox{oT}%
\setbox2\hbox{o\kern\zeropoint T}%
\ifdim\wd0=\wd2 % kerns can go two ways
% no aT and oT kerning, try To
\setbox0\hbox{To}%
\setbox2\hbox{T\kern\zeropoint o}%
% maybe we need to compensate for the angle (sl/it/bs/bi)
\fi
\ifdim\wd0=\wd2\else
\kern\dimexpr\wd0-\wd2\relax
\fi
\fi
\TeX
\endgroup}
\begin{document}
\LuaTeX
Lua\TeX
\end{document}