ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* space between chapter and chapter number (in words)
@ 2020-10-14 22:07 jbf
  2020-10-24 11:39 ` Jano Kula
  0 siblings, 1 reply; 2+ messages in thread
From: jbf @ 2020-10-14 22:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: space between chapter and chapter number (in words)
  2020-10-14 22:07 space between chapter and chapter number (in words) jbf
@ 2020-10-24 11:39 ` Jano Kula
  0 siblings, 0 replies; 2+ messages in thread
From: Jano Kula @ 2020-10-24 11:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 585 bytes --]

Hello Julian!

On Thu, 15 Oct 2020 at 00:08, jbf <roma83537@gmail.com> wrote:

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

First of all you don't get space even in the chapter header and as such it
passes to TOC.
Adding a space in \setuplabletext will do the trick for both chapter
headers and TOC.

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

Regards,
Jano

[-- Attachment #1.2: Type: text/html, Size: 1103 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-24 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 22:07 space between chapter and chapter number (in words) jbf
2020-10-24 11:39 ` Jano Kula

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).