From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15960 Path: main.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: EPS/PDF import and \underbrace in metaplay Date: Thu, 05 Aug 2004 16:29:40 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41124454.7020207@email.si> References: <4110ED95.6070003@email.si> <411103D7.4080301@seznam.cz> Reply-To: mojca.miklavec@guest.arnes.si, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1091716211 14515 80.91.224.253 (5 Aug 2004 14:30:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Aug 2004 14:30:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 05 16:30:03 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BsjFr-00056V-00 for ; Thu, 05 Aug 2004 16:30:03 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0102E1277B; Thu, 5 Aug 2004 16:30:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06208-08; Thu, 5 Aug 2004 16:30:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B6EB12772; Thu, 5 Aug 2004 16:29:59 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 98DBA12772 for ; Thu, 5 Aug 2004 16:29:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06141-08 for ; Thu, 5 Aug 2004 16:29:57 +0200 (CEST) Original-Received: from avs2.arnes.si (unknown [193.2.1.75]) by ronja.ntg.nl (Postfix) with ESMTP id 11D471276C for ; Thu, 5 Aug 2004 16:29:57 +0200 (CEST) Original-Received: from localhost (avs2.arnes.si [193.2.1.75]) by avs2.arnes.si (Postfix) with ESMTP id CDBC826D243 for ; Thu, 5 Aug 2004 16:29:56 +0200 (CEST) Original-Received: from avs2.arnes.si ([193.2.1.75]) by localhost (avs2.arnes.si [193.2.1.75]) (amavisd-new, port 10024) with ESMTP id 20492-09 for ; Thu, 5 Aug 2004 16:29:56 +0200 (CEST) Original-Received: from email.si (ar20-30i.dial-up.arnes.si [194.249.10.222]) by avs2.arnes.si (Postfix) with ESMTP id BFF9F26D2B0 for ; Thu, 5 Aug 2004 16:29:43 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sl-SI; rv:1.6) Gecko/20040113 X-Accept-Language: sl, en, en-us, de Original-To: mailing list for ConTeXt users In-Reply-To: <411103D7.4080301@seznam.cz> X-Virus-Scanned: by amavisd-new at arnes.si X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15960 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15960 Vit Zyka wrote: > Mojca Miklavec wrote: > >> 1.) EPS/PDF import >> >> How do I make an existing EPS or PDF image a part of some other >> meta[post/play] graphic? > > Use externalfigure (Metafun manual, 8.4 Including graphics) Oh, thanks a lot. I was so stupid that I somehow overlooked that it was a chapter about inclusion of figures in other graphics and not in text, although I've seen these pages quite a couple of times. >> 2.) \underbrace >> >> I wrote the following two macros for drawing braces in graphics: >> >> \def\underbracedescription#1#2{$\underbrace{\hbox{\vrule width#1 height >> 0bp}}_{\hbox{\strut #2}}$} >> \def\rightbracedescription#1#2{$\displaystyle{\left.\vphantom{\hbox{\vrule >> width0bp height#1 depth#1}}\right\}\hbox{\strut #2}}$} >> >> However, the width has to be given manually - it doesn't care about the > > > I do not understand what is your desire. I want to make something like [start of TeX code] \displaystyle{\underbrace{x^2+y^2=z^2}_{\hbox{simple equation}}} [end of tex code] except that there has to be a metapost picture instead of "x^2+y^2=z^2" Or, see page 22 of http://remote.science.uva.nl/~heck/Courses/mptut.pdf. (The example is made by stretching normal braces, but that's ugly) > But in the case of obtaining real dimmensions: > \setbox0=\hbox{ ... }% Is it possible to place a graphic inside a \hbox in some btex ... etex or textext expression? In that case this would help me a lot, otherwise I'll keep playing with \[something]MP[something]. Thanks again, Mojca Miklavec