[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Centering pictures and captions with mm
From: |
Bob Diertens |
Subject: |
Re: [Groff] Centering pictures and captions with mm |
Date: |
Tue, 25 Oct 2005 15:02:03 +0200 |
User-agent: |
Mutt/1.5.5i |
On Mon, Oct 24, 2005 at 05:27:22PM +0200, Daniel de Kok wrote:
> Hi,
>
> I have a fairly newbie-ish question about the mm marcos. I have some
> pictures that I would like to center. To keep the captions of the image on
> the same page, I have enclosed the picture and display in a block. The
> problem that I have is that with setting the display formatting to CB, the
> caption is included in the block, and both the picture and the caption are
> not centered. For example:
>
> .DS CB
> .PS
> right
> arrow
> box
> arrow
> .PE
> .FG "An example picture"
> .DE
This is caused by a bug in the mm macro package.
Figure titles are printed with address@hidden which defers it to
either address@hidden or address@hidden depending on whether it
appears between a DS/DE pair.
Unfortunately, the condition is wrong.
Change line 2548 (v1.19 - don't know if this is different with another version)
.ie \\n[ds*lvl]<1&\\n[df*float]=0 \{\
into
.ie (\\n[ds*lvl]<1)&(\\n[df*float]=0) \{\
Hope this helps,
Bob