* Adjustment in the table of contents
@ 2021-08-16 9:24 Fabrice Couvreur via ntg-context
2021-08-16 15:54 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2021-08-16 9:24 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur
[-- Attachment #1.1: Type: text/plain, Size: 397 bytes --]
Hi,
I wish to have the table of contents as the attached image. The result is
almost as expected except for the margin of the subsection.
\setuplist
[chapter,section,subsection]
[width=fit,distance=\spaceamount]
\setuplist
[chapter]
[alternative=b]
\setuplist [chapter][style=bold]
\setuplist [section] [margin=1em]
\setuplist [subsection] [margin=2.75em]
Thanks
Fabrice
[-- Attachment #1.2: Type: text/html, Size: 1399 bytes --]
[-- Attachment #2: sommaire.png --]
[-- Type: image/png, Size: 29515 bytes --]
[-- Attachment #3: 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
* Re: Adjustment in the table of contents
2021-08-16 9:24 Adjustment in the table of contents Fabrice Couvreur via ntg-context
@ 2021-08-16 15:54 ` Wolfgang Schuster via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-08-16 15:54 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
[-- Attachment #1.1: Type: text/plain, Size: 749 bytes --]
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24:
> Hi,
> I wish to have the table of contents as the attached image. The result
> is almost as expected except for the margin of the subsection.
>
> \setuplist
> [chapter,section,subsection]
> [width=fit,distance=\spaceamount]
>
> \setuplist
> [chapter]
> [alternative=b]
>
> \setuplist [chapter][style=bold]
>
>
> \setuplist [section] [margin=1em]
> \setuplist [subsection] [margin=2.75em]
>
Use fixed values for the width.
\setuplist
[chapter]
[width=1em]
\setuplist
[section]
[margin=1em,% chapter width
width=1.75em]
\setuplist
[subsection]
[margin=2.75em,% chapter width + section width
width=2em]
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1776 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:[~2021-08-16 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 9:24 Adjustment in the table of contents Fabrice Couvreur via ntg-context
2021-08-16 15:54 ` Wolfgang Schuster via ntg-context
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).