Received: via tmail-4.1(11) (invoked by user schoepf) for schoepf; Wed, 26 Jan 2000 15:31:02 +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 PAA02945 for ; Wed, 26 Jan 2000 15:31:02 +0100 (MET) MIME-Version: 1.0 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 PAA19851 for ; Wed, 26 Jan 2000 15:30:56 +0100 (MET) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BF6809.F8555700" Received: from mail.listserv.gmd.de (192.88.97.5) by mail.listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <11.C4AE27E9@mail.listserv.gmd.de>; Wed, 26 Jan 2000 15:30:41 +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 449372 for LATEX-L@RELAY.URZ.UNI-HEIDELBERG.DE; Wed, 26 Jan 2000 15:29:29 +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 PAA09638 for ; Wed, 26 Jan 2000 15:29:28 +0100 (MET) Received: from coreserver.core.ucl.ac.be (coreserver.core.ucl.ac.be [130.104.4.39]) by relay.uni-heidelberg.de (8.9.3+Sun/8.9.3) with ESMTP id PAA28420 for ; Wed, 26 Jan 2000 15:29:28 +0100 (MET) Received: from core.ucl.ac.be ([130.104.121.63]) by coreserver.core.ucl.ac.be (Netscape Messaging Server 3.5) with ESMTP id 384 for ; Wed, 26 Jan 2000 15:31:46 +0100 Organization: =?iso-8859-1?Q?CORE=2C_Universit=E9_Catholique_de_Louvain?= References: Frank Mittelbach's message of Fri, 14 Jan 2000 16:08:42 +0100 <200001141508.QAA00970@istrati.zdv.uni-mainz.de> Return-Path: X-Mailer: Mozilla 4.71 (Macintosh; I; PPC) x-vm-v5-data: ([nil nil nil nil nil nil nil nil nil]["1328" "Wed" "26" "January" "2000" "15:30:43" "+0100" "jfm" "jfm@CORE.UCL.AC.BE" nil "34" "Re: templates for galley (paragraph) formatting" "^Date:" nil nil "1" nil nil nil nil nil]nil) x-mime-autoconverted: from quoted-printable to 8bit by relay.urz.uni-heidelberg.de id PAA09639 X-Accept-Language: en-GB,en,en-US,fr-FR,fr,fr-BE,fr-CH,fr-CA,es,es-ES,es-AR,es-CO,es-MX,nl,nl-BE Content-class: urn:content-classes:message Subject: Re: templates for galley (paragraph) formatting Date: Wed, 26 Jan 2000 15:30:43 +0100 Message-ID: <388F0515.B5A9A1CF@core.ucl.ac.be> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "jfm" 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: 3514 This is a multi-part message in MIME format. ------_=_NextPart_001_01BF6809.F8555700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Lars Hellstr=F6m wrote: > > 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), With \looseness-1 I would add... > 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 Jean-Fran=E7ois Mertens. ------_=_NextPart_001_01BF6809.F8555700 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: templates for galley (paragraph) formatting

Lars Hellstr=F6m wrote:
>
> 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:
> >
> >  = |-----------------------------------------------------------|
> = >           &nb= sp;      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),

With \looseness-1 I would add...

>          =             &= nbsp;           &n= bsp;           &nb= sp;  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


        = Jean-Fran=E7ois Mertens.

------_=_NextPart_001_01BF6809.F8555700--