From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94442 Path: news.gmane.org!not-for-mail From: Michael Guravage Newsgroups: gmane.comp.tex.context Subject: Assigning a variable to the list argument in \setupsection Date: Thu, 14 Apr 2016 09:46:34 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2851645690660220579==" X-Trace: ger.gmane.org 1460620030 2259 80.91.229.3 (14 Apr 2016 07:47:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 07:47:10 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 14 09:46:59 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aqbzO-0007PO-Uy for gctc-ntg-context-518@m.gmane.org; Thu, 14 Apr 2016 09:46:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F1B5EA573; Thu, 14 Apr 2016 09:46:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OJ2OEYjOGn13; Thu, 14 Apr 2016 09:46:47 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 4742AA575; Thu, 14 Apr 2016 09:46:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F3C99A571 for ; Thu, 14 Apr 2016 09:46:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cMWJd9EMTwJk for ; Thu, 14 Apr 2016 09:46:44 +0200 (CEST) Original-Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A2DADA56F for ; Thu, 14 Apr 2016 09:46:34 +0200 (CEST) Original-Received: by mail-wm0-f44.google.com with SMTP id u206so112605772wme.1 for ; Thu, 14 Apr 2016 00:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=ap57phLwavCoAnxjGIDM9bqzjuK1kM3R7PsbqzGBGB4=; b=Fij4mUth08AZhNsq5c8Xa28GrvrKUA7KSqTJDlsL+ZKr7F4BRUOEDXxL+8rErPrMUd DutohVnrnftRQ4uIW9LaIvPqVXYyAw/poE13HF8SaM/8YwRmEABvc5Ds/tYvi6bZCcNW AIn6G/59Gg4wEO7tCxoSQCNR3FR5JO2Mf41Vj7Hzs8L3M+Z+l5HG9nSyTfK++EblYNNY qXwruIYtdUP7ZsYLsEhWdazR+yH0Ni8uj3vMTy5rCWeZ8kwei+NhLiIJI1hUHGsGpV9w aH3RDNNXKYzHsjmLetPVRsww8ijyIyvBdx1sBBKV+BujibbYnTBEiHS/iqANfjpUB/KW EsyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=ap57phLwavCoAnxjGIDM9bqzjuK1kM3R7PsbqzGBGB4=; b=NjIBJhcvKk2E7kroMkA2aEhCPSZB24BdNKkphpPHBNl/3Eai1qfEIvUHz8GPSRCbkl NIIJeXH8DnMogbqcyUushZ1/PJiVqPuMmxJhTr27SJxpBv4rYSVwqDR6qAoJWjVYB3Qw L+iPqoxGH9jLVPVPtXbOYcY5JmPTd37/SBeXwQIBzdHtBDMDYOw7Y/M3ChCPpci75QK5 IqlG0Hz0mJHXwSKK48VleDzESY2xBc9SS+WdDUYoDWuXUNhCqznCXo0RWxXE0frLp7DN Q8vWv798+bLPx7aIiZfb58YA23rwlA/acpNzV9FmwEi3tYQC1JZZ0OSfUZKrR1v+MXXn /RKg== X-Gm-Message-State: AOPr4FWXNzFcN1x2mrW4vqYaRRzZ/Uvptzrhu6UEvCkjjW6ZBAVLCksmox30+eIuMhCo8KEJ2cAAOfiqwzo6jQ== X-Received: by 10.28.145.205 with SMTP id t196mr8740005wmd.60.1460619994130; Thu, 14 Apr 2016 00:46:34 -0700 (PDT) Original-Received: by 10.28.215.199 with HTTP; Thu, 14 Apr 2016 00:46:34 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:94442 Archived-At: --===============2851645690660220579== Content-Type: multipart/alternative; boundary=001a1145a912e6f56a05306d1716 --001a1145a912e6f56a05306d1716 Content-Type: text/plain; charset=UTF-8 Greetings, I would like to use a variable for the value of the list argument in, e.g., the \startsection command. If you compile my little example you will see that the first 'literal' assignment works, while the second 'variable' assignment does not. What am I missing here? Cheers, Michael \starttext \placecontent \setvariables[TOC][list=Second Section] \startsection [title={First}, list={First Section}] This is the first section. \stopsection \startsection [title={Second}, list={\getvariable{TOC}{list}}] This is the \getvariable{TOC}{list} \stopsection \stoptext --001a1145a912e6f56a05306d1716 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Greetings,
<= div>
I would like to use a variable for the value of the list= argument in, e.g., the \startsection command. If you compile my little exa= mple you will see that the first 'literal' assignment works, while = the second 'variable' assignment does not. What am I missing here?<= /div>

Cheers,

Michael


\starttext

=C2= =A0 \placecontent

=C2=A0 \setvariables[TOC][list= =3DSecond Section]

=C2=A0 \startsection [title=3D{= First}, list=3D{First Section}]
=C2=A0 =C2=A0 This is the first s= ection.
=C2=A0 \stopsection

=C2=A0 \star= tsection [title=3D{Second}, list=3D{\getvariable{TOC}{list}}]
=C2= =A0 =C2=A0 This is the \getvariable{TOC}{list}
=C2=A0 \stopsectio= n

\stoptext
--001a1145a912e6f56a05306d1716-- --===============2851645690660220579== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2851645690660220579==--