From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72847 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Escaping a special character in a MetaPost figure within a ConTeXt document fails Date: Wed, 30 Nov 2011 10:37:26 -0500 (EST) Message-ID: References: <5F3AF085-2C20-4920-AF36-D92CACED2226@synterein.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322667297 898 80.91.229.12 (30 Nov 2011 15:34:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 15:34:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 30 16:34:51 2011 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 1RVmBP-0001rd-19 for gctc-ntg-context-518@m.gmane.org; Wed, 30 Nov 2011 16:34:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 121EECB10E; Wed, 30 Nov 2011 16:34:50 +0100 (CET) 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 DFnuHV8sSdbo; Wed, 30 Nov 2011 16:34:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68AE6CB109; Wed, 30 Nov 2011 16:34:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24E9ACB109 for ; Wed, 30 Nov 2011 16:34:46 +0100 (CET) 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 VjgUw5IZU11d for ; Wed, 30 Nov 2011 16:34:35 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id EFB31CB0FF for ; Wed, 30 Nov 2011 16:34:34 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAUFYXlv001190 for ; Wed, 30 Nov 2011 16:34:33 +0100 Original-Received: FROM adi-laptop (bas3-montreal02-1096680774.dsl.bell.ca [65.94.5.70]) By hellskitchen.mr.itd.umich.edu ID 4ED64D07.94859.6063 ; Authuser adityam; 30 Nov 2011 10:34:31 EST In-Reply-To: <5F3AF085-2C20-4920-AF36-D92CACED2226@synterein.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06G3ryxGx - 290a8238569d - 20111130 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:72847 Archived-At: Try: using \letterhash instead of \# or \startasciimode > \def \FrontMatterTitle { > \startreusableMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} > matter_paper_width := 4.25in; > matter_paper_height := 6.875in; > front_left_margin := 0.388888888889in; > top_margin := 0.347222222222in; > draw (0, 0)--(matter_paper_width, matter_paper_height) > withpen pencircle scaled 1bp withcolor white; > picture titleText; > > %% == HERE IS THE SOURCE OF THE PROBLEM == > > titleText := btex {\vbox{\hsize 2.72916666667in \baselineskip 38.0pt > \setupalign[flushleft,hyphenated,verytolerant] > \TitleFont THE BEGINNINGS OF #BOOM}} etex; %%%%%% NOTE I changed \# to # and % to %% > labeloffset := 0bp; > label.lrt(titleText, (front_left_margin, > matter_paper_height - top_margin)); > \stopreusableMPgraphic > \reuseMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} > } \stopasciimode You can also use \framed[width=2.73in, foregroundstyle={\TitleFont\setupinterlinespace[38pt], align={flushleft, ....}]{The ....} instead of explicit \vbox. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________