From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58805 Path: news.gmane.org!not-for-mail From: Marco Newsgroups: gmane.comp.tex.context Subject: Re: Ampersand in Metapost Date: Fri, 14 May 2010 12:09:43 +0200 Message-ID: <20100514120943.6a1395ce@vorbis> References: <20100513211856.48e15be4@vorbis> <4BEC6806.3010800@wxs.nl> <20100513234554.36d41c14@vorbis> 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 1273832433 29275 80.91.229.12 (14 May 2010 10:20:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 May 2010 10:20:33 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 14 12:20:31 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 1OCs0N-0005xZ-7x for gctc-ntg-context-518@m.gmane.org; Fri, 14 May 2010 12:20:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 067DCC9AD9; Fri, 14 May 2010 12:20:31 +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 fakARATFM8bZ; Fri, 14 May 2010 12:20:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7663EC9B03; Fri, 14 May 2010 12:20:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 094CFC9AE3 for ; Fri, 14 May 2010 12:20:13 +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 RmbpTMhIXaED for ; Fri, 14 May 2010 12:20:08 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id 3FD4EC9B10 for ; Fri, 14 May 2010 12:20:04 +0200 (CEST) Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OCrzv-0005g3-Ni for ntg-context@ntg.nl; Fri, 14 May 2010 12:20: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 12:20: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 12:20:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 18 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:58805 Archived-At: > > - 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________