From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86020 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: reference to structureuservariable Date: Mon, 20 Jan 2014 10:39:01 +0100 Message-ID: <87ha8zvvpm.fsf@micropit.couberia.selfip.net> 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: ger.gmane.org 1390210747 19294 80.91.229.3 (20 Jan 2014 09:39:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 09:39:07 +0000 (UTC) To: ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 20 10:39:15 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5BK6-0004oU-Pc for gctc-ntg-context-518@m.gmane.org; Mon, 20 Jan 2014 10:39:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 50CEB101EA; Mon, 20 Jan 2014 10:39:14 +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 nd87Yx2eZjp4; Mon, 20 Jan 2014 10:39:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C5AE7101E2; Mon, 20 Jan 2014 10:39:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56AC3101E2 for ; Mon, 20 Jan 2014 10:39:11 +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 G2LteI5COKXI for ; Mon, 20 Jan 2014 10:39:10 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 5C1DE101E1 for ; Mon, 20 Jan 2014 10:39:09 +0100 (CET) Original-Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0K9pYX0015263 for ; Mon, 20 Jan 2014 10:51:37 +0100 Original-Received: from micropit.couberia.selfip.net ([2.12.75.144]) by mwinf5d64 with ME id G9f61n00R36nape039f6WS; Mon, 20 Jan 2014 10:39:07 +0100 Original-Received: by micropit.couberia.selfip.net (Postfix, from userid 1000) id 484B7A60CF4; Mon, 20 Jan 2014 10:39:01 +0100 (CET) Mail-Followup-To: ConTeXt users User-Agent: Gnus/5.130008 (=?utf-8?Q?=E7=9C=9F?= Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-Bayes-Prob: 0.0005 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.128; country=FR; latitude=48.8600; longitude=2.3500; http://maps.google.com/maps?q=48.8600,2.3500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Lg9PzH1 - c639ab3b6882 - 20140120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:86020 Archived-At: Hi, How can I read a structureuservariable at the end of the section, when there are subsections? Example: --8<---------------cut here---------------start------------->8--- \starttext \startsection[title=sec][foo=bar] % \edef\myFoo{\structureuservariable{foo}} % workaround \startsubsection[title=sub 1] sub 1 \stopsubsection \startsubsection[title=sub 2] sub 2 \stopsubsection \par foo is \structureuservariable{foo}. % foo is \myFoo. % workaround \stopsection \startsection[title=sec][foo=bar] no subsections...\par foo is \structureuservariable{foo}. \stopsection \stoptext --8<---------------cut here---------------end--------------->8--- Is there a clean way or do I need to use something like the above workaround? TIA for any hints, -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________