From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101152 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Referencing footnotes by SECTION Date: Mon, 02 Jul 2018 08:58:44 +0200 Message-ID: <5B39CD24.6030106@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0756409447489610040==" X-Trace: blaine.gmane.org 1530514639 9752 195.159.176.226 (2 Jul 2018 06:57:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2018 06:57:19 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 02 08:57:14 2018 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZsls-0002Ow-SS for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jul 2018 08:57:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F3D823BD54; Mon, 2 Jul 2018 08:59:00 +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 xTrpkA4ArPf3; Mon, 2 Jul 2018 08:59:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 363D33BD57; Mon, 2 Jul 2018 08:59:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2D3A93BD55 for ; Mon, 2 Jul 2018 08:58:59 +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 olXdWRNQK9JI for ; Mon, 2 Jul 2018 08:58:58 +0200 (CEST) Original-Received: from mail-wr0-f173.google.com (mail-wr0-f173.google.com [209.85.128.173]) (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 980423BD54 for ; Mon, 2 Jul 2018 08:58:48 +0200 (CEST) Original-Received: by mail-wr0-f173.google.com with SMTP id u7-v6so14289198wrn.12 for ; Sun, 01 Jul 2018 23:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=noedh9tlyXxzcwu/pRgbcQUl88MnyIhYwBhEKaNVcfI=; b=cU+ojis09y/Pzh1hcY/o3cDo/ujB8PKAo2D9cUoOMDIDN/ixNBr4T30UluhOdguhKd sgaUpzDvssJnKx7sN1GlB8Qc4/VB7IR+x1E5MVzdBPpKVxolHig0RBZb0u4dncL6fC1l 2RH6I/505Bx0BxxIIQ6BHwb8PrQTKctED8lutpmXgeGN41nL+2mVdHS2Gj+w5Er+l4Ol GZog57IiXjZXHYoAyoUOv7rYxtw+fk/OyZC9TlL2ZtVK8OKxQBtQTYSrMAAwajFup1I9 e5x0f1f/N2kVp544sxtSqoDKuW1Blp35OYE0Iq0gpi4b24R04c+a+NzmRYaahpHB5RPp mpRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=noedh9tlyXxzcwu/pRgbcQUl88MnyIhYwBhEKaNVcfI=; b=Ejo3xAJoibh2dmE5Km/GWWD0A+4MCaTz7MuwWMh99mPlMX5RjJ1dvIIyQoWvLv5IiA x3w8M+do6O0cNiIjC1mNapFlzIu/DNh3JetLqeKULXRstvJDmroEhlkZw4+9fOPhhTCP 2iVXm1qGM5KrqSKoBPx3T3x5Spmxa6SP4ar2f3roL78bZlT964ZzK1TWLyFtNIb2zVux Lu3IHd906fH44z6/jeLsmEHpD56GLdfDpmYh5HvtRuFJ9ls8RU/xWDx8CdE48JPLb1sG G+RALLACarVe7eY64SAD4YChNWW5UiA5rSQMCipROzIP9wlE+nS+NiJKmelcdyn+seI9 HhDg== X-Gm-Message-State: APt69E1Ohvbw8iplCeVqQiEjry3aMbhzEsHD6/ebYGbeOGQDRPIVG494 pGI29Ysnef/OcIuv89OCQr3f5Md6 X-Google-Smtp-Source: AAOMgpeomoaVak+28vw4Pf9xp+mwv5rh9dROCTyrRHN7epw09hrnGehpGstUNahX8Hwk/wFIiZvUrA== X-Received: by 2002:adf:865a:: with SMTP id 26-v6mr19489679wrw.73.1530514727681; Sun, 01 Jul 2018 23:58:47 -0700 (PDT) Original-Received: from [192.168.1.11] (x4e30597f.dyn.telefonica.de. [78.48.89.127]) by smtp.gmail.com with ESMTPSA id s9-v6sm5421988wmc.34.2018.07.01.23.58.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 23:58:46 -0700 (PDT) In-Reply-To: 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:101152 Archived-At: This is a multi-part message in MIME format. --===============0756409447489610040== Content-Type: multipart/alternative; boundary="------------040703040209050304090904" This is a multi-part message in MIME format. --------------040703040209050304090904 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Idris, you can enable the display of chapter numbers with the prefix-key: \setupnotation [footnote] [prefix=yes, %prefixsegments=chapter, way=bychapter] Wolfgang > Idris Samawi Hamid ادريس سماوي حامد > 30. Juni 2018 um 23:04 > Dear gang, > > When referencing footnotes that reset each chapter, is there a way to > include the chapter information? See attached and below: > > ======= > \setuphead[chapter] [alternative=normal,conversion=R] > \setuphead[subsection][alternative=text] > \setuphead[subsection][distance=0em, > textdistance=0.7em, > sectionstopper=., > criterium=local] > > \setupnotation[footnote][way=bychapter] > > \setupreferencestructureprefix [section] [default] > [prefixstopper=\zerowidthspace] > > \setupwhitespace[big] > \starttext > > \startchapter[title={First},reference={}] > \startsubsection[title={},reference={reference1}] > \input ward > \startfootnote[footnote1] > \input ward > \stopfootnote{} > > See \in{Footnote}[footnote2]. > \stopsubsection > \startsubsection[title={},reference={reference2}] > \input ward > \stopsubsection > \stopchapter > > \startchapter[title={Second}] > \startsubsection[title={},reference={reference3}] > \input ward > \stopsubsection > \startsubsection[title={},reference={reference5}] > \input ward > \startfootnote[footnote2] > \input ward > \stopfootnote{} > > See \in{Footnote}[footnote1]. > \stopsubsection > \stopchapter > \stoptext > ======= > > If line 8 is commented - > \setupnotation[footnote][way=bychapter] > - we get what we expect. But if line 8 is activated, we get an > ambiguity: Both references give back > > "Footnote 1" > > Whereas what we would like is something like this: > > Footnote I.1 > > i.e., Chapter I, Footnote 1 - for the first footnote; and > > Footnote II.1 > > i.e., Chapter II, Footnote 1 - for the second footnote. > > Is there a straightforward way to do this? > > [[Of course, for the roman chapter numbering we also run into the > reference-numberconversionset issue of the other thread, where > > \definestructureconversionset[OLIE][n,R,n,n,n,n][n] > \setupreferencestructureprefix [section] [default] > [prefixstopper=\zerowidthspace, > numberconversionset=OLIE] > > doesn't seem to work.]] > > Thank you in advance for any guidance or pointers you can provide! > > Best wishes > Idris --------------040703040209050304090904 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
  [footnote]
  [prefix=yes,
  %prefixsegments=chapter,
   way=bychapter]

Wolfgang
Dear gang,

When referencing footnotes that reset each chapter, is there a way to include the chapter information? See attached and below:

=======
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
                       textdistance=0.7em,
                       sectionstopper=.,
                       criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
                               [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
=======

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an ambiguity: Both references give back

 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the reference-numberconversionset issue of the other thread, where

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
                               [prefixstopper=\zerowidthspace,
                                numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris

--------------040703040209050304090904-- --===============0756409447489610040== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============0756409447489610040==--