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 q08BmucL013427 for ; Sun, 8 Jan 2012 12:48:57 +0100 Received: (qmail 24880 invoked by alias); 8 Jan 2012 11:48:51 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 08 Jan 2012 11:48:51 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx081) with SMTP; 08 Jan 2012 12:48:51 +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 q08Bkbif006982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 8 Jan 2012 12:46:37 +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 q07N140t011115; Sun, 8 Jan 2012 12:46:36 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1924915 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 8 Jan 2012 12:46:36 +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 q08Bka3h014403 for ; Sun, 8 Jan 2012 12:46:36 +0100 Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id q08BkPfF008357 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sun, 8 Jan 2012 12:46:28 +0100 Received: by eaai13 with SMTP id i13so2467712eaa.22 for ; Sun, 08 Jan 2012 03:46:25 -0800 (PST) Received: by 10.213.27.17 with SMTP id g17mr2495437ebc.24.1326023185220; Sun, 08 Jan 2012 03:46:25 -0800 (PST) Received: from irwin.vpn.uni-freiburg.de (p548063EB.dip.t-dialin.net. [84.128.99.235]) by mx.google.com with ESMTPS id a60sm275598275eeb.4.2012.01.08.03.46.24 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jan 2012 03:46:24 -0800 (PST) Received: by irwin.vpn.uni-freiburg.de (Postfix, from userid 500) id 2D8261B65F; Sun, 8 Jan 2012 12:46:19 +0100 (CET) Mail-Followup-To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE References: <4F0970A8.3040503@latex-project.org> <4F0978F2.9000703@nag.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message-ID: <20120108114619.GA29129@oberdiek.my-fqdn.de> Date: Sun, 8 Jan 2012 12:46:19 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Heiko Oberdiek Subject: Re: trial typesetting support To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4F0978F2.9000703@nag.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p6sJLDpZh614LdjtwLz6vwIUAQlbERmWST/okZTHxGc3AyPHoKoTFc8JIGYP HdjLZl+0A3rTB0Yc68I9X4p/N6iVwYIGGRxl+hCI0mhvnVwm7+ixQXY04ms3h7okfGSIZ7kpjJbk NL+ZZDdGUgb28cgw2kTX3QsQcSGhgl8my/99YCcVFDLEpP68k1Q2t1+Slk=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: 6986 On Sun, Jan 08, 2012 at 11:07:30AM +0000, David Carlisle wrote: > On 08/01/2012 10:32, Frank Mittelbach wrote: > >I just had a look into the following question on TeX.sx: > > > >http://tex.stackexchange.com/questions/40330/centered-captions-containing-vref-may-not-always-appear-as-expected > > > > >Anybody some good ideas how to address topic this in a general fashion? > > > > Not really, but tabularx has to play this game a lot Another player is amsmath. It needs to know the width of the equations in order to know where to put the equation number (e.g. below the equation if there is no place in the same line). The measuring is done in macro \gmeasure@, it sets the switch \ifmeasuring@ to true. A more general mechanism would be nice, then a package can disable some stuff (e.g. writing to .aux files) in trial runs without knowing and supporting all the packages that uses trials. Elements of that feature could be: * A trial switch or something like that. If the trial switch is available and turned on, then the macros can automatically disable some stuff not needed in the trial. * A possibility to record undo steps in a hook that is called after the trial. A group resets the state for local assignments. But that does not work for global settings of counters. Or if a acronym macro expands the acronym in the first use und uses the short form in later uses. After the trial the acronym should be reset to the state before the trial. Also there might be differnt purposes of the trial that might require different steps for suppressing or undoing: * Measurement (amsmath, ...) * ...? Yours sincerely Heiko Oberdiek