Custom itemization broken by the new release
Hi all, The following code % frenchitemize \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \defineitemgroup[frenchitemize] \setupitemgroup[frenchitemize] [each] [indentdash,packed,joinedup]%,intext] % commenté le 2611 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] % testitemize \defineitemgroup[testitemize] \setupitemgroup[testitemize] [each] [indentdash,packed,joinedup,intext] % commenté le 2611 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] \starttext \input knuth \startfrenchitemize \item \input tufte \item \input tufte \stopfrenchitemize \input knuth \page \input knuth \starttestitemize \item \input tufte \item \input tufte \stoptestitemize \input knuth \stoptext "demonstrates" (?) the fact that [indentdash,packed,joinedup,intext] options don't lead to the expected result, i.e. the intext option break the packed one in the definition of testitemize. Renaud
Renaud Aubin wrote:
Hi all,
The following code
% frenchitemize \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \defineitemgroup[frenchitemize] \setupitemgroup[frenchitemize] [each] [indentdash,packed,joinedup]%,intext] % comment� le 2611 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
% testitemize \defineitemgroup[testitemize] \setupitemgroup[testitemize] [each] [indentdash,packed,joinedup,intext] % comment� le 2611 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
apart from you rproblem ... best store the wd0 instead of relying on the fact that box 0 stays the same \setbox0=\hbox{--~} \edef\MyWidth{\the\wd0} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \defineitemgroup[frenchitemize] \setupitemgroup[frenchitemize] [each] [indentdash,packed,joinedup]%,intext] % comment? le 2611 [indentnext=yes,width=\dimexpr \parindent + \MyWidth \relax] % testitemize \defineitemgroup[testitemize] \setupitemgroup[testitemize] [each] [indentdash,packed,joinedup,intext] % comment? le 2611 [indentnext=yes,width=\dimexpr \parindent + \MyWidth \relax] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Renaud Aubin