Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 22 Jan 2009 16:17:01 +0100 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id n0MFGxeG017873 for ; Thu, 22 Jan 2009 16:16:59 +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 n0MFCfiU022176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Jan 2009 16:12:41 +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 n0MBVUeH006126; Thu, 22 Jan 2009 16:12:36 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 226769 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 22 Jan 2009 16:12:36 +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 n0MFCZvo031443 for ; Thu, 22 Jan 2009 16:12:36 +0100 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n0MFCWCR016208 for ; Thu, 22 Jan 2009 16:12:36 +0100 Received: by ug-out-1314.google.com with SMTP id 29so690529ugo.38 for ; Thu, 22 Jan 2009 07:12:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.86.36.17 with SMTP id j17mr440453fgj.0.1232637152038; Thu, 22 Jan 2009 07:12:32 -0800 (PST) References: <49758499.5080004@morningstar2.co.uk> <150532.45020.qm@web82002.mail.mud.yahoo.com> <49782F88.9090501@morningstar2.co.uk> <18808.14594.895857.730057@morse.mittelbach-online.de> <859ec5630901220603q48bbe1e4kb6043967e3581051@mail.gmail.com> <597382.5271.qm@web82008.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Whitelist: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id n0MFCavo031444 Message-ID: <859ec5630901220712k114d02c9t93c28fc8cd74b662@mail.gmail.com> Date: Thu, 22 Jan 2009 16:12:32 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: =?ISO-8859-1?Q?Morten_H=F8gholm?= Subject: Re: changing page dimensions in mid-document (was Re: Key points of LaTex3) To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <597382.5271.qm@web82008.mail.mud.yahoo.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -2.599 () BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 22 Jan 2009 15:17:01.0260 (UTC) FILETIME=[798E00C0:01C97CA4] Status: R X-Status: X-Keywords: X-UID: 5624 On Thu, Jan 22, 2009 at 3:55 PM, Paul Thompson wrote: > Thanks for taking the time to look at newlfm. > > What I do there is 1) set dimensions for Page 1 based on letterhead stuff; 2) at the same time, compute requirements for Page 2-K; 3) store Page 2-K in variables; 4) after shipping out Page Z, reset dimensions to the stored values if stored values are there, and then reset the "change dimension variable" after finishing the change. That's all I need, really. This is fine but not solving the problems Frank is talking about. What happens when a paragraph is broken across two pages with different text widths? > > Your comment about the calc package is very interesting. I don't understand why it will not work. Can you direct me to something to clarify the problem? With calc loaded \setlength\mylen{1pt+2pt} expands to (after a few steps) \calc@assign@generic\calc@Askip\calc@Bskip \mylen {1pt+2pt} with \calc@assign@generic defined as \def\calc@assign@generic#1#2#3#4{\let\calc@A#1\let\calc@B#2% \calc@open(#4!% \global\calc@A\calc@B\endgroup#3\calc@B} Therefore, \global\setlength results in \calc@A being \let globally to \calc@Askip and \mylen being set locally. -- Morten