From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86021 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: reference to structureuservariable Date: Mon, 20 Jan 2014 10:47:24 +0100 Message-ID: References: <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: multipart/mixed; boundary="===============1725546075==" X-Trace: ger.gmane.org 1390211249 25126 80.91.229.3 (20 Jan 2014 09:47:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 09:47:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 20 10:47:37 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 1W5BSC-00088M-CU for gctc-ntg-context-518@m.gmane.org; Mon, 20 Jan 2014 10:47:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ABBC6101EB; Mon, 20 Jan 2014 10:47:35 +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 iTT3FliBP5lm; Mon, 20 Jan 2014 10:47:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 209D7101E2; Mon, 20 Jan 2014 10:47:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47A15101E2 for ; Mon, 20 Jan 2014 10:47:33 +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 8BuzWJz49P9v for ; Mon, 20 Jan 2014 10:47:31 +0100 (CET) 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 D0C3C101E1 for ; Mon, 20 Jan 2014 10:47:31 +0100 (CET) Original-Received: from mail-bk0-x22f.google.com (mail-bk0-x22f.google.com [IPv6:2a00:1450:4008:c01::22f]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0K9lUYv016658 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 20 Jan 2014 10:47:31 +0100 Original-Received: by mail-bk0-f47.google.com with SMTP id d7so1282125bkh.6 for ; Mon, 20 Jan 2014 01:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type; bh=46dIpqnFzgk0f/WzwtJr13pwVVTAWRNzPqaWpRL/je8=; b=Q7V1MoyklaCBJ104HYfwOME+B83pDWEXODhAqWjpE6VZdz5q/pPnuTR7311QLEko+I gU+9IaMLgDKSzZxKwhcgcSYu4s2O5NNeFaj5Od48Q330RX63L2HuTpQ7lU3ZY2jCGTNi BFp+Et0THM2dOPg2Qtrcpf/Qp5lg6iLQdHGqPTuczdZtv3LAxYFPKvJv1r5hJN0Ry5oz be931Uq9Qve7639WTNsFRt83e6aDSRZ1v7c/vRVdv+4r/ChjJll8+i5Hm7tcJtAO/DXz 2CwEViCni9ojA7BfSRzSigslNSWGfTQ3OKdypzPItETY5GNS+KpVZ4sVBI/oAOe3pobX jEew== X-Received: by 10.204.235.9 with SMTP id ke9mr5658227bkb.9.1390211250506; Mon, 20 Jan 2014 01:47:30 -0800 (PST) Original-Received: from keima.localdomain (x2f24dd0.dyn.telefonica.de. [2.242.77.208]) by mx.google.com with ESMTPSA id it12sm592594bkb.12.2014.01.20.01.47.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 01:47:30 -0800 (PST) In-Reply-To: <87ha8zvvpm.fsf@micropit.couberia.selfip.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Lg9Lubq - 5baef59aef46 - 20140120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:86021 Archived-At: --===============1725546075== Content-Type: multipart/alternative; boundary="52dcf0ac_66334873_215e" --52dcf0ac_66334873_215e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Peter, =20 you can use =5Cnamedstructureuservariable=7Bsection=7D=7Bfoo=7D to access= the foo variable of the section. Wolfgang =20 On 20.01.2014 10:39:01, Peter M=C3=BCnster wrote: Hi,= How can I read a structureuservariable at the end of the section, when there are subsections=3F Example: --8<---------------cut here---------------start------------->8--- =5Cstarttext =5Cstartsection=5Btitle=3Dsec=5D=5Bfoo=3Dbar=5D % =5Cedef=5Cmy=46oo=7B=5Cstructureuservariable=7Bfoo=7D=7D % workaround =5Cstartsubsection=5Btitle=3Dsub 1=5D sub 1 =5Cstopsubsection =5Cstartsubsection=5Btitle=3Dsub 2=5D sub 2 =5Cstopsubsection =5Cpar foo is =5Cstructureuservariable=7Bfoo=7D. % foo is =5Cmy=46oo. % workaround =5Cstopsection =5Cstartsection=5Btitle=3Dsec=5D=5Bfoo=3Dbar=5D no subsections...=5Cpar foo is =5Cstructureuservariable=7Bfoo=7D. =5Cstopsection =5Cstoptext --8<---------------cut here---------------end--------------->8--- Is there a clean way or do I need to use something like the above workaround=3F TIA for any hints, -- Peter =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F If your question is of interest to others as well, please add an entry to= the Wiki=21 maillist : ntg-context=40ntg.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 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F --52dcf0ac_66334873_215e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Peter,

you can use =5Cnamedstructureuservariable=7B= section=7D=7Bfoo=7D to access the foo variable of the section.

Wolfga= ng


On 20.01.2014 10:39:01, P= eter M=C3=BCnster <pmlists=40free.fr> wrote:
Hi,

How can I read a structureuservariable at the end of the section, whe= n
there are subsections=3F Example:

--8<---------------cut here---------------start------------->8-= --
=5Cstarttext
=5Cstartsection=5Btitle=3Dsec=5D=5Bfoo=3Dbar=5D
% =5Cedef=5Cmy=46oo=7B=5Cstructureuservariable=7Bfoo=7D=7D % workaro= und
=5Cstartsubsection=5Btitle=3Dsub 1=5D
sub 1
=5Cstopsubsection
=5Cstartsubsection=5Btitle=3Dsub 2=5D
sub 2
=5Cstopsubsection
=5Cpar
foo is =5Cstructureuservariable=7Bfoo=7D.
% foo is =5Cmy=46oo. % workaround
=5Cstopsection
=5Cstartsection=5Btitle=3Dsec=5D=5Bfoo=3Dbar=5D
no subsections...=5Cpar
foo is =5Cstructureuservariable=7Bfoo=7D.
=5Cstopsection
=5Cstoptext
--8<---------------cut here---------------end--------------->8-= --

Is there a clean way or do I need to use something like the above
workaround=3F

TIA for any hints,
-- =20
Peter
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
If your question is of interest to others as well, please add an entr= y to the Wiki=21

maillist : ntg-context=40ntg.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
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
--52dcf0ac_66334873_215e-- --===============1725546075== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1725546075==--