Terry,
I haven't seen anyone beat me to it, so here goes. Two problems. First
ved <enter> procedures don't take formal arguments - their arg is in
-vedargument- (clearly you know this for ved_s, but didn't extrapolate
to your ved_i as well). Second, you need four backslashes cos the string
gets interpreted twice - once at compile time and again (I assume) by
ved_s. So you need 4 to make sure one is left at the end!
So it looks like this:
define ved_i;
dlocal vedargument;
'/' >< vedargument >< '/@&\\\\index{@&}' -> vedargument;
ved_s();
enddefine;
regards
Roger
|