From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95165 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: reading the value of a counter (footnote counter, i.e.) from lua Date: Wed, 15 Jun 2016 17:36:33 +0200 Message-ID: <57617601.9020002@gmail.com> References: <10549379.98V87NrrzP@max> <0a545f3e-28e8-8523-69d2-872c851ba926@wxs.nl> <3289608.4fxcSN8S35@max> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5738001133584285414==" X-Trace: ger.gmane.org 1466005077 11713 80.91.229.3 (15 Jun 2016 15:37:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2016 15:37:57 +0000 (UTC) To: massifr@fastwebnet.it, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 15 17:37:39 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 1bDCss-000471-Bt for gctc-ntg-context-518@m.gmane.org; Wed, 15 Jun 2016 17:37:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E117DF597; Wed, 15 Jun 2016 17:36:49 +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 3NfcJ4dBTAey; Wed, 15 Jun 2016 17:36:49 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3F184F58B; Wed, 15 Jun 2016 17:36:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85ED7F578 for ; Wed, 15 Jun 2016 17:36:48 +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 lHk0qr3P3zA9 for ; Wed, 15 Jun 2016 17:36:47 +0200 (CEST) Original-Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) (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 7D122F570 for ; Wed, 15 Jun 2016 17:36:37 +0200 (CEST) Original-Received: by mail-lf0-f43.google.com with SMTP id f6so17618918lfg.0 for ; Wed, 15 Jun 2016 08:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=P+gfpnSgzLG2dtHQ3bqobrI6zpAAzKw8W3hV+A+HrM8=; b=MXBN1BX3vBbCC/Dz5cqDWkTe7KY77GBQSONpeBpUHXHYjGgYN9CQPQtYqv3Nq5Tc35 Trk++Dd4Z1+XQlbTlS/29s4OvTylMK2w8Sg33bjfZcKPY4w1f667yF7q13zeadjGS8cH uq0V2tXI6KYlQffR0fVWRSUH2mRuJblxYLbtjMgxKprYLmD2eZPddfG56ZvMKef/dcrz QdNQ0CmAei9qEYPouzj8nPnuV9m0pmUlmUKCCLypavZrDXs+u8NW1OSNe3JBjHrzquVX SjmyHNTZkYfNtjwikSx6xUYd7Tb9uK3HRUHaWxxITdLa11c5dT+c9e2ckHKJlHnGRaT7 qxJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=P+gfpnSgzLG2dtHQ3bqobrI6zpAAzKw8W3hV+A+HrM8=; b=JIYSVvDts/aEUG7onpeOJK74z58IpxkcixG9rxo7MSRkxwGfOmM+bWnr53mYqpPZDO qgZKgj//S70PlN2mFB+bKmjBFsgbpkvjbSMpwj+ycuts+0JNAWU6KDr/LD3JDqJr+yii 8TiO9PhR4lOnrEgAt+hXsfo3XpoVvdSg7uBkoZC5NpxklIkI/xy0P8+sxGn9oxyqG5/B Fi5Mj8pWhWFOnDMbS23H81ZbqVXIWrK1EaqzIoUf3rKBEN7HcDgPptBSwipXuUiLnMGX f41sJgqEqByB4yjsD2QooMOL7qf/kR/nuYlG4oYyk1VGqkNcdUax5z2tfgZg2P/BUxwF Wb0A== X-Gm-Message-State: ALyK8tIVSUELRjB9/n47oruWnsc3Dfv+fEipgVcl/JaCm4bXU6rnDAWkNHv0t5zCSzaRmQ== X-Received: by 10.194.103.4 with SMTP id fs4mr13155860wjb.10.1466004996779; Wed, 15 Jun 2016 08:36:36 -0700 (PDT) Original-Received: from keima.localdomain (x2f2f967.dyn.telefonica.de. [2.242.249.103]) by smtp.gmail.com with ESMTPSA id m123sm10274911wmm.1.2016.06.15.08.36.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Jun 2016 08:36:36 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <3289608.4fxcSN8S35@max> 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:95165 Archived-At: This is a multi-part message in MIME format. --===============5738001133584285414== Content-Type: multipart/alternative; boundary="------------090804020108040400020707" This is a multi-part message in MIME format. --------------090804020108040400020707 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > massifr@fastwebnet.it > 15. Juni 2016 um 17:33 > > Thank you, Hans. > > I searched for "currentvalue" in the source and now I'm looking at > "strc-num.lua". > Is the second argument of currentvalue the level of a multi-level counter? > I suppose it is always 1 in footnotes, isn't it? No, you can also use 2 for \subfootnote and 3 for \subsubfootnote. Wolfgang --------------090804020108040400020707 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
15. Juni 2016 um 17:33

Thank you, Hans.

I searched for "currentvalue" in the source and now I'm looking at "strc-num.lua".
Is the second argument of currentvalue the level of a multi-level counter?
I suppose it is always 1 in footnotes, isn't it?
No, you can also use 2 for \subfootnote and 3 for \subsubfootnote.

Wolfgang
--------------090804020108040400020707-- --===============5738001133584285414== 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= --===============5738001133584285414==--