[NTG-pdftex] \expanded

Karl Berry karl at freefriends.org
Thu May 17 22:24:50 CEST 2018

The \expanded stuff for pdftex all seems fine to me (will commit shortly),
except I think the expanded.tex file should have the usual
author/license junk at the top. In order not to change the line numbers
in the .txt :), I reorganized the catcodes at the top. Ok?

I've been playing around with the test infrastructure. Good choice not
to have dependencies on ptex/xetex/anything-else-tex from pdftex :). -k

% $Id$
% Public domain.
% Originally written 2018 by David Carlisle, Bruno Le Floch.

\catcode`\{=1 \catcode`\}=2 \catcode`\#=6
\def\typ#1{\immediate\write-1 {#1}}
\def\space{ }
\let\bgroup{ \let\egroup}

% Check the primitive exists

% Simple expansion test

\typ{EXPANDED TEST 3: the}
% Expanding \the

\typ{EXPANDED TEST 4: macro param}
% Constructed #1 is still #1

\typ{EXPANDED TEST 5: torture}
% Torture test from Bruno Le Floch testing various tricky interactions
\expanded\relax\space\ifincsname \BOOM\fi{\ifincsname \BOOM\fi}


More information about the ntg-pdftex mailing list