I'm getting stumped about how to generate the ToC for this book. I'm about to give up and just do it by hand. The author wants to include a lot of structural information that isn't present in the actual text, and none of the numbers "roll over" as they're want to do in ConTeXt.
This is the desired effect:
Narrator 1...
FIRST PART: PART SUBTITLE
1). First Poem // First Poem (Spanish title) . . . . . . . . . . . . . . . . . 1
Author of Poem (b. XXXX d. XXYY)
2). Second Poem // Poema Secunda . . . . . . . . . . . . . . . . . . . . . . . 3
Author of Poem
Narrator 2...
3). Third Poem // Third Poem . . . . . . . . . . . . . . . . . . . . . . . . . 5
Author
SECOND PART: Part 2
4). Fourth Poem // Fourth Poem . . . . . . . . . . . . . . . . . . . . . . . . 7
Author
Narrator 3...
The problems I have essentially boil down to these:
There is this weird "narrator" concept that doesn't seem to contain or be contained by the part/poem structure. A new part doesn't imply a new "narrator" and a new "narrator" doesn't imply a new part.
I need to aggrandize each title with the title in translation and the author, and I want to typeset them nicely.
I need poems to continue counting up across parts.
I see basically three approaches:
Make each poem a chapter and customize the appearance with
\setuphead[chapter][....]
. Then use\writebetweenlist[chapter]
to add theNarrator
and author information.Make a new list with
\definelist[poem]
and\definecombinedlist[content][part,poem]
; continue using\writebetweenlist[poem]
to insert the author and Narrator. This feels like the most conceptually valid option, but I think I'll still need a lot of customization.Forget all about ConTeXt and switch to plain TeX, use eplain's
writetocentry
system. Make it look right and forget maintainability.
\startpoem[title={....}][spanishtitle={...}, author={...}]
and define a custom list rendering for poems to display the author. To ensure that poems are numbered across parts use\setuphead[poem][way=bytext]
. That just leaves you with how to add the narrator; for that the easiest option is to use\writebetweenlist
\definehead
to create\startpoem
? Do I use\definelistalternative
to change the rendering? How do I get atspanishtitle
andauthor
from within it?glossaries
package. It allowed for page numbers, numerous levels of details (not all of which were included in the text), and if memory serves item groupings (i.e. something akin to your narrator criterion). If summarized with a custom style, continuous numbering might also be possible although not entirely guaranteed to reflect an ordered by usegls
entries in your document unless governed by explicit sort criterion (manually), so possibly not relevant.