I always thought TeX's macros are very Lispy like and stumbling across the definition of the LaTeXe logo confirmed it. The macro is defined as follows:
%\LaTeXe The LATEX2" logo as proposed by A-W designers.
\def\LaTeXe{%
\mbox{\m@th%
\if b\expandafter\@car\f@series\@nil\boldmath\fi
\LaTeX\kern.15em2$_{\textstyle\varepsilon}$}}
So what does the \@car do?
Introduced in the Lisp programming language, car and cdr are primitive operations upon linked lists composed of cons cells.
When cons cells are used to implement singly-linked lists (rather than trees and other more complicated structures), the car operation returns the first element of the list, while cdr returns the rest of the list.
How does the @car work and what is @nil? As far as I can see, it is undefined, but does not give an error. It does not even give an error even if I define it as \def\@nil{illdefined!}, as shown in the code below.
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{verbatim}
\begin{document}
\bigskip
\makeatletter
\def\@nil{illdefined!}
\scalebox{5}{\LaTeXe}
\makeatother
\end{document}
More on CAR and CDR at the wikipedia
\@nilis undefined, isn't it? How do you get\@@nil? – Hendrik Vogt Nov 07 '10 at 16:01\@nnil, which is used by the looping system in LaTeX2e and is defined\def\@nnil{\@nil}. – Joseph Wright Nov 07 '10 at 16:06\meaning\@nilgivesundefined, but does not seem to affect the scanning, since I defined it as\def\@nil{Illdefined!}and still prints the logo with no complaints. Will read Chapter 20 once more, and yes of course is not Lisp, but Lispy! – yannisl Nov 07 '10 at 17:04<balanced text>rather than token? – Bruno Le Floch Jan 04 '11 at 19:20