From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72866 Path: news.gmane.org!not-for-mail From: Raymond LeClair Newsgroups: gmane.comp.tex.context Subject: Re: Escaping a special character in a MetaPost figure within a ConTeXt document fails Date: Thu, 1 Dec 2011 12:56:53 -0500 Message-ID: <343DA052-8CB9-4ED4-917B-68DC2477D0CA@synterein.com> 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 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322762241 8256 80.91.229.12 (1 Dec 2011 17:57:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2011 17:57:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 01 18:57:17 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 1RWAsm-0006E9-OE for gctc-ntg-context-518@m.gmane.org; Thu, 01 Dec 2011 18:57:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 251F7CB11A; Thu, 1 Dec 2011 18:57:16 +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 7xXcaU+HFS8u; Thu, 1 Dec 2011 18:57:10 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E281CB10E; Thu, 1 Dec 2011 18:57:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 152E3CB10E for ; Thu, 1 Dec 2011 18:57:10 +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 TgurT10fkeBL for ; Thu, 1 Dec 2011 18:56:58 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 7CC2FCB0FF for ; Thu, 1 Dec 2011 18:56:58 +0100 (CET) Original-Received: from s7-dallas.accountservergroup.com (s7-dallas.accountservergroup.com [174.120.146.106]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pB1Huuhw026955 for ; Thu, 1 Dec 2011 18:56:57 +0100 Original-Received: from [68.167.35.186] (helo=[172.16.31.247]) by s7-dallas.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1RWAsQ-0002f4-Tw for ntg-context@ntg.nl; Thu, 01 Dec 2011 11:56:55 -0600 In-Reply-To: X-Mailer: Apple Mail (2.1084) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s7-dallas.accountservergroup.com X-AntiAbuse: Original Domain - ntg.nl X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - synterein.com X-Source: X-Source-Args: X-Source-Dir: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=174.120.146.106; country=US; region=TX; city=Houston; postalcode=77002; latitude=29.7523; longitude=-95.3670; metrocode=618; areacode=713; http://maps.google.com/maps?q=29.7523,-95.3670&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dG3RUUUi - f42e173237b3 - 20111201 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:72866 Archived-At: Thanks for the reply! Found I needed to use \letterbackslash\letterhash for this to work. Does that make sense? On Nov 30, 2011, at 10:37 AM, Aditya Mahajan wrote: > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________