[NTG-context] IMHO there is a bug in itemgrops

Vasiliy Chirkov vasiliy at chirkov.link
Thu Nov 13 14:41:18 CET 2014


Minimal example:

\starttext
\defineitemgroup[Enum][levels=3]
\setupitemgroup[Enum][each][fit][symbol=n]
\setupitemgroup[Enum][1][stopper={}]
\setupitemgroup[Enum][2][stopper={***}]
\setupitemgroup[Enum][3][stopper={******}]

\startEnum
	\item item 1
	\startEnum
		\item item 1.1
		\startEnum
			\item item 1.1.1
			\item item 1.1.2
		\stopEnum
		\item item 1.2
	\stopEnum
	\item item 2
\stopEnum
\stoptext

When option 'fit' is used with nested lists, calculated max item widths are saved in reverse order. Maxitemwidths are saved at first pass in \stopitemgrup in reverse order, while are read at second pass in \startitem grpoup in sequental order.

Am i right?

Best regards,
Vasiliy


More information about the ntg-context mailing list