From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73887 Path: news.gmane.org!not-for-mail From: Felix Ingram Newsgroups: gmane.comp.tex.context Subject: Setting structureuservariable Date: Mon, 16 Jan 2012 11:39:45 +0000 Message-ID: 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: dough.gmane.org 1326714005 28331 80.91.229.12 (16 Jan 2012 11:40:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 11:40:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 16 12:40:01 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rmkuu-0000mT-R6 for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jan 2012 12:40:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4713CB1F1; Mon, 16 Jan 2012 12:39:57 +0100 (CET) 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 5r9l7DFtVNJo; Mon, 16 Jan 2012 12:39:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 45ED1CB1ED; Mon, 16 Jan 2012 12:39:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68654CB1ED for ; Mon, 16 Jan 2012 12:39:51 +0100 (CET) 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 z1t2PbuLU0O5 for ; Mon, 16 Jan 2012 12:39:46 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id CBBB0CB1EA for ; Mon, 16 Jan 2012 12:39:46 +0100 (CET) Original-Received: from mail-vw0-f41.google.com (mail-vw0-f41.google.com [209.85.212.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0GBdjGd012434 for ; Mon, 16 Jan 2012 12:39:46 +0100 Original-Received: by vbbfa15 with SMTP id fa15so996824vbb.14 for ; Mon, 16 Jan 2012 03:39:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=wLka94vzQ0r1yaQKDG44/ot83bG0JX0ZuURTbxzz2Ww=; b=Nk/4w6mCwmXkY/csz2bN1gZDm/wQHhTVVxxuv6zcw/AmG9LM7uXSugHy9/kh2DxqqA SPPyYPybFr+Ot9VfnGRh+yiB+tLORcYogdeUNsAihCjr0rw4w3O2Se28GkDYM4KiN5GR gAbCYVF2GQ7kCrQ+Pr5igVasIeUqo9XDb1gnU= Original-Received: by 10.52.95.13 with SMTP id dg13mr5914695vdb.124.1326713985217; Mon, 16 Jan 2012 03:39:45 -0800 (PST) Original-Received: by 10.52.184.193 with HTTP; Mon, 16 Jan 2012 03:39:45 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.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: 0cGmbDJmj - 038a4b4d9f6d - 20120116 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:73887 Archived-At: Hello all, I've discovered the magic of structureuservariabl and have therefore converted all my headings to use the start/stop syntax. It's raised a few quick questions though: 1. Is \startchapter \stopchapter etc the "proper way" to do things from now on? Or is it really just up to the user? 2. Is there a way to provide a default value for a structureuservariable? I'd like to set a reference number based on a global counter if the user doesn't supply their own. 3. In a similar vein - is it possible to define a reference for a section if the user doesn't provide one. E.g. if they provide \startchapter[title=My Example Chapter] instead of: \startchapter[chap:examplechapter][title=My Example Chapter] can I set the reference for them? (I will have some sections that could be usefully auto-referenced). Many thanks in advance, Felix ___________________________________________________________________________________ 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 ___________________________________________________________________________________