Received: via tmail-4.1(11) (invoked by user schoepf) for schoepf; Wed, 26 Jan 2000 15:05:38 +0100 (MET) Received: from mailgate2.zdv.Uni-Mainz.DE (mailgate2.zdv.Uni-Mainz.DE [134.93.8.57]) by mail.Uni-Mainz.DE (8.9.3/8.9.3) with ESMTP id PAA26219 for ; Wed, 26 Jan 2000 15:05:38 +0100 (MET) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF6806.6BF56500" Received: from mail.listserv.gmd.de (mail.listserv.gmd.de [192.88.97.5]) by mailgate2.zdv.Uni-Mainz.DE (8.9.3/8.9.3) with ESMTP id PAA17571 for ; Wed, 26 Jan 2000 15:05:37 +0100 (MET) Received: from mail.listserv.gmd.de (192.88.97.5) by mail.listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <12.3AC9BFA4@mail.listserv.gmd.de>; Wed, 26 Jan 2000 15:05:21 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from RELAY.URZ.UNI-HEIDELBERG.DE by RELAY.URZ.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8b) with spool id 449284 for LATEX-L@RELAY.URZ.UNI-HEIDELBERG.DE; Wed, 26 Jan 2000 15:04:09 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by relay.urz.uni-heidelberg.de (8.8.8/8.8.8) with ESMTP id PAA06829 for ; Wed, 26 Jan 2000 15:04:08 +0100 (MET) Received: from abel.math.umu.se (abel.math.umu.se [130.239.20.139]) by relay.uni-heidelberg.de (8.9.3+Sun/8.9.3) with ESMTP id PAA23113 for ; Wed, 26 Jan 2000 15:04:07 +0100 (MET) Received: from [130.239.20.144] (mac144.math.umu.se [130.239.20.144]) by abel.math.umu.se (8.9.2/8.9.2) with ESMTP id QAA24520 for ; Tue, 25 Jan 2000 16:02:08 +0100 (CET) In-Reply-To: <200001251624.RAA13149@relay.uni-heidelberg.de> References: Frank Mittelbach's message of Fri, 14 Jan 2000 16:08:42 +0100 <200001141508.QAA00970@istrati.zdv.uni-mainz.de> Return-Path: x-vm-v5-data: ([nil nil nil nil nil nil nil nil nil]["1139" "Wed" "26" "January" "2000" "15:05:29" "+0100" "Lars =?iso-8859-1?Q?Hellstr=F6m?=" "Lars.Hellstrom@MATH.UMU.SE" nil "26" "Re: templates for galley (paragraph) formatting" "^Date:" nil nil "1" nil nil nil nil nil]nil) X-Sender: lars@abel.math.umu.se x-mime-autoconverted: from quoted-printable to 8bit by relay.urz.uni-heidelberg.de id PAA06833 Content-class: urn:content-classes:message Subject: Re: templates for galley (paragraph) formatting Date: Wed, 26 Jan 2000 15:05:29 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: =?iso-8859-1?Q?Lars_Hellstr=F6m?= Sender: "Mailing list for the LaTeX3 project" To: "Multiple recipients of list LATEX-L" Reply-To: "Mailing list for the LaTeX3 project" Status: R X-Status: X-Keywords: X-UID: 3513 This is a multi-part message in MIME format. ------_=_NextPart_001_01BF6806.6BF56500 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Michael J. Downes wrote: >There is a related kind of justification problem that is used in AMS >publications: if a figure caption is less than one line in length, >center it, otherwise use block justification: > > |-----------------------------------------------------------| > Figure 1. A short caption > > > |-----------------------------------------------------------| > Figure 2. On the other hand if there is a long caption the > first line should not be centered, the whole caption should > be full-justified like this. > >This is hard to handle by only declarative parameter settings. At some >level it is necessary to program a test for the length of the text. No, it isn't. It is sufficient to first try the Figure 2 layout, then = count how many lines it broke into (using \prevgraf), and set it again in the Figure 1 layout if it turned out to be a single line. With this implementation, your are probably better off with a declarative = interface, as you can then have a template do all the fiddling with linebreaking parameters (you'd probably want a large \linepenalty, for example). Lars Hellstr=F6m ------_=_NextPart_001_01BF6806.6BF56500 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: templates for galley (paragraph) formatting

Michael J. Downes wrote:
>There is a related kind of justification problem = that is used in AMS
>publications: if a figure caption is less than = one line in length,
>center it, otherwise use block = justification:
>
>  = |-----------------------------------------------------------|
>          =         Figure 1. A short = caption
>
>
>  = |-----------------------------------------------------------|
>  Figure 2.  On the other hand  if = there is  a long caption the
>  first line  should not be = centered,  the whole caption should
>  be full-justified like this.
>
>This is hard to handle by only declarative = parameter settings. At some
>level it is necessary to program a test for the = length of the text.

No, it isn't. It is sufficient to first try the Figure = 2 layout, then count
how many lines it broke into (using \prevgraf), and = set it again in the
Figure 1 layout if it turned out to be a single line. = With this
implementation, your are probably better off with a = declarative interface,
as you can then have a template do all the fiddling = with linebreaking
parameters (you'd probably want a large \linepenalty, = for example).

Lars Hellstr=F6m

------_=_NextPart_001_01BF6806.6BF56500--