I wanted to know how is the \LaTeXe symbol (
) made, I mean, the command definition of superscripts and subscripts on the "L", "A"... letters.
Asked
Active
Viewed 1,070 times
9
David Carlisle
- 757,742
JnxF
- 886
-
1Possible duplicate of How to write (La)TeX (with braces) [or any other TeX-related logo]. – Werner Nov 04 '12 at 02: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 04 '12 at 05: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 04 '12 at 17:03
-
1@doncherry: Agreed, and this question here got good answers, too. – Stephen Nov 04 '12 at 17:10
2 Answers
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\@.
Gonzalo Medina
- 505,128
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\@
Paul Gaborit
- 70,770
- 10
- 176
- 283
-
Cool! I didn't know so much about plain TeX commands and I find it really useful, especially to learn. Thanks. – JnxF Nov 04 '12 at 02:21