* [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
* [NTG-context] Re: Vertical spacing in table of content
2024-10-06 2:26 [NTG-context] Vertical spacing in table of content Gerion Entrup
@ 2024-10-06 7:18 ` Mikael Sundqvist
2024-10-06 15:41 ` Gerion Entrup
2024-10-06 8:57 ` mf
1 sibling, 1 reply; 4+ messages in thread
From: Mikael Sundqvist @ 2024-10-06 7:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
not sure exactly what you want, but does adding \setupinterlinespace
help you? As in
\setuplist[section][
aligntitle=yes,
style=\tfx\setupinterlinespace,
]
/Mikael
On Sun, Oct 6, 2024 at 4:27 AM Gerion Entrup <gerion.entrup@flump.de> wrote:
>
> 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___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
* [NTG-context] Re: Vertical spacing in table of content
2024-10-06 7:18 ` [NTG-context] " Mikael Sundqvist
@ 2024-10-06 15:41 ` Gerion Entrup
0 siblings, 0 replies; 4+ messages in thread
From: Gerion Entrup @ 2024-10-06 15:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2901 bytes --]
Thank you, nice, that works like exactly as expected.
Gerion
Am Sonntag, 6. Oktober 2024, 09:18:47 MESZ schrieb Mikael Sundqvist:
> Hi,
>
> not sure exactly what you want, but does adding \setupinterlinespace
> help you? As in
>
> \setuplist[section][
> aligntitle=yes,
> style=\tfx\setupinterlinespace,
> ]
>
> /Mikael
>
> On Sun, Oct 6, 2024 at 4:27 AM Gerion Entrup <gerion.entrup@flump.de> wrote:
> >
> > 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___________________________________________________________________________________
> > 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
> > ___________________________________________________________________________________
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
[-- 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
* [NTG-context] Re: Vertical spacing in table of content
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 8:57 ` mf
1 sibling, 0 replies; 4+ messages in thread
From: mf @ 2024-10-06 8:57 UTC (permalink / raw)
To: ntg-context
There's also \writetolist to add arbitrary content and make local
adjustments.
\writetolist[section]{}{\blank[...]}
Massi
Il 06/10/24 04:26, Gerion Entrup ha scritto:
> 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
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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).