14 May
2010
14 May
'10
10:09 a.m.
- label(textext("\letterbackslash\letterampersand"),origin); - label(textext("\letterbackslash\&"),origin);
This is because the commands are interpreted with TeX before they are written to mpgraph.mp. The \letterampersand or \& generates the character & alone: you need to preceed it with backslash, so that metapost finally knows what to do.
So, should all the \letter... commands (basically anything generated from char-def.lua) be unexpandable? What are the disadvantages of unexpandable commands? I'm not an expert. Why is this not done by default if it works better?
You can also try \noexpand\letterampersand Produces compile error.
Marco