ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Inserting text between end notes
@ 2024-09-01  2:53 Rik Kabel
  2024-09-01 18:31 ` [NTG-context] " Bruce Horrocks
  0 siblings, 1 reply; 3+ messages in thread
From: Rik Kabel @ 2024-09-01  2:53 UTC (permalink / raw)
  To: ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1691 bytes --]

Hello all,

I am trying to implement some style-guide-defined (Chicago 17, and now, 
18) requirements to the end notes in a book. The need is to insert 
non-end-note text into the list of end notes. But end notes are not a 
list (as far as I can see) and \writetolist and such are no help.

The text to be inserted is of two types. The first is the name of the 
chapter from which the following notes were generated. It would be nice 
to automatically generate these.

The second type is pseudo-end-notes crediting the book and chapter 
epigraphs, which should appear as unnumbered end notes (at the start of 
the note section and the start of each chapter's notes). Ideally these 
would be generated in the same way as regular end notes but will not 
increment the note numbers (and should not, at least in my use case, 
require cross-referencing or bookmarking).

I can hack the first requirement with:

    \define[1]\EndNoteChapter{\testpage[3]
                               \blank
                               \midaligned{\tfa{Chapter #1}}
                               \blank}

in the environment and

    \EndNoteChapter{6 How I Saved the World}

at the end of the last end note in the preceding chapter, but this is 
obviously prone to mistakes. I would rather integrate the handling into 
the chapter heading environment.

I suppose that this hack might be extended to handle the epigraph notes 
as well, but it is just a hack.

Has anyone successfully dealt with this before? If not, is there the 
possibility of adding similar functionality to \writetolist and such for 
end note structures?

-- 
Rik

[-- Attachment #1.2: Type: text/html, Size: 2245 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Inserting text between end notes
  2024-09-01  2:53 [NTG-context] Inserting text between end notes Rik Kabel
@ 2024-09-01 18:31 ` Bruce Horrocks
  2024-09-03 16:43   ` Rik Kabel
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks @ 2024-09-01 18:31 UTC (permalink / raw)
  To: ntg-context mailing list



> On 1 Sep 2024, at 03:53, Rik Kabel <ConTeXt@rik.users.panix.com> wrote:
> 
> Hello all,
> I am trying to implement some style-guide-defined (Chicago 17, and now, 18) requirements to the end notes in a book. The need is to insert non-end-note text into the list of end notes. But end notes are not a list (as far as I can see) and \writetolist and such are no help.
> The text to be inserted is of two types. The first is the name of the chapter from which the following notes were generated. It would be nice to automatically generate these.
> The second type is pseudo-end-notes crediting the book and chapter epigraphs, which should appear as unnumbered end notes (at the start of the note section and the start of each chapter's notes). Ideally these would be generated in the same way as regular end notes but will not increment the note numbers (and should not, at least in my use case, require cross-referencing or bookmarking).
> I can hack the first requirement with:
> \define[1]\EndNoteChapter{\testpage[3]
>                           \blank
>                           \midaligned{\tfa{Chapter #1}}
>                           \blank}
> in the environment and
> \EndNoteChapter{6 How I Saved the World}
> at the end of the last end note in the preceding chapter, but this is obviously prone to mistakes. I would rather integrate the handling into the chapter heading environment.
> I suppose that this hack might be extended to handle the epigraph notes as well, but it is just a hack.
> Has anyone successfully dealt with this before? If not, is there the possibility of adding similar functionality to \writetolist and such for end note structures?

Here’s a bit of a hack for the chapter splitting and might also enable the epigraphs for you as well (not quite sure what these should look like from your description.)

\definenote[mynote]
\setupnote[mynote][location=text]
\setupnotation[mynote][]

\definenote[chapone][mynote]
\definenote[chaptwo][mynote]
\definenote[chapthree][mynote] % etc

\starttext

\startchapter[title={AAA}]
\def\note#1{\chapone{#1}}
\dorecurse{15}
{ See my note at \note{something important}. }
\stopchapter

\startchapter[title={BBB}]
\def\note#1{\chaptwo{#1}}
\dorecurse{5}
{ See my note at \note{something important}. }
\stopchapter

\title{Endnotes}
Chapter 1 notes
\placenotes[chapone]
\blank[2*line]

Chapter 2 notes
\placenotes[chaptwo]

\stoptext


—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Inserting text between end notes
  2024-09-01 18:31 ` [NTG-context] " Bruce Horrocks
@ 2024-09-03 16:43   ` Rik Kabel
  0 siblings, 0 replies; 3+ messages in thread
From: Rik Kabel @ 2024-09-03 16:43 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 3334 bytes --]

Thank you for that, Bruce.

While it is still a hack, as you note, it is less fraught since one does 
not have to keep track of the last end note in each chapter.

I would still like to see a real ability to add text to the note collection.

-- 
Rik

On 2024-09-01 14:31, Bruce Horrocks wrote:
>
>> On 1 Sep 2024, at 03:53, Rik Kabel<ConTeXt@rik.users.panix.com> wrote:
>>
>> Hello all,
>> I am trying to implement some style-guide-defined (Chicago 17, and now, 18) requirements to the end notes in a book. The need is to insert non-end-note text into the list of end notes. But end notes are not a list (as far as I can see) and \writetolist and such are no help.
>> The text to be inserted is of two types. The first is the name of the chapter from which the following notes were generated. It would be nice to automatically generate these.
>> The second type is pseudo-end-notes crediting the book and chapter epigraphs, which should appear as unnumbered end notes (at the start of the note section and the start of each chapter's notes). Ideally these would be generated in the same way as regular end notes but will not increment the note numbers (and should not, at least in my use case, require cross-referencing or bookmarking).
>> I can hack the first requirement with:
>> \define[1]\EndNoteChapter{\testpage[3]
>>                            \blank
>>                            \midaligned{\tfa{Chapter #1}}
>>                            \blank}
>> in the environment and
>> \EndNoteChapter{6 How I Saved the World}
>> at the end of the last end note in the preceding chapter, but this is obviously prone to mistakes. I would rather integrate the handling into the chapter heading environment.
>> I suppose that this hack might be extended to handle the epigraph notes as well, but it is just a hack.
>> Has anyone successfully dealt with this before? If not, is there the possibility of adding similar functionality to \writetolist and such for end note structures?
> Here’s a bit of a hack for the chapter splitting and might also enable the epigraphs for you as well (not quite sure what these should look like from your description.)
>
> \definenote[mynote]
> \setupnote[mynote][location=text]
> \setupnotation[mynote][]
>
> \definenote[chapone][mynote]
> \definenote[chaptwo][mynote]
> \definenote[chapthree][mynote] % etc
>
> \starttext
>
> \startchapter[title={AAA}]
> \def\note#1{\chapone{#1}}
> \dorecurse{15}
> { See my note at \note{something important}. }
> \stopchapter
>
> \startchapter[title={BBB}]
> \def\note#1{\chaptwo{#1}}
> \dorecurse{5}
> { See my note at \note{something important}. }
> \stopchapter
>
> \title{Endnotes}
> Chapter 1 notes
> \placenotes[chapone]
> \blank[2*line]
>
> Chapter 2 notes
> \placenotes[chaptwo]
>
> \stoptext
>
>
> —
> Bruce Horrocks
> Hampshire, UK
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist :ntg-context@ntg.nl /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  :https://www.pragma-ade.nl /https://context.aanhet.net (mirror)
> archive  :https://github.com/contextgarden/context
> wiki     :https://wiki.contextgarden.net
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 4354 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-03 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-01  2:53 [NTG-context] Inserting text between end notes Rik Kabel
2024-09-01 18:31 ` [NTG-context] " Bruce Horrocks
2024-09-03 16:43   ` Rik Kabel

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).