[texhax] A Self-Referential Logo

Martin Heller mr_heller at yahoo.dk
Wed Oct 12 11:06:50 CEST 2011

Iraj Kalantari wrote, on 11-10-2011 22:05:
> I am afraid it does not work for me.
> I get:
> ! Undefined control sequence.
> l.583 \pgfkeys
>                {/pgf/foreach/.cd,
You can use \@for instead of \foreach from the pgffor package

% test.tex

\def\realjobname{test}% <- change to match filename
\@for \runno:=\runnos \do
     pdfLaTeX --jobname="\jobname\runno"




> Question: How does one "enable escape/write18"?
> (Mac user; OS 10.6.8; TeXlive-2009; TeXShop)

You need to use

pdflatex --shell-escape test.tex

This will generate

testX.pdf where X = 0,1,...,5

Test5.pdf has your document with a 6-level self-referential logo.

More information about the texhax mailing list