Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id q02ElEWx022376 for ; Mon, 2 Jan 2012 15:47:15 +0100 Received: (qmail 20877 invoked by alias); 2 Jan 2012 14:47:09 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 02 Jan 2012 14:47:08 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx079) with SMTP; 02 Jan 2012 15:47:08 +0100 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 q02EigFF005342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Jan 2012 15:44:43 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id q02Ege4K012595; Mon, 2 Jan 2012 15:44:42 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1960687 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 2 Jan 2012 15:28:05 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id q02ES5oC004338 for ; Mon, 2 Jan 2012 15:28:05 +0100 Received: from anchor-msapost-2.mail.demon.net (anchor-msapost-2.mail.demon.net [195.173.77.165]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q02ERr4V012063 for ; Mon, 2 Jan 2012 15:27:57 +0100 Received: from morningstar2.demon.co.uk ([80.176.134.7] helo=palladium.local) by anchor-post-2.mail.demon.net with esmtpsa (AUTH morningstar2) (TLSv1:AES256-SHA:256) (Exim 4.69) id 1Rhirh-0003XY-jV; Mon, 02 Jan 2012 14:27:53 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 References: <4EFDA406.8030702@latex-project.org> <4EFE2DB8.2080805@morningstar2.co.uk> <1ngcr82t9io26$.dlg@nililand.de> X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4F01BEE8.8070208@morningstar2.co.uk> Date: Mon, 2 Jan 2012 14:27:52 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: \leavevmode? To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <1ngcr82t9io26$.dlg@nililand.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Sender is in whitelist: joseph.wright@MORNINGSTAR2.CO.UK); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnBi0P5cROEGjO+pG7NAH/K+tf9SrVFtpLrKONl 2T9EL4W4U4jgzLbnCcGpk1z/zwmKT/K1fv3lD0=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6980 On 31/12/2011 11:51, Ulrike Fischer wrote: > Well I thought about > > \hbox_unpack_clear:N\c_empty_box > > (as the documentation of source3 says that \hbox_unpack_clear:N is > \unhbox). > > And as I can see l3galley uses > > \tex_unhbox:D \c_empty_box. > > Is there any real difference between the three variants? Must be an older version of l3galley: that version is not in the SVN. As you say, \hbox_unpack_clear:N = \unhbox while \hbox_unpack:N = \unhcopy. I'd prefer the latter as nothing should be modifying a constant (\c_...), even though here it would make no difference. Both primitives \unhbox and \unhcopy do what is needed here, so there is no difference in terms of outcome. > And is the name in l3galley "\galley_leave_vmode:" stable? I would > prefer a standard command instead of my own local > \leavemode-command. \leavemode is imho such a central concept that > it should have a standard name. There are two slightly separate concepts here (I think - Frank may correct me). One is the need in the galley mode to leave vertical mode, and the other is the more general case of 'some arbitrary command'. The galley has to work a particular way, and it therefore may on occasion do it's own thing. So I suspect that \galley_... is not the right place for a general 'ensure we are not in vertical mode' function. That leaves the question of where /is/ the right place. One obvious suggestion is \mode_leave_vertical: or \mode_ensure_not_vertical: (the latter is a bit awkward if more accurate). -- Joseph Wright