ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Nested itemize lists: unexpected spacing
@ 2024-02-01 14:26 Jim
  0 siblings, 0 replies; only message in thread
From: Jim @ 2024-02-01 14:26 UTC (permalink / raw)
  To: ntg-context

Consider the following:


Text before.
\item item 1
\item item 2
\item sub-item 1
\item sub-item 2
\item item 3
Text after.


Notwithstanding the "nowhite" options, there is a blank line before
sub-item 1, which I do not want.

Oddly (to me), if I change the first "nowhite" to "packed", the space
before sub-item 1 goes away, but then I get undesired space before and
after the out itemization.

Q1: Can someone explain the Zen of this?  That is, why does the blank
    line before sub-item 1 go away with "packed", but not "nowhite"?

Poking around on the internet, I find that if I leave the "nowhite"s, but
precede "Text before." with
        \c_strc_itemgroups_spacing_mode=1  % 0 works too, but 2 doesn't
then I get the spacing I want.

Q2: \c_strc_itemgroups_spacing_mode seems to be an undocumented "feature".
    Is there a "documented" way of making the unwanted blank line
    go away, without introducing unwanted blank lines before and
    after the outer itemize list?

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] only message in thread

only message in thread, other threads:[~2024-02-01 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-01 14:26 [NTG-context] Nested itemize lists: unexpected spacing Jim

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