# [NTG-context] Formatting in the toc

Henning Hraban Ramm texml at fiee.net
Mon Nov 4 22:17:52 CET 2019

I’d suggest to use something like (untested)

\startsubject[title={The Lord’s my Shepherd}][biblepart={Hymn 387}]

and

\define[2]\MyBibleSection{{\bf #1}\hfill{\it\structureuservariable{biblepart}}}

You’d need to setup your ToC useing \structurelistuservariable,

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

> Am 2019-11-04 um 22:07 schrieb Calum MacLeod <pabbay at gmail.com>:
>
> 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?
>
> I would be grateful for an answer, or to be pointed to where I could learn more.
>
> Calum MacLeod
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________