From: jbf <roma83537@gmail.com>
To: mf <massifr@fastwebnet.it>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Centered list of authors in ToC
Date: Wed, 10 Feb 2021 07:50:01 +1100 [thread overview]
Message-ID: <eab76928-9aa8-49d8-03ce-68ffb6f0c0ed@gmail.com> (raw)
In-Reply-To: <acbe416a-6c71-8067-3192-8ec5b3a65453@fastwebnet.it>
Resolved!
\define[1]\SectionTocEntry{%
#1\crlf% title
\startalignment[middle]\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}%
\stopalignment}
Julian
On 9/2/21 9:02 pm, mf wrote:
> Il 09/02/21 10:49, jbf ha scritto:
>> I wonder if someone can assist me with the final step in a
>> complicated Table of Contents where all items in the ToC are centred
>> (except page numbers which continue to be on the right).
>>
>> Beneath each chapter title is a list of authors (Yes, there can be up
>> to four authors per chapter!)
>>
>> I can successfully achieve everything (see MWE below) except for
>> getting the list of authors to split and be centred. Because there
>> are four of them, I would need to split them so they appear as two
>> (centred) with the other two below(also centred).
>>
>> Here is my MWE for the essential bit (which is then called in as
>> textcommand=\SectionTocEntry in \setuplist[chapter], obviously):
>>
>> \define[1]\SectionTocEntry{%
>> #1\crlf% title
>> \midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}%
>>
>> }
>
> try \startalignment[middle] ... \stopalignment instead of \midaligned
>
>>
>> My problem is that at the moment, the four authors appear on a single
>> line, so I end up with:
>>
>> My chapter title
>> Mickey Mouse, Donald Duck, Uncle Scrooge, Minnie Mouse [p. 1, but in
>> fact, Minnie Mouse runs across the page number!]
>>
>> What I want instead is:
>>
>> My chapter title
>> Mickey Mouse, Donald Duck
>> Uncle Scrooge, Minnie Mouse [p. number]
>>
>> Back at the chapter level my code reads:
>>
>> \startchapter[title={Chapter title}][author={Mickey Mouse, Donald
>> Duck, Uncle Scrooge, Minnie Mouse}].
>
> \startchapter[title={Chapter title}][author={Mickey Mouse, Donald
> Duck,\crlf Uncle Scrooge, Minnie Mouse}].
>
> Massi
> ___________________________________________________________________________________
>
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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 prev parent reply other threads:[~2021-02-09 20:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-09 9:49 jbf
2021-02-09 10:02 ` mf
2021-02-09 20:18 ` jbf
2021-02-09 20:50 ` jbf [this message]
2021-02-09 21:11 ` Hans Hagen
2021-02-09 21:58 ` jbf
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=eab76928-9aa8-49d8-03ce-68ffb6f0c0ed@gmail.com \
--to=roma83537@gmail.com \
--cc=massifr@fastwebnet.it \
--cc=ntg-context@ntg.nl \
/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).