From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72846 Path: news.gmane.org!not-for-mail From: Raymond LeClair Newsgroups: gmane.comp.tex.context Subject: Escaping a special character in a MetaPost figure within a ConTeXt document fails Date: Wed, 30 Nov 2011 10:15:26 -0500 Message-ID: <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 1322666166 24376 80.91.229.12 (30 Nov 2011 15:16:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 15:16:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 30 16:15:58 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 1RVlt8-0000aW-5E for gctc-ntg-context-518@m.gmane.org; Wed, 30 Nov 2011 16:15:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A306DCB110; Wed, 30 Nov 2011 16:15:57 +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 mtpnvw1ld5Jm; Wed, 30 Nov 2011 16:15:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CFAFCB102; Wed, 30 Nov 2011 16:15:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 61BC6CB102 for ; Wed, 30 Nov 2011 16:15: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 eSRnjhV5O-NA for ; Wed, 30 Nov 2011 16:15:35 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 88491CB0FF for ; Wed, 30 Nov 2011 16:15:35 +0100 (CET) Original-Received: from s7-dallas.accountservergroup.com (s7-dallas.accountservergroup.com [174.120.146.106]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAUFFULD024151 for ; Wed, 30 Nov 2011 16:15:34 +0100 Original-Received: from 173-9-90-161-newengland.hfc.comcastbusiness.net ([173.9.90.161] helo=[192.168.222.117]) by s7-dallas.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1RVlsd-0000L8-R3 for ntg-context@ntg.nl; Wed, 30 Nov 2011 09:15:28 -0600 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: 0aG3rfuqR - 654faf44460a - 20111130 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:72846 Archived-At: I have escaped the '#' character in the usual way, using a backslash, as '\#' in a btex...etex picture as part of a MetaPost figure created within a ConTeXt document, but the escaped character still causes the ConTeXt processing to fail. Here is an example... \pdfminorversion=5 \definepapersize[LG1][width=4.25in,height=6.875in] \definepapersize[LP1][width=4.25in,height=6.875in] \setuppapersize[LG1][LP1] \definelayout[frontmatter] [topspace=0.222222222222in,header=0.555555555556in,height=6.43055555556in,footer=0.694444444444in, backspace=1.05555555556in,width=2.86111111111in,location=middle, leftmargindistance=0.222222222222in,rightmargindistance=0.222222222222in, leftmargin=0.833333333333in,rightmargin=0.111111111111in] \definefont[TitleFont][Serif sa 3.5] \definecolor[TransparentWhite][b=1,t=0,a=1] \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; labeloffset := 0bp; label.lrt(titleText, (front_left_margin, matter_paper_height - top_margin)); \stopreusableMPgraphic \reuseMPgraphic{frontmattertitle:\overlaywidth:\overlayheight} } \defineoverlay[frontmattertitle][\FrontMatterTitle] \starttext \setuplayout[frontmatter] {\TransparentWhite\title{...}} \setupbackgrounds[page][background={{frontmattertitle}},state=repeat] {\TransparentWhite\midaligned{...}} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________