bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66332] [mom] Image caption not centered when set to render after l


From: Peter Schaffter
Subject: [bug #66332] [mom] Image caption not centered when set to render after label
Date: Mon, 14 Oct 2024 15:42:47 -0400 (EDT)

Follow-up Comment #3, bug #66332 (group groff):

To reply to the OP:

[comment #0 original submission:]
> Hi!
> 
> I am using groff 1.23.0 and the mom macro package that comes with it.
> 
> When I try to embed an image with a centered caption which should be
rendered below the image and centered (the default, as I figure, if I read the
documentation correctly), all I can produce is a caption set in flush left
(sorry, if this is wrong terminology - what I mean is: left aligned):
> 

> .DOCTYPE DEFAULT
> .PRINTSTYLE TYPESET
> .CAPTIONS IMG FONT I SIZE -1 COLOR darkgrey QUAD CENTER
> .CAPTION_AFTER_LABEL ALL
> 
> .START
> In the following picture, you can see a marvelous view which is to
> be had on the tour:
> .PDF_IMAGE IMG_4025.pdf 160p 120p CAPTION "View of the Raetikon Group
approximately two thirds along the way."
> .PP
> It can be experienced somewhat into the tour, about two thirds along
> the way.


> 
> You can see the rendered result in the pdf attached to this report.
> 
> When I remove the .CAPTION_AFTER_LABEL the caption is rendered above the
image and is centered. I've attached that document as well.
> 
> Did I missinterpret the intended behavior? If so, is there a way to achiev a
centered caption  _below_  the image?

Mom places labels below images and captions above unless CAPTION_AFTER_LABEL
IMG (or ALL), in which case the label and the caption are joined and set below
the image.  If you have CAPTION_AFTER_LABEL but don't provide a label, mom has
nothing to attach the caption to and defaults to what you see in your output.

In this instance, what you want is a LABEL, not a CAPTION.  The following
demonstrates:

.DOCTYPE DEFAULT
.PRINTSTYLE TYPESET
.LABELS IMG FONT I SIZE -1 COLOR darkgrey QUAD CENTER
.START
In the following picture, you can see a marvelous view which is to
be had on the tour:
.PDF_IMAGE pdf-image.pdf 160p 120p LABEL "View of the Raetikon Group
approximately two thirds along 
.PP
It can be experienced somewhat into the tour, about two thirds along
the way



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66332>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]