From: Rik Kabel <ConTeXt@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: disable header for endnotes
Date: Wed, 16 Aug 2023 09:07:03 -0400 [thread overview]
Message-ID: <d32dc8c0-0a7a-4b96-9b97-e624bb9bc093@rik.users.panix.com> (raw)
In-Reply-To: <6b9527cd-427a-c1c5-3e17-ede1ea6fc90c@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1822 bytes --]
On 8/16/2023 5:02 AM, jbf wrote:
>
> I wonder if someone might be able to help me with this.
>
> I have a book in three parts and the author wants endnotes. No
> problem. I can produce those with \setupfootnotes[location=text] and
> then \placefootnotes.
>
> However, I would like the header to read 'Notes' on the recto page (or
> indeed be blank with no header), but I am currently getting the header
> that belongs to the main setup for headers, which happens to be:
>
> \startsetups[middle]
>
> \hfill
>
> \getmarking[section]
>
> \hfill
>
> \stopsetups
>
> \setupheadertexts
>
> [{\hfill\documentvariable{metadata:title}\hfill}][]
>
> [\setups{middle}][]
>
> How do I deal with the \placefootnotes command so that it ignores this
> and either gives me no header, or perhaps a new header with 'Notes' in
> place of [section] (which is achieved in centered position with
> setups[middle])?
>
> Julian
>
>
I use the following for a notes chapter at the end of a book. It
produces headings that indicate the pages for which the notes apply.
Perhaps you can adapt it to your needs:
In the environment file:
\definemarking [notePage] \startsetups noteHeadingsText {\em
Notes for page
\doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]}
{ \getmarking[notePage][top]} {s
\getmarking[notePage][top]–\getmarking[notePage][bottom]}}
\stopsetups \startsetups noteHeadings:on
\setupheadertexts[][\setups{noteHeadingsText}]
[\setups{noteHeadingsText}][] \stopsetups
In the text:
\startbackmatter \startchapter[reference={cha:notes},
list={Notes}, % toc bookmark={Notes}, % pdf bookmark
title={Notes}] % chapter head [Lettrine=no]
\setups{noteHeadings:on} \placenotes[endnote] \stopchapter
-- Rik
[-- Attachment #1.2: Type: text/html, Size: 3779 bytes --]
[-- Attachment #2: Type: text/plain, Size: 495 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2023-08-16 13:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 9:02 [NTG-context] " jbf
2023-08-16 13:07 ` Rik Kabel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d32dc8c0-0a7a-4b96-9b97-e624bb9bc093@rik.users.panix.com \
--to=context@rik.users.panix.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).