From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105477 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Calum MacLeod Newsgroups: gmane.comp.tex.context Subject: Formatting in toc Date: Mon, 11 Nov 2019 13:26:29 +0000 Message-ID: Reply-To: pangur@sky.com, mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3318438785711424822==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24786"; mail-complaints-to="usenet@blaine.gmane.org" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 11 14:27:13 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iU9ir-0006Jr-8o for gctc-ntg-context-518@m.gmane.org; Mon, 11 Nov 2019 14:27:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DD9A8162933; Mon, 11 Nov 2019 14:26:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p6hSbQGwO2sA; Mon, 11 Nov 2019 14:26:45 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5A009162DBD; Mon, 11 Nov 2019 14:26:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 22D69162D29 for ; Mon, 11 Nov 2019 14:26:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0j7VzCbz4UuJ for ; Mon, 11 Nov 2019 14:26:43 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.179; helo=mail-il1-f179.google.com; envelope-from=pabbay@gmail.com; receiver= Original-Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 44612162933 for ; Mon, 11 Nov 2019 14:26:43 +0100 (CET) Original-Received: by mail-il1-f179.google.com with SMTP id m5so12111581ilq.0 for ; Mon, 11 Nov 2019 05:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=xSBOkhfY/BUlqsatxVibj7Z0SLDMnBhKFyYob7VRRuw=; b=pfIVZEDZJC7sMFhiW6c3XG1z1c3ou4ajfA1+Rw/NbvkwcbMCwNRP4p4wa1cGkF31qm GYAKhpBu9ypJuYJhsSsCV3r6kVInQHGQUUzUtFcoHLnqqUx1bAUoEJR2LSvn2JkDStrG O9CEi+GP/sXqWMPLfTHL6pfZ6JySP2EItRxO+XnbFDv4J/SADYoLs4yIKcJfBF1p/1Lq 9sP0qDInPYCdY9dQeFHh4S6TRGSV3kypf9mu6NUjgV51bw5zpC1ReZhQjGrI5105UkBz 8JUMtPwx6H6kBy03fUimG132Y0dCoR8o84qI03yUpBhq/QXaWDoL11TymZXAH49fjwMH LQ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=xSBOkhfY/BUlqsatxVibj7Z0SLDMnBhKFyYob7VRRuw=; b=pUkx8LjOaxLiAbie0SCkBEqY8HvzvFG7smMWzzHs5T3Fjl0Eu7pfvtlgIAPpBf5b+B ou72DTO77UFbca/PmNHZqg32xGWs0qVsGQ+BXJyG/Lw+nngSLzUBLCTFlE1B0Z9hj4V1 d0vC8jQwn0Xt/NAbxuwJdFDLz+c6ited+Yh4c861BwfmXStiig3KS3SL5kk1aF9B+LJu bwkre6u5NSEAdcWIw9Dz7avGW4vu0IxGBAMfvIjZwTUfGmP6u0e0ioijcx9y9KxHVoT4 mcfG9icwisNoFSs6fwlZz/1KN8cY7BG7yJU5XCSr1DbUYZLjffqmiQm+u6R0CNh1FhYN /GYg== X-Gm-Message-State: APjAAAVOCihyB5tOaQ0YoF7yxXiRwqpWG38C9ZTpBRP1sZQ0Nb/BLh19 2OympcnC+1xVpovYfUyqSAvTugOU/XfpunfJ3uurZTA7 X-Google-Smtp-Source: APXvYqyhYiVnLhcI6RB/u2EZC82GDZ+4ilf7u98klgiQ4qfiHKvX6cBO5rrFp1W3GSDj/vDZut+m429v24D1mGlnVdA= X-Received: by 2002:a92:1612:: with SMTP id r18mr28520387ill.60.1573478801126; Mon, 11 Nov 2019 05:26:41 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105477 Archived-At: --===============3318438785711424822== Content-Type: multipart/alternative; boundary="00000000000000bc170597121567" --00000000000000bc170597121567 Content-Type: text/plain; charset="UTF-8" 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 --00000000000000bc170597121567 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This morning, I realised what I needed to do, and it work= s.

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 eno= ugh what I am after: creates a template style command, and replicates forma= tting in toc.

No doubt, = there might be tweaks or even cleverer ways to improve on my efforts.
=

Thanks to all who took the tr= ouble to read, and consider; and especially Hraban, who took the trouble to= offer a suggestion, which inspired=C2=A0me to think more clearly.

Thanks,
C= alum

--00000000000000bc170597121567-- --===============3318438785711424822== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3318438785711424822==--