From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77817 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: Draft version of document Date: Wed, 8 Aug 2012 17:04:16 +0200 Message-ID: References: <501D04F7.7060407@mun.ca> <50212925.3050900@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344438286 22287 80.91.229.3 (8 Aug 2012 15:04:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2012 15:04:46 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 08 17:04:47 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 1Sz7oR-0007By-9k for gctc-ntg-context-518@m.gmane.org; Wed, 08 Aug 2012 17:04:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7044C101EC; Wed, 8 Aug 2012 17:04:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9Mv4LhB9woSq; Wed, 8 Aug 2012 17:04:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D8E66101DF; Wed, 8 Aug 2012 17:04:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE568101DF for ; Wed, 8 Aug 2012 17:04:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cvm1D7aLZV27 for ; Wed, 8 Aug 2012 17:04:39 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 32266101DD for ; Wed, 8 Aug 2012 17:04:39 +0200 (CEST) Original-Received: from mail-yw0-f41.google.com (mail-yw0-f41.google.com [209.85.213.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q78F0dFM010013 for ; Wed, 8 Aug 2012 17:00:39 +0200 Original-Received: by yhr47 with SMTP id 47so1067207yhr.14 for ; Wed, 08 Aug 2012 08:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=PxMXhu8hug3Hd7ze8tHoeyb6g+z5iEl3KCkJWOPTggc=; b=GgNUXtx7pyRS5spc9gO1jrH6E6Iu/q10ZOIHWtmpGYJc39UTYmspXxjrId5qvYAGFg VpmwG63fY3eiFUdinoXxhW3D6X2yLZ7nREIirk+E7ixrrZKittKi6i723UIr68OdB9vY 9pX7VHtSlLWVSORyhFEnR+xRd8ld16utbIVi6/1yUELWFSBEoGjjKgyxGe9KVjUnS2Gm N+okjbiXjHxfN4SvfRH6iCoQsVc4u8LwVkRkCkR7dRqT2UMyp8dMq87Wvx2zIIbXa+EJ C3rBJDAV6OV5T9WpGPmNF4MTwKCVuNtJ5yVBPxSUIw6WjxykDKmabDx3O5002G/pY15k bF8Q== Original-Received: by 10.50.186.131 with SMTP id fk3mr1296249igc.31.1344438276605; Wed, 08 Aug 2012 08:04:36 -0700 (PDT) Original-Received: by 10.64.5.234 with HTTP; Wed, 8 Aug 2012 08:04:16 -0700 (PDT) In-Reply-To: <50212925.3050900@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WHIf0DiQ - a0297b2589bb - 20120808 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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 Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77817 Archived-At: @Roger: I just realised I called you Robert. Sorry about that, moment of inattention. Hi Hans, > Actually, this is something that should be doable with user data weren't it > that for floats that's not yet available. So I've added it to the core (will > be in next upload) ... Ah, nifty; and fantastically quick, as always. I've not heard of ConTeXt's "user data" feature before. Where can I find more on that? Is there a list e-mail I should search for? I'm trying to work out how to describe the new feature, so I can add that to the documentation. I think I see two features, but I'm not sure. Can you tell me if the below is correct? New feature 1: previously we could only do \startplacefigure[reference=fig:mill, title={A Mill}] or \startsection[reference=sec:sheep, title={The Sheep}] but now we can do \startplacefigure[reference=fig:mill, title={A Mill}][resource=mill] or \startsection[reference=sec:sheep, title={The Sheep}][mykey=myvalue] Nothing is done with the parameters in the second key=value list, but they are stored as part of the object when the object is written to its figures/sections/whatever list; and there they can be used in constructing the Table of figures/contents/whatever. -------- New feature 2: the command \rawstructurelistuservariable{#1} . This command can be used by custom list entry macros like \mylistentrymacro below: \setuplist[somelist][alternative=command, command=\mylistentrymacro] The command gets a property from the current list entry object, like so: \rawstructurelistuservariable{resource} %--> mill Question: does this work, too, or can we only access values in the *second* key=value list? \rawstructurelistuservariable{reference} %--> fig:mill Cheers, Sietse ___________________________________________________________________________________ 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 ___________________________________________________________________________________