ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Vertical spacing in table of content
@ 2024-10-06  2:26 Gerion Entrup
  2024-10-06  7:18 ` [NTG-context] " Mikael Sundqvist
  2024-10-06  8:57 ` mf
  0 siblings, 2 replies; 4+ messages in thread
From: Gerion Entrup @ 2024-10-06  2:26 UTC (permalink / raw)
  To: ntg-context


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

Hi,

for my table of contents, I have set a style that makes sections and subsections smaller than chapters.
However, in the rendering the vertical space seems not to adapt: It remains equal for all entities.

Is there a possibility to reduce the vertical space between subsections and sections?
I tried before and after but only get it to add additional space and not reducing it.

Here is a MWE:
```
\setuplist[chapter][
	style=bold,
	aligntitle=yes,
]

\setuplist[section][
	aligntitle=yes,
	style=\tfx,
]
\setuplist[subsection][
	aligntitle=yes,
	style=\tfxx,
	after={\blank[none]},
	before={\blank[none]},
]

\starttext

\placecontent

\hairline

\startchapter[title=foo]
\startsection[title=foo]
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubsection
\stopsection
\startsection[title=foo]
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubsection
\stopsection
\stopchapter
\startchapter[title=foo]
\stopchapter

\stoptext
```

Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-10-06 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-06  2:26 [NTG-context] Vertical spacing in table of content Gerion Entrup
2024-10-06  7:18 ` [NTG-context] " Mikael Sundqvist
2024-10-06 15:41   ` Gerion Entrup
2024-10-06  8:57 ` mf

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