On Tue, Dec 07, 2004 at 04:32:59PM +0000, Angus Leeming wrote:
> Isn't it possible to define \mesg only when \typeout's argument starts
> "Babel":
> 
> {\def\typeout#1{if #1 starts with "Babel" then \global\def\mesg{#1}}
>  \the\everyjob}

We could simply collect all typeout arguments and cut out the interesting
part later

\def\mesg{}
{\def\typeout#1{\global\edef\mesg{\mesg #1}}
 \the\everyjob}

[edef expands the definition's body before doing an ordinary def[

Andre'

Reply via email to