Taco Hoekwater wrote:

Hi,

Am I missing something, or \setupitemize[indentnext=no] not
working (anymore?)

Greetings, Taco

% demo file
\setupindenting[big,yes]
\setupitemize[indentnext=no]

\starttext
\startitemize
\item one
\stopitemize
Not indented paragraph (hopefully).

Indented paragraph.
\stoptext

not 'anymore', more 'not as you expected' -)

this feature is not supported at the specific item group level, only for all itemgroups (took me a while to see that one, after entering panic-bug mode); here is a patch that makes it work for individual itemgroups; i'll patch add this feature.

\unprotect

\def\doinitializeitemgrouplevel#1%
 {\copyparameters
    [\??op\currentitemgroup#1][\??oo]
    [\c!width,\c!factor,\c!distance,\c!align,\c!option,
     \c!style,\c!marstyle,\c!symstyle,\c!headstyle,
     \c!color,\c!marcolor,\c!symcolor,\c!headcolor,
     \c!beforehead,\c!afterhead,\c!before,\c!inbetween,\c!after,
     \c!stopper,\c!placestopper,\c!indenting, % indentnext added
     \c!n,\c!inner,\c!symbol,\c!margin,\c!items,
     \c!leftmargin,\c!rightmargin,\c!indentnext,
     \c!start,\c!lefttext,\c!righttext]}

\def\stopitemgroup
 {\iftextitems
    \removeunwantedspaces\space\ignorespaces
  \else
    \par
  \fi
  \ifnum\itemcolumndepth=\zerocount \dolistreference \fi % beware !
  \iffirstlist \else \endgroup \fi % toegevoegd, eerste \som opent groep
  \ifnum\itemcolumndepth=\itemlevel\relax
    \stopcolumns
    \doglobal\newcounter\itemcolumndepth
    \getitemparameter\itemlevel\c!after
  \else
    \ifnum\itemlevel=\plusone
      \doitembreak\allowbreak
      \getitemparameter1\c!after
     %\dochecknextindentation\??oo % old call
      \dochecknextindentation{\??op\currentitemgroup\itemlevel}% new call
    \else
      % nieuw, not yet nobreak handling
      \ifcase\autoitemgroupspacing
        \getitemparameter\itemlevel\c!after
      \or
        \getitemparameter\itemlevel\c!after
      \fi
    \fi
  \fi
  \endgroup
  \doglobal\decrement(\itemlevel,\itemincrement)%
  \egroup
  \iftextitems\else\par\fi}

\setupindenting[medium,yes]
\setupitemize[indentnext=no]

\starttext
 \input tufte \par
 \startitemize
 \item \input tufte \par \input tufte
 \stopitemize
 \input tufte \par \input tufte
\stoptext


_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to