Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v0G8bt9f001166 for ; Mon, 16 Jan 2017 09:37:56 +0100 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx012 [212.227.15.9]) with ESMTPS (Nemesis) id 0MT81G-1c2BzO1cec-00S8EI for ; Mon, 16 Jan 2017 09:37:49 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTPS id v0G8aKNV032019 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Jan 2017 09:36:20 +0100 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 v0G6QKSj027772; Mon, 16 Jan 2017 09:36:19 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 15336522 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 16 Jan 2017 09:36:19 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id v0G8aJ2j004621 for ; Mon, 16 Jan 2017 09:36:19 +0100 Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTPS id v0G8aFEx030472 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 16 Jan 2017 09:36:17 +0100 Received: by mail-wm0-f47.google.com with SMTP id r144so164212438wme.1 for ; Mon, 16 Jan 2017 00:36:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=QNTv5D/bcjDG5vFfnvT7w6F2fItq7l6W6hgkbiCbmtc=; b=KjBhXV2/aikO7LY+74kIMKRP7ntWo5Gj5H8JB0ArmzcOHEesXTVnpiHgEter8iDP7S ax5YaTgosUgj+kD8ljIIC1VXlR3cuZvxDUc/I6GgI9hXdUN2KlGE8NzUraitwwuijRPG l2YMiyB/DkwHvIHHYNycusJWca9Il+AXZ3Fltz7vjr56f5Xlvgp/+annFzVR6rGxGYMn hfMA1qM6yj6AgTJqMafWYmKSliA3ofs2p3zRgc0OUK0ZhtiDgjrbdAZqeML5+cK5J14b dwrvzQV0ICF5vvWJnM+DYsVXZG36c948PQY2sdxIHZ7V5p5cMWVPqPqzNudisnJz5dew 2AHg== X-Gm-Message-State: AIkVDXJEI1VGXB3xMIXJXhBCfmktq1azVWLAua8yoVye9Qzc0ebTkqkvPpi8+FYb6uQ9Ig== X-Received: by 10.28.49.193 with SMTP id x184mr10607583wmx.44.1484555774860; Mon, 16 Jan 2017 00:36:14 -0800 (PST) Received: from palladium.local ([85.133.27.15]) by smtp.gmail.com with ESMTPSA id y97sm27311392wmh.24.2017.01.16.00.36.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 00:36:14 -0800 (PST) References: <587C1AD1.1040401@clear.net.nz> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 16 Jan 2017 08:36:22 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Distinguishing display styles in math mode To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: 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:d6iqXHV8gIk=:2h3S6ajWDY3M4TYmc5/f8trztU 0INTjuZ3gyWl6tnZB/rHfhd7rGL+jb5GITQEgdPk2P5lE8HTNcFrFD5dFsC5ktVPOAh+B4ZUR MX8sKvzbO9oIgEu7jm25uSpNVbUhEQb24263Hh72s1xF6zV6vWHyBME56E+NiZPhkNDmQLuNl KprPYwF9ERLEYtIucA7pvKVNL9niaSoiCvwjTl3K2eDAs4e1t1TqYKv1RkBfl/wbi2sjr7O+9 m7e01N09FyyOrd2bEwx4XubjpVKKPBSkrVzlthzPWuCE9q0zZ64XIMEoKlKzJISk7uFVVzpGK f/WJlhslP5DbNtHtP2ElsERSRpxEWVIf+IB5dRjEUOUd9PlVRmYpCnMSzj/FGHKFb/oaFYzyU Qr5OmG9nus1/vYper5aqg81dhQKpUwnoVFSjklhx3eEYzbZW47T9nJZSfi2gGABxgC1IAwyi3 mzcWg3RbV1AWXG0+6gqoa6cfm6cT2JqmjYTukZWWORa5a+fEbzSn8n6DdeVpWfP/BFmxTkQpr sVY3KAYezYGHRUUd5OoN8lDxMPkfLMzpeUfirMVBrwsRdI7v5SCorWPV6WpRSIS0rFQPsH2sF SW8wno+oZ2qDjVReDtj9UA/9fKgxmJkLTPbPmnt/7JHdm/2I389Sd5jZjLVKHU7pGZgyuJvzC LGfZfRj1gxVIuCl8Lhey9fhIKFkoMJmRs89/R3ENNeJCml0uhTSA99PBszn4J3HGnLMDCDyA8 7FyWmCzrGqnCmCwWcZP5d6SybVWA3QEtP/XOtS5l5eYoF6VRgNH7a6+XI0pD/bJUxI7yxilaw I5RI3E3dHXW7gq7+bAeEWBRGQAqOkrkbVh31AnZe4xkWV79sjTIY5FFY/VChTtZdz8o6gCQNB +cYkgzM42UU65pqKCm+PSs5PNwvu90JN4wF1EePpQVtX9elLYKT87/ymGiXd+hwJZssuSryMF fumdO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maHc1MGbB9FLHeJyDkbLgVcoaXNUqfiplg89lW8dwlT9OL8jEnO156t6KHHlK jFcZwL5e4TMmcpeAWlo/5mLPInZPxWPczTuXOpXbDh8IDACPIovfmhN7UcrEP48PHTbcBprMZ w3gX5+hbu1nhMn01aLabTP/YOgUECt5lJxC5s1pfjf3CQCQHnN1b/Rni8Eulawd5d/hcwis52 lWMEZb7zPwTmfNiyeCQ8N8exoMaPcqcl/keenaSK4u54PBcZiD0EZFDCosR7/4tdaxGu8bFuH 3jzMUNJnIscgrVlboX10zm/F3ekkNwgkPuTrWxhwGprVkgsORIY9Xvg5bHJzxNjzUQiGGyTek hqrgmS2YSq1AWkCZg3lp0UvteNo5E/bCEozpzf1ZjaY X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7938 On 16/01/2017 08:19, David Carlisle wrote: > On 16/01/2017 00:58, Andrew Parsloe wrote: >> Only recently have I learnt to distinguish inline from display-style >> maths mode by using \mode_if_inner:TF. It would be helpful for those of >> us who come to expl3 programming without a good prior grounding in TeX >> if a comment to this effect could be added to the documentation >> (interface3.pdf). >> >> Andrew > > \mode_if_inner:TF is a wrapper around \ifinner so can't be used to > distinguish inline from display. In fact in math \ifinner can't be used > to detect much useful at all, the points at which tex is or is not in > inner math mode are not usually interesting. (Unlike testing for inner > when in vertical mode that tells you if you are in a box or on the main > vertical list) Indeed, one cannot be sure that display math mode will actually be used for any 'display' anyway. See for example the strategy used by breqn: all typesetting is done in inline math mode, using \displaystyle where appropriate. (Display math mode is used only for obtaining the length of the line of text immediately preceding the 'display'.) Almost certainly you want to use \mathchoice (currently there is no interface for this in expl3 beyond the primitive), though you might also look at LuaTeX's additional primitives in this area if you are considering a 'LuaTeX-only' solution. Joseph