ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: jbf <roma83537@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: space between chapter and chapter number (in words)
Date: Thu, 15 Oct 2020 09:07:48 +1100	[thread overview]
Message-ID: <7d732d68-8f78-2888-e22f-567b270325bd@gmail.com> (raw)

I wonder if someone could explain to me what controls (or how to 
control) the space between Chapter and chapter number in my TOC given 
the setup I have.

At the moment I get ChapterOne instead of Chapter One, and I do not know 
what is causing that.

Here is my set up (at least all the parts that I think are controlling 
the appearance of Chapter Number in the TOC). Am I missing something? I 
thought perhaps the third line in the ChapterListCommand below might be 
what controls this, so I did try adding \hskip 1em (or 2em etc.) in the 
\currentlistsymbol section of that line, but it did nothing to solve the 
problem:

\define[3]\ChapterListCommand
   {\hbox\bgroup
      \hbox to 2.5cm{\currentlistsymbol\hss}% number + labeltext
      \vtop\bgroup
        \hsize\dimexpr\makeupwidth-2.5cm\relax
        \doifsomething{\rawstructurelistuservariable{year}}
          {{\structurelistuservariable{year}}\crlf}%
        \currentlistentrytitle % title
        \doifsomething{\rawstructurelistuservariable{author}}
          {\crlf{\structurelistuservariable{author}}}%
        \hfill\currentlistentrypagenumber % pagenumber
      \egroup
    \egroup}

\setuplabeltext
   [en]
   [ chapter=\bf Chapter  ,
    ]

\setuplist
   [chapter]
   [label=yes,
    alternative=command,
    command=\ChapterListCommand]

Julian

___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2020-10-14 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14 22:07 jbf [this message]
2020-10-24 11:39 ` Jano Kula

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=7d732d68-8f78-2888-e22f-567b270325bd@gmail.com \
    --to=roma83537@gmail.com \
    --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).