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 pAF8QW4R003171 for ; Tue, 15 Nov 2011 09:26:34 +0100 Received: (qmail 4080 invoked by alias); 15 Nov 2011 08:26:27 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 15 Nov 2011 08:26:26 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx107) with SMTP; 15 Nov 2011 09:26:26 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id pAF8Nqnr029681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Nov 2011 09:23:52 +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 pAF7sQ2I019804; Tue, 15 Nov 2011 09:23:51 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1927052 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 15 Nov 2011 09:23:51 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id pAF8NpTd029765 for ; Tue, 15 Nov 2011 09:23:51 +0100 Received: from anchor-msapost-2.mail.demon.net (anchor-msapost-2.mail.demon.net [195.173.77.165]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id pAF8NbSx029280 for ; Tue, 15 Nov 2011 09:23:41 +0100 Received: from capjwrightlap.che.uea.ac.uk ([139.222.114.70]) by anchor-post-2.mail.demon.net with esmtpsa (AUTH morningstar2) (TLSv1:AES256-SHA:256) (Exim 4.69) id 1RQEIr-0005YX-lr; Tue, 15 Nov 2011 08:23:37 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 References: <7579514189374361.WA.brentlongborough.org@listserv.uni-heidelberg.de> X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4EC2218A.1050201@morningstar2.co.uk> Date: Tue, 15 Nov 2011 08:23:38 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Feature suggestions for XCoffins To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <7579514189374361.WA.brentlongborough.org@listserv.uni-heidelberg.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: 6962 On 14/11/2011 10:08, Brent Longborough wrote: > Hi, Will, > Thank you for that. > > Here's what I currently do for measuring (99.5% of the credit to > @egreg). In this case, I have a logo image, 10 points of space, and a > rule to fill the rest of the measure horizontally: > > \usepackage{xparse} > \ExplSyntaxOn > \NewDocumentCommand{\WidthOfCoffin}{m}{ \box_wd:N #1 } > \NewDocumentCommand{\HeightOfCoffin}{m}{ \box_ht:N #1 } > \NewDocumentCommand{\DepthOfCoffin}{m}{ \box_dp:N #1 } > \ExplSyntaxOff > > \NewCoffin \ruleh > \newlength{\worki} > \setlength{\worki}{\textwidth} > \addtolength{\worki}{-10pt} > \addtolength{\worki}{-\WidthOfCoffin{\logo}} > \SetHorizontalCoffin \ruleh {\color{blue}\rule{\worki}{1pc}} > > Of course, I could have done this by simply measuring the image in the > \logo coffin, or even prescribing its width by other means > ...[width=1in]..., but doing all my copyfitting and layout with coffins > makes for nice, uniform code (and therefore, I suspect, easier to > maintain --- just following the layout of the elementare typographie > cover page made my brain hurt! [No criticism intended other than of my > own limitations!]). Seems like a reasonable request: looked at from a 'design' point of view, this supports something like 'the logo should be inserted 1 cm from the left hand edge, with the space on the right of the logo evenly divided between ...'. I'll add appropriate material to the code today: I'd suggest \CoffinWidth, etc. -- Joseph Wright