Hi Fabrice,
I have this from former exchanges
% Cancel command for use in equations.
\startuniqueMPgraphic{cross out}
picture cross;
cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0););
draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle
scaled .8pt ;
\stopuniqueMPgraphic
\defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}]
\define[1]\cancel{%
\ifmmode
\mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\else%
\framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
\fi%
}
Maybe something else is available nowadays.