From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32638 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: placing a tikz/pgf figure Date: Tue, 9 Jan 2007 20:08:19 -0500 (EST) Message-ID: References: <20070109164240.58526.qmail@web51807.mail.yahoo.com> <6faad9f00701091621l4f807cc0mb2129b6085c623d2@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168391325 26357 80.91.229.12 (10 Jan 2007 01:08:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Jan 2007 01:08:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 10 02:08:41 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H4RxE-0002nA-5N for gctc-ntg-context-518@m.gmane.org; Wed, 10 Jan 2007 02:08:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EFF9F1FFE0; Wed, 10 Jan 2007 02:05:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17198-02-7; Wed, 10 Jan 2007 02:05:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACBA61FFA0; Wed, 10 Jan 2007 02:05:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D32B01FFA0 for ; Wed, 10 Jan 2007 02:04:59 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17198-02-6 for ; Wed, 10 Jan 2007 02:04:55 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id A180D1FF7B for ; Wed, 10 Jan 2007 02:04:54 +0100 (CET) Original-Received: FROM aditya.engin.umich.edu (udhcp-wlan86.public.engin.umich.edu [141.213.120.96]) BY skycaptain.mr.itd.umich.edu ID 45A43C83.49A7E.11900 ; 9 Jan 2007 20:08:19 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <6faad9f00701091621l4f807cc0mb2129b6085c623d2@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32638 Archived-At: On Wed, 10 Jan 2007, Mojca Miklavec wrote: > (abstract of Maarten-Jan's sample) > > > \usemodule[tikz] > > > > \starttext > > > > \startbuffer[tikz] > > \starttikzpicture > > \draw[red,thick] (0,0) -- (1,1) > > {[rounded corners] -- (2,0) -- (3,1)} > > -- (3,0) -- (2,1); > > \stoptikzpicture > > \stopbuffer > > > > \placefigure > > {The figure is flushed left, whereas it should be centered.} > > {\externalfigure[tikz.tmp]} > > > > \stoptext > > Hello, > > I've been playing a bit with the most simple tikz examples so far, but > after I saw this example I got an impression that ConTeXt users might > also want to see syntax like > > \starttikzpicture[optional options]{name} > ... > \stoptikzpicture > > \usetikzpicture{name} > > in addition to the existing one, which would then be equivalent to > syntax of including metapost graphics. There are dozens of other > \start[whatever] commands defined in the module, but I have no idea > what all of them do. Perhaps \startpgfpicture might be another command > worth considering, but I have no idea about the rest. Maybe commands along the line of metapost (so that everything is easier to remeber) \startreusablePGFgraphic \startusablePGFgraphic \startPGFcode \startstaticPGFfigure ;) and \usePGFgraphic, \reusePGFgraphic, etc. For proper integration, there should also be a mechanism to pass \overlayheight and \overlaywidth to the pgfpicture, so that the pgfpicture can use it. I am just curious, does everyone use pgf for standalone graphic or has someone also tried to use it with \framed[background=...], which works for the most simple cases. Aditya