On Thu, 13 May 2010 22:58:46 +0200, Hans Hagen
On 13-5-2010 9:18, Marco wrote:
Hi,
I have a problem producing an ampersand in metapost. In ConTeXt it works as expected. Have a look at the following example.
\starttext \& % OK \startMPcode label(textext("\&"),origin); % produces error \stopMPcode \stoptext
The compile time error message is as follows: ! Misplaced alignment tab character&. l.1 \MPLIBsettext{1}{&
\letterpercent Doesn't work. I suppose you mean \letterampersand. If I change \& into \letterampersand I get exactly the same error as \& produces (BTW: \letterpercent also produces an error, but a different one).
I discovered that the ugly \char`\& works as a workaround (or is this the final solution?). Thanks for your help. Marco