From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11668 Path: main.gmane.org!not-for-mail From: Michal Kvasnicka Newsgroups: gmane.comp.tex.context Subject: Re: A change in textext Metafun maco? Date: Thu, 27 Mar 2003 12:16:34 +0100 Organization: ESF MU Brno Sender: ntg-context-admin@ntg.nl Message-ID: <200303271216.34646.quasar@econ.muni.cz> References: <5.1.0.14.1.20030326143910.030ee480@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_MBNE7T56W17RKBFQ5510" X-Trace: main.gmane.org 1048764144 21888 80.91.224.249 (27 Mar 2003 11:22:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 11:22:24 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Mar 27 12:22:22 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18yVSg-0005gr-00 for ; Thu, 27 Mar 2003 12:22:22 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id F0EAA10B10; Thu, 27 Mar 2003 12:22:22 +0100 (MET) Original-Received: from anor.ics.muni.cz (anor.ics.muni.cz [147.251.4.35]) by ref.ntg.nl (Postfix) with ESMTP id 4FD5410AE7 for ; Thu, 27 Mar 2003 12:19:07 +0100 (MET) Original-Received: from merkur.econ.muni.cz (merkur.econ.muni.cz [147.251.189.10]) by anor.ics.muni.cz (8.12.1/8.12.1) with ESMTP id h2RBJ9j1008595 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 27 Mar 2003 12:19:09 +0100 Original-Received: from ke-kvasnicka.econ.muni.cz (localhost [127.0.0.1]) by merkur.econ.muni.cz (8.12.3/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id h2RBJ8wM010541 for ; Thu, 27 Mar 2003 12:19:08 +0100 Original-To: ntg-context@ntg.nl User-Agent: KMail/1.4.3 In-Reply-To: <5.1.0.14.1.20030326143910.030ee480@server-1> X-Muni-Virus-Test: Clean Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: quasar@econ.muni.cz List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11668 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11668 --------------Boundary-00=_MBNE7T56W17RKBFQ5510 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Good evening. I can't find the reason of the bug. So I send a minimal test file. The pr= oblem=20 is, that the frame has title "unkonwn", not "Example" as I expected. Many= =20 thanks for your help.=20 Michal Kvasnicka --------------Boundary-00=_MBNE7T56W17RKBFQ5510 Content-Type: text/x-tex; charset="iso-8859-1"; name="smalltest.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="smalltest.tex" % interface=english, output=pdf \startMPinclusions verbatimtex \definefontsynonym [Serif] [cmr10] \definefontsynonym [SerifBold] [cmbx10] \definefontsynonym [SerifItalic] [cmti10] \definefontsynonym [SerifSlanted] [cmti10] \definefontsynonym [SerifBoldItalic] [cmbxti10] \definefontsynonym [SerifBoldSlanted] [cmbxti10] \definefontsynonym [SerifCaps] [cmr10] \definefontsynonym [SansItalic] [txsssl8z] \definebodyfont [14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt] [rm] [default] \setupbodyfont[10pt] \setupinterlinespace[line=13pt] etex \stopMPinclusions \startuseMPgraphic{FunnyFrame} picture pic; numeric w, h, o; pic:=textext.rt(\MPstring{FunnyFrame}); w:=\overlaywidth; h:=\overlayheight; o:=BodyFontSize; pic:=pic shifted (1.5o,h-ypart center pic); fill boundingbox pic withcolor white; draw pic; drawoptions (withpen pencircle scaled 1pt);% withcolor .625red); draw (1.5o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner pic,h); draw boundingbox pic; setbounds currentpicture to unitsquare xyscaled(w,h); \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText] [width=broad,height=fit,before={\blank[line]},after={\blank[line]}, frame=off,background=FunnyFrame] \def\FrameTitle#1{% \setMPtext{FunnyFrame}{\hbox spread 1em{\hss\ss\bfx\strut#1\hss}}} \setMPtext{FunnyFrame}{} \def\startexample{% \FrameTitle{Example} \startFunnyText } \def\stopexample{% \stopFunnyText } \starttext \input tufte \input tufte \input tufte \startexample \input tufte \stopexample \input tufte \input tufte \input tufte \stoptext --------------Boundary-00=_MBNE7T56W17RKBFQ5510--