From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105471 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Calum MacLeod Newsgroups: gmane.comp.tex.context Subject: Formatting in the toc Date: Sat, 9 Nov 2019 21:03:41 +0000 Message-ID: Reply-To: pangur@sky.com, mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2271398031195195364==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="262539"; mail-complaints-to="usenet@blaine.gmane.org" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 09 22:04:17 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 1iTXu2-0016B0-PS for gctc-ntg-context-518@m.gmane.org; Sat, 09 Nov 2019 22:04:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8CB401629DB; Sat, 9 Nov 2019 22:03:57 +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 bgHI5mOM9-XX; Sat, 9 Nov 2019 22:03:56 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A1283162D2F; Sat, 9 Nov 2019 22:03:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 94475162D25 for ; Sat, 9 Nov 2019 22:03:55 +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 zOO3hLQYuMxD for ; Sat, 9 Nov 2019 22:03:54 +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 CC2911629DB for ; Sat, 9 Nov 2019 22:03:54 +0100 (CET) Original-Received: by mail-il1-f179.google.com with SMTP id n18so8267809ilt.9 for ; Sat, 09 Nov 2019 13:03:54 -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=fk/liVG+ftYa3sxcHWAh56M6A/qMbIX/xMrBLEBxf9E=; b=FNuAPLLHiScueu3wYGAmEGwMnldIDVVIIN+aQsfbyLPJfI8/AQaXzP5E7WE2XB1uIv iiedOCJfTodDObaQjpP+n01R3fBtj0x/FAsjkoPP+e6fBddyTUih3YSOfe6GdV7Rz0cF LLGSsc/7uAFnNnGewefOebJcKNzBgfHuSvshxximEpFTLZIs+A8b+wzEagaJf9itq49U vXcjvt5A/ISEAbm/iStpoU9BaWWVSlRDB3Qv7ASqoNVrVwh1Fk32NfSI+YkPI3fLW1mM oFwKoht98dXQmhcdwEYGftRmyibyJcZ4QmbvgU2k/L0n8bfcdThSjU04UrA9/K/yEw6h llXQ== 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=fk/liVG+ftYa3sxcHWAh56M6A/qMbIX/xMrBLEBxf9E=; b=mEhXH3K8hV9CqBKuMGQSoCxg8VnW4YuNtNJQu88K/0P6Wj32Fn8VXwAcu9TFk7nA3T rb39PxShJmGA66hH7vWWAC7cuTDxf+AqsTwd7X/IDFndxD7dgU+TB4oyswj7BwsDNqeB HKFzPqz9nupF6wNb9BG0X+MnKWUM0cJbMjMUc2Swbaq01n6lH5eyiIekH9+k+oU1bwRC R6kFAWwEyH3K5qVFeDz9y7X7A1rJeHa8iKLB60KSdOMKPyuMMF1h8rchJSuI4SadDC8e STw3cbEG1CA5Dui9c3cTzibViPlAT3iLQZ14K9cq0KfzZ4A5QdjphjVDLsaADffxtdxK YFog== X-Gm-Message-State: APjAAAUkeQ6n8rQPsdVZKSLusOnMMgBrkn+wBGVD4bHXun3G2/Npc9l4 D3O2IyO0V+V6EBtpODb/fjJ0qL2WCSPaoyx79OWHzme8 X-Google-Smtp-Source: APXvYqyScvLP83RfoDk1Hd5K76GxOWwuAJZMbHzuEm20sP3lyVgiJducBV5WXfUXJ3DDu1gA6ah+TisoBNn3rxMsYwk= X-Received: by 2002:a92:3c13:: with SMTP id j19mr20923886ila.245.1573333432903; Sat, 09 Nov 2019 13:03:52 -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:105471 Archived-At: --===============2271398031195195364== Content-Type: multipart/alternative; boundary="00000000000061ae460596f03c1f" --00000000000061ae460596f03c1f Content-Type: text/plain; charset="UTF-8" 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 answer, I realised I had not explained my question in a precise manner. I am retired, and produce a weekly A5 booklet from material with which my wife (a church minister), supplies to me. I call it a pulpit manuscript. It is the entire script for her service. Included are the numbers and first line of five hymns, that are different each week. Until I gain a better understanding of ConTeXt, I shall continue to use LaTeX koma-script package for the weekly booklet. In order to make life easier for myself, I have created commands of my own. One of these commands enables me to have a template which has five instances of \hymn{} {}. If I put with the first braces pair '387', and in the second pair, 'The Lord's my shepherd' --- when LaTeX koma-script outputs the PDF, 'Hymn 387' is in bold and 'The Lord's my shepherd' is italicised. For the next hymn, it would be a different number, and different first line, but it would auto-formatted the way I want. That command is constructed in the preamble in the following way: \newcommand{\hymn}[3][Hymn]{\addsec{\rlap{\textbf{#1 #2}}\hspace}{7em}{\normalfont\small\textit{#3} }}} This places a specific gap between the hymn number and the first line as well. Not only does it format the section heading (\addsec) to have bold and italics (without bold), it formats the corresponding entry in the toc in exactly the same way. How can I make a similar command for ConTeXt, please? --00000000000061ae460596f03c1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have now found time to see if I could work out how to a= pply \structurelistuservariable. In short, I=C2=A0 have to admit that I cou= ld not.

I am grateful to Hraba= n for his encouraging response, but though I could see it was related, it s= eems to me not quite what I seek.

The more I thought about the answer, I realised I had not explain= ed my question in a precise=C2=A0manner.

<= div dir=3D"auto">I am retired, and produce a weekly A5 booklet from materia= l with which my wife (a church minister), supplies to me. I call it a pulpi= t manuscript. It is the entire script for her service. Included are the num= bers and first line of five hymns, that are different each week.

Until I gain a better=C2=A0underst= anding of ConTeXt, I shall continue to use LaTeX koma-script package for th= e weekly booklet. In order to make life easier for myself, I have created c= ommands of my own.

One o= f these commands enables me to have a template which has five instances of = \hymn{} {}. If I put with the first braces pair '387', and in the s= econd pair, 'The Lord's my shepherd' --- when LaTeX koma-script= outputs the PDF, 'Hymn 387' is in bold and 'The Lord's my = shepherd' is italicised. For the next hymn, it would be a different num= ber, and different first line, but it would auto-formatted the way I want.<= /div>

That command is construc= ted in the preamble in the following way:

=
\newcommand{\hymn}[3][Hymn]{\addsec{\rlap{\textbf{#1 #2}}= \hspace}{7em}{\normalfont\small\textit{#3} }}}

<= /div>
This places a specific gap between the hymn number a= nd the first line as well. Not only does it format the section heading (\ad= dsec) to have bold and italics (without bold), it formats the corresponding= entry in the toc in exactly the same way.

How can I make a similar command for ConTeXt, please?
=C2=A0
--00000000000061ae460596f03c1f-- --===============2271398031195195364== 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== --===============2271398031195195364==--