From: Calum MacLeod <pabbay@gmail.com>
To: ntg-context@ntg.nl
Subject: Formatting in toc
Date: Mon, 11 Nov 2019 13:26:29 +0000 [thread overview]
Message-ID: <CAKM7QBnMTZuD3xWLpknvS+t8GbEkjVMip21axqvTiX4nWE1gmw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 615 bytes --]
This morning, I realised what I needed to do, and it works.
Before \starttext put:
\define[2]\hymn{\bf Hymn #1 \hspace[big] \it #2}\par}
After \starttext put stuff like
\hymn{34}{We three kings}
or
\hymn{10}{In the bleak midwinter}
etc.
This does near enough what I am after: creates a template style command,
and replicates formatting in toc.
No doubt, there might be tweaks or even cleverer ways to improve on my
efforts.
Thanks to all who took the trouble to read, and consider; and especially
Hraban, who took the trouble to offer a suggestion, which inspired me to
think more clearly.
Thanks,
Calum
[-- Attachment #1.2: Type: text/html, Size: 1192 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2019-11-11 13:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-11 13:26 Calum MacLeod [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-09-29 21:16 Formatting in TOC Tomas Bures
2010-09-29 23:06 ` Andreas Harder
2010-09-30 5:01 ` Wolfgang Schuster
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=CAKM7QBnMTZuD3xWLpknvS+t8GbEkjVMip21axqvTiX4nWE1gmw@mail.gmail.com \
--to=pabbay@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=pangur@sky.com \
/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).