From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101156 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 15:21:19 +0200 Message-ID: <5B3A26CF.8020505@gmail.com> References: <5B39CD24.6030106@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0974016623061300877==" X-Trace: blaine.gmane.org 1530537590 720 195.159.176.226 (2 Jul 2018 13:19:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2018 13:19:50 +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 15:19:46 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 1fZyk5-0008UU-WF for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jul 2018 15:19:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CBC6D3BDF4; Mon, 2 Jul 2018 15:21:35 +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 Awk0pNPhiZ3n; Mon, 2 Jul 2018 15:21:35 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 16E7A3BDC5; Mon, 2 Jul 2018 15:21:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 113AD3BDCF for ; Mon, 2 Jul 2018 15:21:34 +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 HE3hKQO7VIeR for ; Mon, 2 Jul 2018 15:21:33 +0200 (CEST) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.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 031DC3BD7E for ; Mon, 2 Jul 2018 15:21:22 +0200 (CEST) Original-Received: by mail-wm0-f45.google.com with SMTP id v25-v6so8081255wmc.0 for ; Mon, 02 Jul 2018 06:21:22 -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=GzJtf1VPAuTOo1DLV/oGyc5ti2nHkA5IwdcRldV63VY=; b=Ox776pjaZiNX2YeBp9cuCshB/nt+RpF+dYuWVfTZFml0NCB1Lz7/j21JrUP7wr1/jO LnIYIIZB+uzHhDC3ZvPcVpWEDk7MZ+q74pBCxYqzkByUSact1lMcHnuey328CFXu4MSx 0yvKd+q5FhK7MoURGztr9wceSp3ZLe1USBjHYRafP0h4GEKxJ3n3mBIyGT/OLCh46uD8 +mHrWowitNcoPl4W+jQI2IXyFdhmbCh7kqbgtS3Q/qzYZkX7xNjDMSNzp4JGQ/C6LkjM NaHyymJljNBFReYhELfT9FO0R8YigqWQTloleT+Z1pGH8EYpvRovsKDKpmTNcIyjc4gb aehw== 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=GzJtf1VPAuTOo1DLV/oGyc5ti2nHkA5IwdcRldV63VY=; b=NOu965T2+ZxGyP2gYw6kkB6gwqc+vLhSRssnQ/VFHTw8b/ffnrSDFcEs7CLSXS4hwB D3FVVePGGyrUz54+XT/FTLNQq7wglMCzognCPcgaet+zo1odYCOL+J5DNFNofcz+SXqA /RS/TM4W6SGquAupOToe7csIaDnxeGlB9hZnatHtkpB1YdUkVcGq3mFe4kJSanFguQQW 4A50OpT50dwtIrsWPbOdrj8lVm4GO8TB+PyFtLzSFxII6Zo1dtqrjDMEzB2GXbCHvQzk 86WjHR3Vw3pXcWcn9nNsqf679l4fWu1XYE/DwNSVxkH85nuV4vsFV42TjF1nV6n8Zhuj q+VQ== X-Gm-Message-State: APt69E079Yl3LXEkE1QgXkInQ8/uWCCkGb5Q1Vvc9rRgXq1a6BJ2Mixc 0Jjny1A2cVG39BiEjlUUspnAM+Li X-Google-Smtp-Source: AAOMgpcTnJcKT8S1nYSScURvfenz2ezLYW6CimTvrqf51ZGroOwMHXqKW2tciMkJxGUZLSRx5sEAkQ== X-Received: by 2002:a1c:31c2:: with SMTP id x185-v6mr8040019wmx.1.1530537682209; Mon, 02 Jul 2018 06:21:22 -0700 (PDT) Original-Received: from [192.168.1.11] (x4e30597f.dyn.telefonica.de. [78.48.89.127]) by smtp.gmail.com with ESMTPSA id u13-v6sm8065404wri.72.2018.07.02.06.21.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 06:21:21 -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:101156 Archived-At: This is a multi-part message in MIME format. --===============0974016623061300877== Content-Type: multipart/alternative; boundary="------------070402080305090505080504" This is a multi-part message in MIME format. --------------070402080305090505080504 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > > Idris Samawi Hamid ادريس سماوي حامد > 2. Juli 2018 um 14:34 > Hi Wolfgang, > > On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster > wrote: > >> Hi Idris, >> >> you can enable the display of chapter numbers with the prefix-key: >> >> \setupnotation >> [footnote] >> [prefix=yes, >> %prefixsegments=chapter, >> way=bychapter] > > Many thanks for this. There is an unwanted side-effect: Let > > marker = main-text footnote marker > header = numeral for footnote header > reference = reference numeral > > The prefix appears in three places, e.g., > > marker - II.1 > header - II.1 > reference - II.1 > > but we only want the prefix in the reference, not anywhere else, e.g., > > marker - 1 > header - 1 > reference - II.1 > > The prefix in the main-text marker and in the footnote header are > superfluous, e.g., the reader already knows which chapter one is > reading. But to reference a footnote from a later chapter, a prefix is > needed to let the reader know which chapter. > > So the question is: Can the prefix be made to apply only to the > reference and not the marker or notation header? You have to set different prefixsegments settings for the note entries and the references. \defineconversionset [OLIE] [n,R,n,n,n,n] [n] \setuphead [sectionconversionset=OLIE] \setupnotation [footnote] [prefix=yes, prefixset=none] \setupreferencestructureprefix [footnote] [default] [prefixsegments=chapter, prefixset=all] \starttext \chapter{Chapter} Hey\footnote[listen]{This is a footnote.} See \in{footnote}[listen]. \stoptext > ============== > Observation: > > For endnotes at the end of a book having the prefix in the header is > also useful, i.e., > > marker - 1 > header - II.1 > reference - II.1 > > So a general mechanism to set the prefix for each of the above three > would be useful. > > If not currently supported, would like to make this a feature request. > ============== I don’t think this is possible because marker and header share the same counter setups. Wolfgang --------------070402080305090505080504 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

Hi Idris,

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

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

Many thanks for this. There is an unwanted side-effect: Let

marker    = main-text footnote marker
header    = numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker    - II.1
header    - II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker    - 1
header    - 1
reference - II.1

The prefix in the main-text marker and in the footnote header are superfluous, e.g., the reader already knows which chapter one is reading. But to reference a footnote from a later chapter, a prefix is needed to let the reader know which chapter.

So the question is: Can the prefix be made to apply only to the reference and not the marker or notation header?

You have to set different prefixsegments settings for the note entries and the references.


\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead
  [sectionconversionset=OLIE]

\setupnotation
  [footnote]
  [prefix=yes,
   prefixset=none]

\setupreferencestructureprefix
  [footnote]
  [default]
  [prefixsegments=chapter,
   prefixset=all]

\starttext

\chapter{Chapter}

Hey\footnote[listen]{This is a footnote.}

See \in{footnote}[listen].

\stoptext


==============
Observation:

For endnotes at the end of a book having the prefix in the header is also useful, i.e.,

marker    - 1
header    - II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three would be useful.

If not currently supported, would like to make this a feature request.
==============

I don’t think this is possible because marker and header share the same counter setups.

Wolfgang

--------------070402080305090505080504-- --===============0974016623061300877== 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 --===============0974016623061300877==--