From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38100 Path: news.gmane.org!not-for-mail From: Roger Mason Newsgroups: gmane.comp.tex.context Subject: Re: defining a command Date: Tue, 18 Dec 2007 09:24:26 -0330 Message-ID: References: <115224fb0712170802k202e48cbmfa9bf7ab6e478813@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: ger.gmane.org 1197982605 32259 80.91.229.12 (18 Dec 2007 12:56:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 12:56:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 18 13:56:57 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 1J4c0G-0003lE-Sh for gctc-ntg-context-518@m.gmane.org; Tue, 18 Dec 2007 13:56:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E92FC1FBA8; Tue, 18 Dec 2007 13:56:15 +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 26192-03-3; Tue, 18 Dec 2007 13:55:58 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 35BFB1FBA6; Tue, 18 Dec 2007 13:55:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B4211FB82 for ; Tue, 18 Dec 2007 13:55:55 +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 25512-04 for ; Tue, 18 Dec 2007 13:55:43 +0100 (CET) Original-Received: from fitzgerald.ucs.mun.ca (mx5.mun.ca [134.153.232.57]) by ronja.ntg.nl (Postfix) with ESMTP id 702B91FBA8 for ; Tue, 18 Dec 2007 13:55:42 +0100 (CET) Original-Received: from minnie.esd.mun.ca (minnie.esd.mun.ca [134.153.36.8]) by fitzgerald.ucs.mun.ca (8.13.1/8.13.1) with ESMTP id lBICtfHO025476 for ; Tue, 18 Dec 2007 09:25:41 -0330 Original-Received: from minnie.esd.mun.ca (minnie.esd.mun.ca [134.153.36.8]) by minnie.esd.mun.ca (8.14.0/8.13.3) with ESMTP id lBICsQ3l017130 for ; Tue, 18 Dec 2007 09:24:26 -0330 In-Reply-To: <115224fb0712170802k202e48cbmfa9bf7ab6e478813@mail.gmail.com> (Wolfgang Schuster's message of "Mon\, 17 Dec 2007 17\:02\:06 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.57 on 134.153.232.57 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:38100 Archived-At: Hello Wolfgang, "Wolfgang Schuster" writes: > \define[3]\oneplot > {\placefigure[here][#3]{\bfc#2}{\scale[width=10.5cm]{#1}}} > > \starttext > \oneplot{\blackrule[width=1cm,height=1cm]}{Blackrule}{plot:blackrule} > See at \in{Plot}[plot:blackrule]. > \stoptext > > Alternative solution with a real ConTeXt definition: > > \definefloat[plot][plots][figure] > \setupfloat[plot][command={\scale[width=5cm]}] > \starttext > \placefigure{Blackrule}{\blackrule[width=1cm,height=1cm]} > \placeplot{Blackrule}{{\blackrule[width=1cm,height=1cm]}} > \stoptext Both methods work fine. Given that I'm using Context then I will use the Contextish way of doing things. Many thanks for you help, Roger ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________