From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58793 Path: news.gmane.org!not-for-mail From: Marco Newsgroups: gmane.comp.tex.context Subject: Re: Ampersand in Metapost Date: Thu, 13 May 2010 23:45:54 +0200 Message-ID: <20100513234554.36d41c14@vorbis> References: <20100513211856.48e15be4@vorbis> <4BEC6806.3010800@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273788013 6843 80.91.229.12 (13 May 2010 22:00:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 May 2010 22:00:13 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 14 00:00:13 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OCgRw-0005PA-Ms for gctc-ntg-context-518@m.gmane.org; Fri, 14 May 2010 00:00:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03981C9B07; Fri, 14 May 2010 00:00:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SlURi0MCK7b2; Fri, 14 May 2010 00:00:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F1D5C9B10; Fri, 14 May 2010 00:00:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30A30C9B10 for ; Fri, 14 May 2010 00:00:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tZm409dCPzB8 for ; Fri, 14 May 2010 00:00:06 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id 273A8C9B07 for ; Fri, 14 May 2010 00:00:06 +0200 (CEST) Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OCgRn-0005IW-Vk for ntg-context@ntg.nl; Fri, 14 May 2010 00:00:03 +0200 Original-Received: from 202.58.85.36 ([202.58.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 May 2010 00:00:03 +0200 Original-Received: from netuse by 202.58.85.36 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 May 2010 00:00:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 202.58.85.36 X-Newsreader: Claws Mail 3.7.6 (GTK+ 2.20.1; i486-pc-linux-gnu) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:58793 Archived-At: On Thu, 13 May 2010 22:58:46 +0200, Hans Hagen 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 ___________________________________________________________________________________