From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77820 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Draft version of document Date: Wed, 8 Aug 2012 19:48:13 +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 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344448105 9792 80.91.229.3 (8 Aug 2012 17:48:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2012 17:48:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 08 19:48:25 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 1SzAMq-00072T-VA for gctc-ntg-context-518@m.gmane.org; Wed, 08 Aug 2012 19:48:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B88BF101EF; Wed, 8 Aug 2012 19:48:23 +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 9kKLH1DP6aUw; Wed, 8 Aug 2012 19:48:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8B2B0101E2; Wed, 8 Aug 2012 19:48:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 81B4D101E2 for ; Wed, 8 Aug 2012 19:48:19 +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 eT0acfM-Ijk9 for ; Wed, 8 Aug 2012 19:48:16 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id C416C101DF for ; Wed, 8 Aug 2012 19:48:16 +0200 (CEST) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q78HmFCL017918 for ; Wed, 8 Aug 2012 19:48:15 +0200 Original-Received: by weys10 with SMTP id s10so874963wey.14 for ; Wed, 08 Aug 2012 10:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=js8TyjQabdQRIyJ69RcyYYokFIOLWikwMx/5VyyzxLo=; b=ZPiyvat/XlDUIytY1RxnpQHEDVBc0Zx9yJHnVONPIxlXIcMajIZRj5bxJ3TnxYyn4w zOGlHzFvd/3Nz97Ejn4HrZMd8dk1998CWJRxU3E7072xKf0f6HI4x97fHg+N7w62qolS /XZBmcyQUwzjqfwsCA97457J3tvbfXUdYUPeTRRTCzJ6EJ+AUsThEcE6RvVzP8VCyITB Ou4xx8Z5LV7N1FQvwo+xexWu14VCGObCB/sQDiPO4a3zdHOn2ZIrg5UczHZrGvaetQGK I3mk4kzB5LTRS9jVVvpHXEXnIdcxtYqHgHMRQStlLiVjgaMjB4J3xTp/Z6iks79pPRxz dboA== Original-Received: by 10.216.137.76 with SMTP id x54mr9145268wei.189.1344448095394; Wed, 08 Aug 2012 10:48:15 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB114.dip.t-dialin.net. [87.175.177.20]) by mx.google.com with ESMTPS id q4sm6258314wix.9.2012.08.08.10.48.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Aug 2012 10:48:14 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1485) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; 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: 06HIhMfEH - a83e485b5a17 - 20120808 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:77820 Archived-At: Am 08.08.2012 um 17:04 schrieb Sietse Brouwer : > 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. Yes, the user variables are only stored in the utility file and can be used when you print the list entries. > 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 The arguments you give with the first argument are processed by context before they are written to the utility file and only three values can be used when you create your own list layout, the user variables on the other side are written to the utility file without any modification and whatever you write here can be used in the list. 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 ___________________________________________________________________________________