[texhax] Low-level TeX question: string substitution macro

Uwe Lück uwe.lueck at web.de
Wed Apr 22 16:47:52 CEST 2009

At 15:42 22.04.09, Uwe Lück wrote:
>To replace sed by TeX, I propose writing to <out>=\jobname.ffd as follows:
>      {\let\ref\relax \let\cref\relax
>       \immediate\write<out>{\string\AddReplacement{<clever>}{<plain>}}}

As "equation~" etc. in <plain> will be typical, there should be \let~\relax 
as well.

-- Uwe.

More information about the texhax mailing list