Am 04.10.2012 um 14:00 schrieb Marco Patzer
Hi,
I discovered some issues with the legend mechanism.
1) A newline after \startplacelegend fails:
\starttext \startplacelegend
\startcontent Foo \stopcontent \startcaption Bar \stopcaption \stopplacelegend \stoptext
2) location != top | bottom throws “Infinite glue shrinkage found in a paragraph”:
\starttext \startplacelegend [location=left] \startcontent Foo \stopcontent \startcaption Bar \stopcaption \stopplacelegend \stoptext
pack-com.mkiv (replace \hss with \vss): \setvalue{\??pairedboxalign\v!middle}% 4 {\let\pack_pairedboxes_align_l\hss \let\pack_pairedboxes_align_r\hss - \let\pack_pairedboxes_align_t\hss - \let\pack_pairedboxes_align_b\hss} + \let\pack_pairedboxes_align_t\vss + \let\pack_pairedboxes_align_b\vss}
3) tabulate inside the content fails when not boxed:
\starttext \startplacelegend [location=left] \startcontent \starttabulate \NC Alpha \NC Beta \NC\NR \stoptabulate \stopcontent \startcaption Bar \stopcaption \stopplacelegend \stoptext
You can place the tabulate environment only with the second group of the legend, it doesn’t matter when you change the position of \startcaption and \startcontent because because both commands are synonyms for \bgroup. Wolfgang