Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t73AxZ4B003867 for ; Mon, 3 Aug 2015 12:59:36 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx009) with ESMTPS (Nemesis) id 0LusrZ-1Yve2T3lTt-0107VO for ; Mon, 03 Aug 2015 12:59:29 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t73AvWt9030783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Aug 2015 12:57:33 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t72M131j022919; Mon, 3 Aug 2015 12:57:32 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 12492468 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 3 Aug 2015 12:57:32 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t73AlWAS007978 for ; Mon, 3 Aug 2015 12:47:32 +0200 Received: from sipsolutions.net (s3.sipsolutions.net [5.9.151.49]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t73AlQB2023859 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 3 Aug 2015 12:47:28 +0200 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_RC3) (envelope-from ) id 1ZMDHB-0001oT-Pk for latex-l@listserv.uni-heidelberg.de; Mon, 03 Aug 2015 12:47:25 +0200 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-AKZWW0+WtWnGHDCnPtHf" X-Mailer: Evolution 3.16.3-1 Mime-Version: 1.0 Message-ID: <1438598845.15593.28.camel@sipsolutions.net> Date: Mon, 3 Aug 2015 12:47:25 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Benjamin Berg Subject: Difference between \addtocounter and \int_gincr inside tabularx To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:yIY6sSEgn68=:gM6ONV4zw3u/BJn4BzMJK1QI6k Dj+hGR8lBFXeSQbw0kspc0u2qZ3RRUL009ZuQJ0zSrCCnL2N5IkcGtZGBx9jJ+LT6dKyXl3IG fOxyA3Oiqbt2LlRP0yNTUmW/rf7pJLf6SYKGR2cerVsqzHG7YLOnkor19eEJ/93bsMQZ6L9yu D3atrPMjvguaW3GkEXv4KnJc4e/OJllTcJE5kU04RXUN2VIQHctXb4wEHcEECnJ027se557gz /++ystq5+G/hRiKIEGqePqHlU4i+4EGTYEzezOYmGUHFTdalDWyGfYWzFqY4rSdqrz6HtwDIe aLyGc1my3L3uIaHmb+DRN/K1BXbK96Imwi+BCOW/3Zjlqe44E3zpeXE4ZlRzQUBWpQrKcdhWt vvHz+iCaFrYFU3xOwYt2HE6Ys4PXCD3dQcbDVL2btYSfchCq5R2HwgYwEqNQQzto3CfbK//Fd rlpm+FzOlKt9ocnDTDoRD+FyLZtddXc+VpF0P4JsOcWqYxnyhRCcrYryxG1/iZmW5/tohggXq +dOxXoq8p9RNvuR7Utqt7Vs5u1glBLfwS3Q/sy/EVM28lQUWzPe0brz/4xjFqUqs7sphucAHQ 4PnhCLoQ5bmz7fndlQnSnAjw14plowwE5vxoQ6izv/S4mOBYsQDgtlJtY7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cPdJzvg1G0MMUjQTVw5ynP7RO4AXnexYXoCMds7 i7k0rni07w3kijXkzOCVHHwXMkv+qJm8qmoN1vsHr5qKdRGt+WNViE0G2j/oHeqOXkFvGci9D 0deobojpaRmEZ9s+sznfmTBbxB6sbLlvxC4HmpG5SCcHeaEXcJ7q504mMRz84gMPC7ontG0RZ i5ub1q9ld7Bld4mXuneUgJ9/YvWI3LtjMozXC+CbKHhvdrpn3shIwpAlG4edfuFdq6L/E5NHK YzU4BPJAWCRAmzndNjAxjZnxnYNOi4qPabPxge4oOd8TxK1frZz7lQfkeKWooprrERgWDFV49 AahJoELzPDgc2L3OX+Ofnn7IpT/MYaU1cz3jeyYI3EaHDNwRiEFm X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7810 --=-AKZWW0+WtWnGHDCnPtHf Content-Type: multipart/mixed; boundary="=-lJpPV4qdOmRc+2+dzd0M" --=-lJpPV4qdOmRc+2+dzd0M Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I am having trouble to understand what the difference between \addtocounter and \int_gincr:N is. When used inside a tabularx environment, the \int_* functions do not work correctly, but the normal LaTeX counters do. Maybe the idea of even using counters in a tabularx environment like this is totally wrong[1], but it feels to me like the two commands should behave in the same way. So either I am not grasping some concepts (feel free to just point me to an explanation) or there might even be a small bug. So, the attached document will print two tables. For each cell the output of "\int_use:N \g_test_int,~\thetestcount" is displayed. The counter is behaving as I expect while the \g_test_int has different values inside tabularx. tabularx: 3, 1 4, 2 1, 3 2, 4 3, 1 4, 2 and tabular: 1, 1 2, 2 3, 3 4, 4 1, 1 2, 2 It looks like this has to do with the fact that in the second row there are empty cells. But it still baffles me, that the latex counters behave correctly, while latex 3 integers do not. Regards, Benjamin [1] It is very likely that I will drop the tabularx anyways. --=-lJpPV4qdOmRc+2+dzd0M Content-Disposition: attachment; filename="tabularcount.tex" Content-Type: text/x-tex; name="tabularcount.tex"; charset="UTF-8" Content-Transf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hYnVsYXJ4 fQoKXHZzcGFjZXsxY219ClxyZXNldAoKXGJlZ2lue3RhYnVsYXJ9e2xsbGx9CiAgICBcdGVzdCAm IFx0ZXN0ICYKICAgIFx0ZXN0ICYgXHRlc3QgXGNyCiAgICBcdGVzdCAmIFx0ZXN0ClxlbmR7dGFi dWxhcn0KClxlbmR7ZG9jdW1lbnR9Cg== --=-lJpPV4qdOmRc+2+dzd0M-- --=-AKZWW0+WtWnGHDCnPtHf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlW/Rr0ACgkQJddvdAxOva4M9wCdEeA+I53xS2S5KYH1/CEamQNO 9YYAnjPZZQ5WBytKYhS/NXl5vQIwwdHv =mqx1 -----END PGP SIGNATURE----- --=-AKZWW0+WtWnGHDCnPtHf--