I have now found time to see if I could work out how to apply
\structurelistuservariable. In short, I have to admit that I could not.
I am grateful to Hraban for his encouraging response, but though I could
see it was related, it seems to me not quite what I seek.
The more I thought about the an
I’d suggest to use something like (untested)
\startsubject[title={The Lord’s my Shepherd}][biblepart={Hymn 387}]
and
\setuphead[subject][command=\MyBibleSection]
\define[2]\MyBibleSection{{\bf #1}\hfill{\it\structureuservariable{biblepart}}}
You’d need to setup your ToC useing \structurelistus
In the body of document, I often have a heading such as this:
\subject{{\bf Hymn 387} \hfill {\it The Lord's my Shepherd}}
When it arrives in the Table of Contents, the bold and italic have been
stripped off.
My question is: How do I copy to ToC the formatting as well as the content
of the text?