From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94448 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 11:12:00 +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="===============3759411498792882598==" X-Trace: ger.gmane.org 1460625240 21148 80.91.229.3 (14 Apr 2016 09:14:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 09:14:00 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 14 11:13:47 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 1aqdLP-0007nX-DN for gctc-ntg-context-518@m.gmane.org; Thu, 14 Apr 2016 11:13:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7A4D2A5FC; Thu, 14 Apr 2016 11:12:18 +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 qhB7d2jDiXT2; Thu, 14 Apr 2016 11:12:13 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 36637A450; Thu, 14 Apr 2016 11:12:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D468AA43C for ; Thu, 14 Apr 2016 11:12:11 +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 p16NcsXxyJyk for ; Thu, 14 Apr 2016 11:12:11 +0200 (CEST) Original-Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) (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 4953EA431 for ; Thu, 14 Apr 2016 11:12:01 +0200 (CEST) Original-Received: by mail-lf0-f45.google.com with SMTP id e190so101393840lfe.0 for ; Thu, 14 Apr 2016 02:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=literatesolutions-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to; bh=IRHgHLh/xrDCcpcEmE4HqaEkEkPqVFgSylJcapvIjkg=; b=2BqA3nMcNks3+xrly+KRSWKs4svBfLWd56psuI43RSjD5TqpFkdwOIpattUsOzpKAj TZGdG04HpPB0GC7NPI4FpLiEY8b7iuS3zKGk92S10kdFTW5lMhV7snqCAz4Lz8SWi6NT eWfGMIpFdHMELMjAwkZ8T0xLKmEpgMuCL0xx80+WKl31Hjtw72c87ISN03wFjDLfbN5g LkbebIa2VAII/SKaciaQdU2O7TmRw7I+eVCmJM0UN0aKlqInzAOg9mpeAzKWzVTBwI/p FMro5V2/0apiBP59kAmNq3hvBNuU9SmtgFTZWxw7cr2wXGqu+aSGLZh0t2j0TuRrTKAg KB5A== 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=IRHgHLh/xrDCcpcEmE4HqaEkEkPqVFgSylJcapvIjkg=; b=JB8sY0Tk5aN05eUmm849vkFcUIloUas+Faux6u51+T/L//FIigdVnJbEIRFGyeA0MK C27f+fC9CZopThnwJqI6arfIR2BY/zCr6HqSWRhEplvU7hEAYYt3GxC3GLI797oA6NS7 fLQkimrpxJ008iKEZZ/wTAzPW1FuriHuA5Bd6RgScNbXDU9HaRncRLr/Sr+k3hjS0kHa a2ofCMSdhBUY+VrhaI7DeVHk1kiU+vjxK013tb/IAn9O5wbmnxkChP8U/GB2JsUMqXzB QU73uFhowqAUyJ7WVbx4ZP0loetW/gLMddp1VlYZWA7cSe9s0iNcgzB0Fed2QuvUFeLs zi7w== X-Gm-Message-State: AOPr4FUUxhs9GWHinnZCb+HCxtfmEzqQuls3mDC4I2K1hMgLRHmIuA4k3VRwpsRQBXqvwrDhfjvZV3ODEyIhagpr X-Received: by 10.112.26.172 with SMTP id m12mr6058935lbg.44.1460625120532; Thu, 14 Apr 2016 02:12:00 -0700 (PDT) Original-Received: by 10.25.160.68 with HTTP; Thu, 14 Apr 2016 02:12:00 -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:94448 Archived-At: --===============3759411498792882598== Content-Type: multipart/alternative; boundary=001a1133730675b32c05306e49c1 --001a1133730675b32c05306e49c1 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 --001a1133730675b32c05306e49c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Greetings,

I would lik= e to use a variable for the value of the list argument in, e.g., the \start= section command. If you compile my little example you will see that the fir= st 'literal' assignment works, while the second 'variable' = assignment does not. What am I missing here?

Cheers,

Michael
<= div style=3D"font-size:12.8px">
\starttext

=C2=A0 \placecontent

=C2=A0 \setvariables[TO= C][list=3DSecond Section]

=C2=A0 \startsection [ti= tle=3D{First}, list=3D{First Section}]
=C2=A0 =C2=A0 This is the = first section.
=C2=A0 \stopsection

=C2= =A0 \startsection [title=3D{Second}, list=3D{\getvariable{TOC}{list}}]
=C2=A0 =C2=A0 This is the \getvariable{TOC}{list}
=C2=A0 \s= topsection

\stoptext
--001a1133730675b32c05306e49c1-- --===============3759411498792882598== 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= --===============3759411498792882598==--