Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Given Donald Knuth's legendary sense of humor, one cannot help but suppose he would have succumbed to the temptation to add in a "special" command or two that did something unsuspected or unusual just for the fun of it. (And I don't just mean some cute or funny source code comments, but something that actually does something.)

And if not him, then surely someone in the community who has made an extension, document class, package or subversion of TeX, LaTeX, ConTeXt, or a helper program like an editor, etc., decided to have a little fun and throw in an Easter Egg.

Yet, at the moment, I cannot think of a single one. Does anyone know of any?

share|improve this question
7  
I see this less as a question, and more as a call to arms for all package writers! But perhaps given the danger of incompatibility between packages and things of that sort, easter eggs would be more annoying than cute, if they led to inexplicable errors... –  Seamus Jan 20 '11 at 13:20
11  
also, +1 for the knuth tag... –  Seamus Jan 20 '11 at 13:23
3  
It's still January and you are already searching for easter eggs! Be patient! ;-) –  Caramdir Jan 20 '11 at 15:38
4  
Just found this old post. What about TeX error messages (and some of their explanations in The TeXbook)? "If you get this error message, you know why, and you deserve no sympathy." (quoting from memory) –  mbork Dec 28 '11 at 14:49
8  
@mbork The right quote is: If you have been so devious as to get this message, you will understand it, and you deserve no sympathy. Is there someone who has never had this error message? What can be the procedure to obtain it? –  Jean Baldraque Oct 2 '12 at 16:06
show 2 more comments

1 Answer

This is not quite an answer, but I just wrote the following code, that redefines a command to turn its argument by a random angle

Namely, \easteregg\footnote declares all footnotes to rotate their text by a random amount (between -10 and +10 degrees).

\documentclass{article}
\usepackage{rotating}
\usepackage[first=-10,last=10]{lcg}
\makeatletter
\newcommand{\globalrand}{\rand\global\cr@nd\cr@nd}
\makeatother
\newcommand{\easteregg}[1]{%
  \expandafter\let\csname old\string#1\endcsname#1%
  \expandafter\def\expandafter#1\expandafter##\expandafter1\expandafter{%
    \csname old\string#1\endcsname{\protect\globalrand\protect\turnbox{\value{rand}}{##1}\protect\phantom{##1}}}%
}

\easteregg\emph
\easteregg\section

\begin{document}

\section{Test}
\section{More test}
\section{Examples}

\emph{Some} \emph{emphasized} \emph{text}, 
\emph{with} \emph{random} \emph{directions}

\end{document} 
share|improve this answer
1  
+1 for taking up the challenge, though as you point out it's not quite an answer... –  frabjous Jan 20 '11 at 20:51
add comment

Your Answer

 
discard

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.