Hi, Bruce—
This does not quite work—the page numbers are those of the first page of the chapter, not the last. But thanks for the tip about \writetolist. Perhaps I can get that to work.
What I need are ToC entries like
AuthorName
ShortTitle 1–6
I need this pagination because one of the requirements of continuous publication on the OJS is that once an item is published changes are not permitted. So I cannot go with normal continuous publication since, for us anyway, items are not processed in strict sequential order (e,g., we may have, paper+paper+ review+paper...)
If it helps: I currently have
\startFMTitle[reference=\Reference, title={}][itemAuthor=AuthorName, itemTitle=ShortTitle,...]
\setuplist[FMTitle][state=start, alternative=startendfmpages, criterium=all,]
(\Reference is defined at the in the preamble to input of the file/component.)
\definelistalternative[startendfmpages][renderingsetup=list:startendfmpages]
\startsetups[list:startendfmpages]
\structurelistuservariable{itemAuthor}\crlf
\structurelistuservariable{itemTitle}\hfill%
\at[\currentlistentrypagenumber]–\at[\lastpagenumber]
\vglue1pc
\stopsetups
where I have \reference[\lastpagenumber]{} at the end of the file. But this
gives me ??–viii (the viii is correct and interactive) for the FMTitle. Sadly the entries for all my other Titles (SourceTitle, StudyTitle...) is ??–viii.
(Each title is a modified chapter.)
Curiously, \at[\Reference]–\convertnumber{r}{\lastpagenumber} and \at[\Reference]–\at[\lastpagenumber] work properly in the body text.
The overall structure is project-product sort with many components in the product.
This is probably TMI. The bottom line is that I am truly stumped.
All best,
Alan