From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73892 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Setting structureuservariable Date: Mon, 16 Jan 2012 13:22:02 +0100 Message-ID: <858758C4-D471-4767-B693-C005D3D4EF0A@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326716537 13759 80.91.229.12 (16 Jan 2012 12:22:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 12:22:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 16 13:22:13 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 1RmlZk-0002Rp-Bm for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jan 2012 13:22:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B212CB1F0; Mon, 16 Jan 2012 13:22:12 +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 HDq-4HpVFml1; Mon, 16 Jan 2012 13:22:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85760CB1EA; Mon, 16 Jan 2012 13:22:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9C35BCB1EA for ; Mon, 16 Jan 2012 13:22:07 +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 yrPcfRETzyLo for ; Mon, 16 Jan 2012 13:22:05 +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 79E27CB1E7 for ; Mon, 16 Jan 2012 13:22:05 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0GCM4LD009749 for ; Mon, 16 Jan 2012 13:22:04 +0100 Original-Received: by eekc13 with SMTP id c13so441652eek.14 for ; Mon, 16 Jan 2012 04:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=LJGEhvIHBgqW3WrM9W74RQVPUKs4owcJlkboKmGuzl4=; b=G9KUQxiTl9ILQwu7RWtJlXXd4PpUOQlsyOM2qzjqEH5CsJVsFThB6bSNFFbE/dbu9x cvFybfbvVKl1DC0oENLG3wM7oUhxFSXI8iqEANl3OzONk+MmZ/RZxVEtsToKADCi/+3O CPP8IbkmVKcCHeCWmT9U9F8MrHytttkHKV3xs= Original-Received: by 10.213.7.213 with SMTP id e21mr1838660ebe.146.1326716524392; Mon, 16 Jan 2012 04:22:04 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFA49F.dip.t-dialin.net. [87.175.164.159]) by mx.google.com with ESMTPS id 15sm71690891eeu.1.2012.01.16.04.22.02 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 04:22:03 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.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: 0cGmcm4N6 - 9bac43262097 - 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:73892 Archived-At: Am 16.01.2012 um 12:39 schrieb Felix Ingram: > 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? You can use either \chapter or \startchapter nut the second form is better when you want to set different texts for the heading and the table of contents or the headers, bookmarks etc. > 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=3DMy Example Chapter] > = > instead of: > = > \startchapter[chap:examplechapter][title=3DMy Example Chapter] > = > can I set the reference for them? (I will have some sections that > could be usefully auto-referenced). When you use \startchapter references are set with \startchapter[reference= =3D=85,title=3D=85]. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________