TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Possible duplicate of How to write (La)TeX (with braces) [or any other TeX-related logo]. – Werner Nov 4 '12 at 2:44
@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
@doncherry: Agreed, and this question here got good answers, too. – Stephen Nov 4 '12 at 17:10
up vote 14 down vote accepted

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

% the TeX logo

% the LaTeX logo
{\sbox\z@ T%
\vbox to\ht\z@{\hbox{\check@mathfonts

% the LaTeX2e logo
\if b\expandafter\@car\f@series\@nil\boldmath\fi

Another way would be to run the following document:



\expandafter\show\csname LaTeXe \endcsname


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:



\expandafter\show\csname LaTeX \endcsname


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





you get the \TeX definition:

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

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:

macro:->\protect \LaTeXe  

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

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 

macro:->T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\@
share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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