On Thu, 13 May 2010 22:58:46 +0200, Hans Hagen <pra...@wxs.nl> wrote:
> 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________