On 8/23/2023 10:13 PM, Wolfgang Schuster wrote:
Hi,
when inline items are used and the itemize environment has a settings for the margin the value the whole paragraph is indented by the set value for itemize.
\starttext
\samplefile{lorem}
\samplefile{lorem}\startitemize[a,intext][margin=2em]\item one \item two \stopitemize \samplefile{lorem}
\samplefile{lorem}
\stoptext
The culprit in this case is the \doadaptleftskip command which keeps the margin value even after the group has ended.
\starttext
\samplefile{lorem}
\samplefile{lorem}\bgroup\doadaptleftskip{1cm}\egroup\samplefile{lorem}
\samplefile{lorem}
\stoptext
We need a check in this case to ensure the margin settings (margin, leftmargin and rightmargin) are ignored for inline items.
like this? \ifconditional\c_strc_itemgroups_inline % ignore \orelse\ifnum\c_strc_itemgroups_nesting=\plusone % NIEUW \doadaptleftskip {\itemgroupparameter\c!margin}% \doadaptleftskip {\itemgroupparameter\c!leftmargin}% \doadaptrightskip{\itemgroupparameter\c!rightmargin}% \fi ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------