From: jbf via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: jbf <roma83537@gmail.com>
Subject: Calling in chapter number in list={}
Date: Thu, 17 Mar 2022 08:03:31 +1100 [thread overview]
Message-ID: <c03fc037-722b-25d5-301d-e1ac42ac21fd@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1439 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3265 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:[~2022-03-16 21:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-16 21:03 jbf via ntg-context [this message]
2022-03-17 10:18 ` Henning Hraban Ramm via ntg-context
2022-03-17 10:31 ` Jean-Pierre Delange via ntg-context
2022-03-17 10:36 ` Henning Hraban Ramm via ntg-context
2022-03-17 20:57 ` jbf via ntg-context
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=c03fc037-722b-25d5-301d-e1ac42ac21fd@gmail.com \
--to=ntg-context@ntg.nl \
--cc=roma83537@gmail.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).