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.