9

I wanted to know how is the \LaTeXe symbol (LaTeXe) made, I mean, the command definition of superscripts and subscripts on the "L", "A"... letters.

  • 1
    Possible duplicate of How to write (La)TeX (with braces) [or any other TeX-related logo]. – Werner Nov 4 '12 at 2:44
  • 3
    @Werner: I disagree, the question you're linking to is about the macro names, not about how the macros typeset the letters. – doncherry Nov 4 '12 at 5:15
  • @Stephen I'm not sure if we should declare a question a duplicate of another question if they need different accepted answers like this? At any rate, the two questions seem different enough to me to keep them separate. – doncherry Nov 4 '12 at 17:03
  • 1
    @doncherry: Agreed, and this question here got good answers, too. – Stephen Nov 4 '12 at 17:10
15

The definitions from source2e (the listing of the LaTeX kernel):

% the TeX logo
\def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@}

% the LaTeX logo
\DeclareRobustCommand{\LaTeX}{L\kern-.36em%
{\sbox\z@ T%
\vbox to\ht\z@{\hbox{\check@mathfonts
\fontsize\sf@size\z@
\math@fontsfalse\selectfont
A}%
\vss}%
}%
\kern-.15em%
\TeX}

% the LaTeX2e logo
\DeclareRobustCommand{\LaTeXe}{\mbox{\m@th
\if b\expandafter\@car\f@series\@nil\boldmath\fi
\LaTeX\kern.15em2$_{\textstyle\varepsilon}$}}

Another way would be to run the following document:

\documentclass{article}

\begin{document}

\expandafter\show\csname LaTeXe \endcsname

\end{document}

The output console will show you the definition:

> \LaTeXe =\long macro:
->\mbox {\m@th \if b\expandafter \@car \f@series \@nil \boldmath \fi \LaTeX \ke
rn .15em2$_{\textstyle \varepsilon }$}.

Running now this:

\documentclass{article}

\begin{document}

\expandafter\show\csname LaTeX \endcsname

\end{document}

you'll get the definition of \LaTeX:

> \LaTeX =\long macro:
->L\kern -.36em{\sbox \z@ T\vbox to\ht \z@ {\hbox {\check@mathfonts \fontsize \
sf@size \z@ \math@fontsfalse \selectfont A}\vss }}\kern -.15em\TeX .

Finally, running

\documentclass{article}

\begin{document}

\show\TeX

\end{document}

you get the \TeX definition:

> \TeX=macro:
->T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\@.
  • The same as Paul, but more complete answer. Thanks too. – JnxF Nov 4 '12 at 2:26
5

To find these definitions, you can use the texdef command (\LaTeXe calls \LaTeX and \LaTeX calls \TeX):

texdef -t latex LaTeXe LaTeX TeX

With the following result:

\LaTeXe:
macro:->\protect \LaTeXe  

\LaTeXe :
\long macro:->\mbox {\m@th \if b\expandafter \@car \f@series \@nil \boldmath \fi \LaTeX \kern .15em2$_{\textstyle \varepsilon }$}

\LaTeX:
macro:->\protect \LaTeX  

\LaTeX :
\long macro:->L\kern -.36em{\sbox \z@ T\vbox to\ht \z@ {\hbox {\check@mathfonts \fontsize \sf@size \z@ \math@fontsfalse \selectfont A}\vss }}\kern -.15em\TeX 

\TeX:
macro:->T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\@
  • Cool! I didn't know so much about plain TeX commands and I find it really useful, especially to learn. Thanks. – JnxF Nov 4 '12 at 2:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.