From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75288 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: simple graphics, Metafun vs. ConTeXt Date: Thu, 22 Mar 2012 15:28:18 +0100 Message-ID: References: <4F6B32AB.5090400@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332426511 4219 80.91.229.3 (22 Mar 2012 14:28:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2012 14:28:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 22 15:28:31 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SAj08-0005Kl-Lf for gctc-ntg-context-518@m.gmane.org; Thu, 22 Mar 2012 15:28:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5030101FD; Thu, 22 Mar 2012 15:28:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id I04PwExAxDMG; Thu, 22 Mar 2012 15:28:26 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F836101E3; Thu, 22 Mar 2012 15:28:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 905E5101E3 for ; Thu, 22 Mar 2012 15:28:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ACbWu8O9OZ+D for ; Thu, 22 Mar 2012 15:28:23 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C2A1110194 for ; Thu, 22 Mar 2012 15:28:23 +0100 (CET) Original-Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2MESMwA028423 for ; Thu, 22 Mar 2012 15:28:23 +0100 Original-Received: by wgbds10 with SMTP id ds10so1202344wgb.2 for ; Thu, 22 Mar 2012 07:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=w+41q6jc3Pjznn5mVNBFqwy0gZIBSh7rNCWNsrWozfc=; b=K0LXSSHhR03pw+4qm5HE5RZrgneiwRcKckzZHNcUMeGNJn+mnIq8cnlfQ9ju1SXz3i JxSGwlfY4pF9J1HQeNUL43s+PzmDssxKW53atCD/nZ9L7i6g+ElmC+lsBSmfkx8huQfm UCMZ20RyndLxpFaNIacQzaCK5Cvv10qIKU19LC1iNEC5GvQvkS+swaFgQF4qf7alQuDO s/7WeyGaZonwFU7eXpK1HauLn/Ua5jIoC5fceYw45goygU0GN3Anmv+/xIMEkPS+y4q4 jkvahP7EAEDz5hILEmhVNdcSnoWPJA5LDHcikoKHZk1If7uZuEU8iHdaICVaJ2BcLw5b gn6g== Original-Received: by 10.180.88.67 with SMTP id be3mr5645312wib.20.1332426502732; Thu, 22 Mar 2012 07:28:22 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB5F1.dip.t-dialin.net. [87.175.181.241]) by mx.google.com with ESMTPS id gp8sm5620758wib.5.2012.03.22.07.28.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Mar 2012 07:28:21 -0700 (PDT) In-Reply-To: <4F6B32AB.5090400@googlemail.com> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; latitude=38.0000; longitude=-97.0000; http://maps.google.com/maps?q=38.0000,-97.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RGMCsmjS - 52716c79c8fe - 20120322 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:75288 Archived-At: Am 22.03.2012 um 15:09 schrieb S Barmeier: > I have leaved through the ConTeXt and MetaFun manuals on the search for > examples of graphics resembling the attached file which I created in TikZ. > > I was wanting to switch to something more native to ConTeXt, but haven't > quite found a way of realising it in ConTeXt or MetaFun. > > Maybe someone would be so kind as to point me to the right section in > the manual. > > All I want is to define text boxes (of a fixed size) to fill them with a > background colour and (centred, typeset) text. Do I need MetaFun for > that, or should some table/framed text environment in ConTeXt be able to > do that? You can use a table as seen in the example below but when you have many graphics in this form I would use layers and write a few commands to fill all fields with the information. \startsetups kanji \setupTABLE [frame=off] \setupTABLE[1][1][background=color,backgroundcolor=red,width=4cm,align={middle,lohi}] \setupTABLE[2][1][background=color,backgroundcolor=orange,width=6cm] \setupTABLE[1][2][background=color,backgroundcolor=yellow] \stopsetups \starttext \bTABLE[setups=kanji] \bTR \bTD A \eTD \bTD line 1\\ line 2\\ line 3 \eTD \eTR \bTR \bTD[nx=2] line 1\\ line 2\\ line 3 \eTD \eTR \eTABLE \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________