ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* About the table of contents
@ 2020-07-11 13:02 Fabrice Couvreur
  2020-07-11 14:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2020-07-11 13:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
I would like to reduce the space between the numbering and the title of the
chapters, sections and subsections.
I would also like to have this:

1 My first chapter
1.1 My first section
1.1.1 My first subsection


\setuplist
  [chapter]
  [style=bold,width=10mm]
\starttext
\placelist
      [chapter,section,subsection]
      [criterium=all,
       interaction=all,
       alternative=c]
\startchapter
  [title=My first chapter]
  \dorecurse{2}{\input knuth}
  \startsection
    [title=My first section]
    \dorecurse{2}{\input knuth}
    \startsubsection
      [title=My first subsection]
      \dorecurse{2}{\input knuth}
    \stopsubsection
  \stopsection
\stopchapter
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1641 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] 3+ messages in thread

* Re: About the table of contents
  2020-07-11 13:02 About the table of contents Fabrice Couvreur
@ 2020-07-11 14:19 ` Wolfgang Schuster
       [not found]   ` <CACyK-eriRT=v3GAomNch0n_kiX1w_0N2gvjHRkrhXoefHJkz6g@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2020-07-11 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur

Fabrice Couvreur schrieb am 11.07.2020 um 15:02:
> Hello,
> I would like to reduce the space between the numbering and the title of 
> the chapters, sections and subsections.
> I would also like to have this:
> 
> 1 My first chapter
> 1.1 My first section
> 1.1.1 My first subsection

You can use

\setuplist
   [chapter,section,subsection]
   [width=fit,distance=\spaceamount]

or

\setuplist [chapter]    [width=1em]
\setuplist [section]    [width=2em]
\setuplist [subsection] [width=3em]

or

\setuplist [chapter,section,subsection] [distance=\spaceamount]

\setuplist [chapter]    [width=\widthofstring{0}]
\setuplist [section]    [width=\widthofstring{0.0}]
\setuplist [subsection] [width=\widthofstring{0.0.0}]

Wolfgang
___________________________________________________________________________________
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] 3+ messages in thread

* Re: About the table of contents
       [not found]   ` <CACyK-eriRT=v3GAomNch0n_kiX1w_0N2gvjHRkrhXoefHJkz6g@mail.gmail.com>
@ 2020-07-11 14:41     ` Wolfgang Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2020-07-11 14:41 UTC (permalink / raw)
  To: Fabrice Couvreur; +Cc: NTG-Context ConTeXt users

Fabrice Couvreur schrieb am 11.07.2020 um 16:30:
> Hi Wolfgang,
> Sorry but i was wrong on what i want to get :
> 
> 1  My first chapter
>      1.1 My first section
>            1.1.1 My first subsection

Set the margin values:

\setuplist [section]    [margin=1em]
\setuplist [subsection] [margin=2em]

Wolfgang
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2020-07-11 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-11 13:02 About the table of contents Fabrice Couvreur
2020-07-11 14:19 ` Wolfgang Schuster
     [not found]   ` <CACyK-eriRT=v3GAomNch0n_kiX1w_0N2gvjHRkrhXoefHJkz6g@mail.gmail.com>
2020-07-11 14:41     ` Wolfgang Schuster

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