From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11963 Path: main.gmane.org!not-for-mail From: emmanuel.rialland@sgib.com Newsgroups: gmane.comp.tex.context Subject: Metapost problems Date: Thu, 17 Apr 2003 15:27:53 +1100 Sender: ntg-context-admin@ntg.nl Message-ID: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1050553911 25576 80.91.224.249 (17 Apr 2003 04:31:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2003 04:31:51 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Apr 17 06:31:49 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 19613t-0006eM-00 for ; Thu, 17 Apr 2003 06:31:49 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 83A1910B17; Thu, 17 Apr 2003 06:32:31 +0200 (MEST) Original-Received: from tokmail02.socgen.co.jp (tokmail02.socgen.co.jp [202.33.124.13]) by ref.ntg.nl (Postfix) with ESMTP id A429D10B15 for ; Thu, 17 Apr 2003 06:29:04 +0200 (MEST) Original-Received: from tokmailav01.jp.socgen.com by tokmail02.socgen.co.jp via Smap(2.01) id h3H22TQr025815 for ;Thu, 17 Apr 2003 11:02:29 +0900 (JST) Original-Received: from mailswp-1.socgen.co.jp (localhost [127.0.0.1]) by tokmailav01.jp.socgen.com (8.9.3/8.9.3) with ESMTP id NAA08508 for ; Thu, 17 Apr 2003 13:29:02 +0900 (JST) Original-To: ntg-context@ntg.nl Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk 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:11963 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11963 Hi, I am trying to insert the same picture in a text at different places and in different sizes. The logo looks like a bicolor square with white text on top of it. After many errands, I wrote the following so that I can size as needed: \def\Logo#1% {\startMPgraphic % Top rectangle drawfill (0,0)--(2cm,0)--(2cm,1cm)--(0,1cm)--cycle with color blue ; % Bottom black rectangle drawfill (0,0)--(2cm,0)--(2cm,-1cm)--(0,-1cm)--cycle with color black ; % White Text draw btex \bf AB etex withcolor white ; % resize to size currentpicture := currentpicture scaled #1 ; \stopMPgraphic \loadcurrentMPgraphic \placeMPgraphic} All I get is a frame with "undefined" written in it. Any clues? I also try to have draft written in the right margin. I copied the text showed p156 of the Metafun manual (the second example from the top). Never had any success. Is there anything I am missing? Now weirder (to me at least). A bit further in my doc, I have a chart created with the chart module. I had to comment out the chart code. If I don't, all the logos and all the right margins (where I would like to see DRAFT) are replaced by the chart. And at the location where the chart is included, there is no chart (more precisely, there is no boxes and arrows but the labels are still there, scattered around over the text as an overlay). I am using teXExec 3.1 that comes with Cygwin. Any help is welcome. Thanks in advance, Emmanuel ************************************************************************** Have you checked our new corporate website at http://www.sgib.com ? The information contained herein is confidential and is intended solely for the addressee(s). It shall not be construed as a recommendation to buy or sell any security. Any unauthorized access, use, reproduction, disclosure or dissemination is prohibited. Neither SGIB nor any of its subsidiaries or affiliates shall assume any legal liability or responsibility for any incorrect, misleading or altered information contained herein. **************************************************************************