ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Formatting in the toc
Date: Mon, 4 Nov 2019 22:17:52 +0100	[thread overview]
Message-ID: <FE83CCE7-0D08-4F82-9AD5-A68099D408F1@fiee.net> (raw)
In-Reply-To: <CAKM7QBnBxbWjpnqEKA2vyo+YfRbyzJSPudvWCi2uB8ic=UASYg@mail.gmail.com>

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 \structurelistuservariable,
similar to https://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content


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@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. 
> 
> Thanks in advance,
> Calum MacLeod
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@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
> ___________________________________________________________________________________


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

maillist : ntg-context@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
___________________________________________________________________________________

  reply	other threads:[~2019-11-04 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04 21:07 Calum MacLeod
2019-11-04 21:17 ` Henning Hraban Ramm [this message]
2019-11-09 21:03 Calum MacLeod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FE83CCE7-0D08-4F82-9AD5-A68099D408F1@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).