7

I could use a \LaTeX and \XeTeX with package xltxtra, but I could not found a way to write LuaTeX or LuaLaTeX.

Is there a way to do so?

7
  • 3
    Have a look at the hologo package.
    – TeXnician
    Dec 9, 2017 at 13:17
  • 6
    Just use Lua\TeX and Lua\LaTeX.
    – egreg
    Dec 9, 2017 at 14:25
  • 1
    Related: tex.stackexchange.com/questions/11095/… Dec 9, 2017 at 16:11
  • 2
    @Wentao The answer is YES as provided by egreg. Or if you insist on a complete macro: newcommand*{\LuaLaTex}{Lua\LaTeX} Dec 10, 2017 at 18:56
  • 1
    No, the answer is yes. hologo (as mentioned above) has logos for LuaTeX/LuaLaTeX (\hologo{LuaTeX}\hologo{LuaLaTeX}), they just weren't explicitly mentioned in tex.stackexchange.com/a/67990. Further, the accepted answer to that question isn't up to date dtk-logos provides \luatex/\LuaTeX and \lualatex/\LualaTeX, though the packages use hologo in the definition. Dec 10, 2017 at 23:33

1 Answer 1

4

If you want to have the exact same logo as the one in the LuaTeX manual, you can copy the definition from the ConTeXt core file cont-log.mkiv.

It is only marginally different from 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}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .