From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114525 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf via ntg-context Newsgroups: gmane.comp.tex.context Subject: Calling in chapter number in list={} Date: Thu, 17 Mar 2022 08:03:31 +1100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6457026632775859356==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3883"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: jbf To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 16 22:04:18 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUaoc-0000si-GK for gctc-ntg-context-518@m.gmane-mx.org; Wed, 16 Mar 2022 22:04:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 31E342A32C9; Wed, 16 Mar 2022 22:03:43 +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 W1kwvjaecYIc; Wed, 16 Mar 2022 22:03:41 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 75CFE2A32DC; Wed, 16 Mar 2022 22:03:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 546E12A32DC for ; Wed, 16 Mar 2022 22:03:39 +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 X6JI38GT3Wxz for ; Wed, 16 Mar 2022 22:03:38 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.180; helo=mail-pf1-f180.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 477292A32C9 for ; Wed, 16 Mar 2022 22:03:38 +0100 (CET) Original-Received: by mail-pf1-f180.google.com with SMTP id s8so5055238pfk.12 for ; Wed, 16 Mar 2022 14:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject; bh=nMvvj93JcO5iF3jky6XUP0q5TwsTn+dJgd7EVo8A4TE=; b=Q50ivTwqnf8GPLV1VTBU6MzVqQv9XZN18yBJkcNnhlo6nMJZ38dXnAcV6qqfiIWfa5 113908Ai9wqgHgrJMqNJirejvtZRBKDLwk+oTG8H5dNIu9l6x6xFIHsehQMCexHrCrzq SPCRNTa76uA1IOZiOfuy84prRn4W8iEHbJN4pdNAhX9aeJu6Lh3d7fAZ4Gs0/Gr3R/kh UMa6eIYYHq+5Kx/YpFH8eLyfltsA4R2YnFtl57LKlvIGQsGFo9RvKlaJTgGuEzdpz0BK M9ktT2NWcB+MRBDLpdfXeQH+Ni8IRUNJp1zMvQlpGgktFUZL8fYyEDv+QutVgOUJatBH Ocbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject; bh=nMvvj93JcO5iF3jky6XUP0q5TwsTn+dJgd7EVo8A4TE=; b=jrrpT+dnfaeMhvgZefsg9gP3bvHweZkPklGDiXS8BcxFzJ9Zv7vrqawp9wzpBHHFRb K1E+ofmUs2FQJqZ/UDXj7JpkfrDbqTRd7lCDL08HxFLE7ryxfQxeACrL8n+ly53rZRsK /ELCAaYjsBnksH1NlzquPlbWqkUG37b6WY2R4V5iHdo9o/imYEamRVk7FLKtDLXqmFRH SG3kyoXvMtxN3Qer+6yO8LSbmTH0Ap8hBW6+xBviNeZwjNC4Of6+dxvsxp4nbqWDTeyP O3EQhaZN7uwRjUicAgJdmgli7zBSPkv3IXOQFJ1vXPKKQp1ZsyPJq1yM2j7ItyWdZYi/ PZ+w== X-Gm-Message-State: AOAM5316gXhU1HeNTC5rMUyaxzHrpgvLm61SiOFn8cPCs+n9xaZ6wI1C Lf8Bu13jPXy505f0hN/bUAot13Akzhg= X-Google-Smtp-Source: ABdhPJweH6wT1NbbVUswd044TCwDLcAnJ/yiRVL78jZH5V+VtHZq6UskmA3w5EgLNx3A6zHw2wGZvQ== X-Received: by 2002:a05:6a00:1f86:b0:4f9:fd3f:d532 with SMTP id bg6-20020a056a001f8600b004f9fd3fd532mr1080913pfb.69.1647464615000; Wed, 16 Mar 2022 14:03:35 -0700 (PDT) Original-Received: from [192.168.0.100] ([120.21.192.198]) by smtp.gmail.com with ESMTPSA id c14-20020a056a00248e00b004f77e0fbfc0sm4374428pfv.185.2022.03.16.14.03.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Mar 2022 14:03:34 -0700 (PDT) Content-Language: en-US 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.io gmane.comp.tex.context:114525 Archived-At: This is a multi-part message in MIME format. --===============6457026632775859356== Content-Type: multipart/alternative; boundary="------------w0AZCN0ABP6PER6XaxExCPdg" Content-Language: en-US This is a multi-part message in MIME format. --------------w0AZCN0ABP6PER6XaxExCPdg Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I wonder if there is a way I can call in the chapter number in the TOC, although that number is not used for chapters as such. I know the chapter number is 'remembered' anyway, so there is probably a way I can call it in just for the TOC. The context for this question is the layout for book which comprises individual contributions, and each contribution has its own author/copyright (hence the individual chapters bear a title without a number, but the editor who has compiled these wants them numbered in the TOC). I currently call the author name in the TOC with: \define[1]\SectionTocEntry{% \leftaligned{#1}\par% title. \leftaligned is needed \hskip1cm\relax\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}% } \setuphead[chapter] of course includes number=no. \setuplist[chapter] is currently set as: [label=yes,distance=1.2cm,style=normal,before=\blank,after=\blank,textstyle=normal,alternative=c,textcommand=\SectionTocEntry,] And for the moment I simply use, as part of the \startchapter[] description: list={1. This is the rather long title of the first chapter, with the number included at the beginning}. While that gives me the number of the chapter, it does not give me correct indentation when the chapter title runs to more than one line. What I would prefer to do is to be able to call the chapter number automatically with placing 1., 2., etc. in list={}. Julian --------------w0AZCN0ABP6PER6XaxExCPdg Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

I wonder if there is a way I can call in the chapter number in the TOC, although that number is not used for chapters as such. I know the chapter number is 'remembered' anyway, so there is probably a way I can call it in just for the TOC.

The context for this question is the layout for book which comprises individual contributions, and each contribution has its own author/copyright (hence the individual chapters bear a title without a number, but the editor who has compiled these wants them numbered in the TOC).

I currently call the author name in the TOC with:

\define[1]\SectionTocEntry{%
\leftaligned{#1}\par% title. \leftaligned is needed
\hskip1cm\relax\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}%
}

\setuphead[chapter] of course includes number=no.

\setuplist[chapter] is currently set as:

[label=yes,distance=1.2cm,style=normal,before=\blank,after=\blank,textstyle=normal,alternative=c,textcommand=\SectionTocEntry,]

And for the moment I simply use, as part of the \startchapter[] description: list={1. This is the rather long title of the first chapter, with the number included at the beginning}.

While that gives me the number of the chapter, it does not give me correct indentation when the chapter title runs to more than one line. What I would prefer to do is to be able to call the chapter number automatically with placing 1., 2., etc. in list={}.

Julian

--------------w0AZCN0ABP6PER6XaxExCPdg-- --===============6457026632775859356== 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== --===============6457026632775859356==--