From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94026 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Bug in startitemize Date: Mon, 07 Mar 2016 20:46:57 +0100 Message-ID: <56DDDAB1.8040604@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2149610128892790582==" X-Trace: ger.gmane.org 1457380063 27838 80.91.229.3 (7 Mar 2016 19:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2016 19:47:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 07 20:47:32 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ad17q-0005cJ-J4 for gctc-ntg-context-518@m.gmane.org; Mon, 07 Mar 2016 20:47:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 544977CB7; Mon, 7 Mar 2016 20:47:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yw1iFAin01nM; Mon, 7 Mar 2016 20:47:13 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7CE5B7CB8; Mon, 7 Mar 2016 20:47:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 945007CB6 for ; Mon, 7 Mar 2016 20:47:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eCYP3JKML2Qy for ; Mon, 7 Mar 2016 20:47:11 +0100 (CET) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7C0DE7CB5 for ; Mon, 7 Mar 2016 20:47:01 +0100 (CET) Original-Received: by mail-wm0-f50.google.com with SMTP id l68so83401411wml.1 for ; Mon, 07 Mar 2016 11:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=0ax6w+yj61HXpendUPlhfpbqehdyL8ebShmSMgY+fIE=; b=bDu/or3dYiEjLlRwuFVBaoDn3QuNNq3mYyYswBUUf0zpVdxtOXJJBG0oJs3gOXwyKc HUW+yc07RC4d2nm/oYB+mSI4q9r2J5FDkz1ut4EzQI95ZNPD13PBluH2qDFFhzDvEP1f p5djGdt1+ZVoeTSmKW4vNQ1mfyhnakgCma4YP792b+472A8cqVU8DN3Ic377ugmUQ4eR HqKYZoLQqTWxOSAVKzKm76at5HQewaJOBP7oaeJ+4fIgYXdJJL+dwE2YNpZ0QZMflFvC uwfbQay2cG3Y0wY+2CptGFHre8UXqhNHRjBcnkF5Qp7zUSokFDSWdgb6xx/2UzrWpolK werw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=0ax6w+yj61HXpendUPlhfpbqehdyL8ebShmSMgY+fIE=; b=lTFlagGmlXST/oUyrDoG2+r6h7os85GflkY12AElgNnvkyDhnOzJnxQxqwfPxJf6JF r7ZxVtFSt+SkjLoCrdMvoRaZ6uAQbrSYBO0yLFWCei0i0V8vV94Zbe7x1WCRaDNTYf7T /vli7uwMq/59ALEbv1y6gpb4ToWWrx3NWVWNaqiceIpcFZriQTMYoHTp11GGw1cMZ7cf xn/Y9YEoFGL/1PuDA3XdKCS6E2DyVi6A1RGLXrQloP5rsGB92pzA9G8QedNGbjQCqoFP M4bSxDzVi2AugniGeGEpwWjdj8GORXN7Z7CiRhzKZCJJkapCyAm+8YE3laz6LqHE9Uy8 gewQ== X-Gm-Message-State: AD7BkJKhI0hV/99htSRbyr8kFmZZgjxItgELfeA5cdZIhsUoCyAIm/+iYDYsvpVM9TGeUw== X-Received: by 10.28.46.82 with SMTP id u79mr15942778wmu.67.1457380021214; Mon, 07 Mar 2016 11:47:01 -0800 (PST) Original-Received: from keima.localdomain (x2f3162a.dyn.telefonica.de. [2.243.22.42]) by smtp.gmail.com with ESMTPSA id m6sm19493999wje.21.2016.03.07.11.46.59 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Mar 2016 11:46:59 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:94026 Archived-At: This is a multi-part message in MIME format. --===============2149610128892790582== Content-Type: multipart/alternative; boundary="------------050308020108090504010304" This is a multi-part message in MIME format. --------------050308020108090504010304 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Otared Kavian > 7. M=C3=A4rz 2016 um 20:28 > Hi Hans, > > It seems that with the new beta (ConTeXt ver: 2016.03.04 10:39 MKIV=20 > beta fmt: 2016.3.7), there is a bug with random itemization. > I cannot tell exactly when this feature has been broken. > The problem is that for instance in the following example, sometimes=20 > the item C is repeated three times, sometimes A is repeated twice, etc. strc-itm.mkvi: \def\strc_itemgroups_collected_flush {\ifconditional\c_strc_itemgroups_randomize =20 \getrandomcount\c_strc_itemgroups_collected_current\plusone\c_strc_itemgr= oups_collected_stored \else \advance\c_strc_itemgroups_collected_current\plusone \fi =20 \ifcsname\??itemgroupstack\number\c_strc_itemgroups_collected_current\end= csname \edef\collecteditemgroupitem{\lastnamedcs}% \ifconditional\c_strc_itemgroups_horizontal \strc_itemgroups_collected_flush_horizontal \else \collecteditemgroupitem + =20 \letbeundefined{\??itemgroupstack\number\c_strc_itemgroups_collected_curr= ent}% \fi \advance\c_strc_itemgroups_collected_done\plusone \fi =20 \ifnum\c_strc_itemgroups_collected_done<\c_strc_itemgroups_collected_stor= ed \expandafter\strc_itemgroups_collected_flush \fi} Wolfgang --------------050308020108090504010304 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
7.= =20 M=C3=A4rz 2016 um 20:28
Hi Hans,

It seem= s=20 that with the new beta (ConTeXt ver: 2016.03.04 10:39 MKIV beta fmt:=20 2016.3.7), there is a bug with random itemization.
I cannot tell=20 exactly when this feature has been broken.
The problem is that for=20 instance in the following example, sometimes the item C is repeated=20 three times, sometimes A is repeated twice, etc.
strc-itm.mkvi:

\def\strc_itemgroups_collected_flush
=C2=A0 {\ifconditional\c_strc_itemgroups_randomize
=C2=A0=C2=A0=C2=A0=C2=A0=20 \getrandomcount\c_strc_itemgroups_collected_current\plusone\c_strc_itemgr= oups_collected_stored
=C2=A0=C2=A0 \else
=C2=A0=C2=A0=C2=A0=C2=A0 \advance\c_strc_itemgroups_collected_current\plu= sone
=C2=A0=C2=A0 \fi
=C2=A0=C2=A0=20 \ifcsname\??itemgroupstack\number\c_strc_itemgroups_collected_current\end= csname
=C2=A0=C2=A0=C2=A0=C2=A0 \edef\collecteditemgroupitem{\lastnamedcs}%
=C2=A0=C2=A0=C2=A0=C2=A0 \ifconditional\c_strc_itemgroups_horizontal
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \strc_itemgroups_collected_flush_hor= izontal
=C2=A0=C2=A0=C2=A0=C2=A0 \else
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \collecteditemgroupitem
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 \letbeundefined{\??itemgroupstack\number\c_strc_itemgroups_collected_curr= ent}%
=C2=A0=C2=A0=C2=A0=C2=A0 \fi
=C2=A0=C2=A0=C2=A0=C2=A0 \advance\c_strc_itemgroups_collected_done\pluson= e
=C2=A0=C2=A0 \fi
=C2=A0=C2=A0=20 \ifnum\c_strc_itemgroups_collected_done<\c_strc_itemgroups_collected_s= tored
=C2=A0=C2=A0=C2=A0=C2=A0 \expandafter\strc_itemgroups_collected_flush
=C2=A0=C2=A0 \fi}

Wolfgang
--------------050308020108090504010304-- --===============2149610128892790582== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2149610128892790582==--