On Mon, Nov 16, 2009 at 10:09 AM, Thomas A. Schmitz
On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote:
If you hadn't notice the item is wider then the running text, in MkIV you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax' (not the best method but \localhsize is not available)
Wolfgang
Aditya, Wolfgang,
thanks a lot, I now get the visual output I want! So the question remains: any way of making this a hook for startitemize so it gets applied to every \item automatically?
There is always a non-context solution, (so it's a kind of off-topic here...) More seriously (well, only a bit), it can be seen as a sort of syntathic sugar (just because I like coffe with sugar, but it' a taste of mine..) \setuplayout[width=10cm] \long\def\TSIF#1{\item \framed\bgroup #1} \def\TSIFE{\egroup} \starttext \setupframed[offset=2mm, corner=round, background=color, backgroundcolor=blue, foregroundcolor=white, frame=off, strut=no,inbetween={\blank[3*line]} location=high, align=normal, width=\textwidth] \startitemize[n] \item \framed{The text of this item is made very long because it is intended to show the effect of what happens when an item extends to more than just one line.} \item \framed{This item is relatively short, but also fills more than one line.} \TSIF% This item is relatively short, but also fills more than one \TSIFE \TSIF% This item is relatively short, but also fills more than one \TSIFE \stopitemize \stoptext -- luigi