groff
[Top][All Lists]
Advanced

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

Re: [Groff] Hold image and text together


From: Peter Schaffter
Subject: Re: [Groff] Hold image and text together
Date: Thu, 22 Nov 2012 16:25:34 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

Mikkel --

On Thu, Nov 22, 2012, Mikkel wrote:
> I found this in the mm macro dokumentation. It is something simular i am
> looking for in the mom macro packages
> 
> "To keep text together on a page, such as a paragraph that refers to a
> table (or list, or other item) immediately following, use the KS and KE
> macros. The KS macro begins a block of text to be kept on a single page,
> and the KE macro ends the block."
> Den 21/11/2012 20.28 skrev "mikkel meinike" <address@hidden>:
> 
> > Still in mom. How can i hold together an image and the text that belongs
> > together with that image so that the text will not be separated from the
> > image by page-break?

Wrap the image and the text inside the FLOAT macro.  From the docs,
in the section "images.html#floats-intro:"

 "Floats are usually used for images and graphics, but can contain
  anything you like, including text. Whatever’s in the float will be
  kept together as a block, output immediately if there’s room, or
  deferred to the top of the next output page when there isn’t;
  running text continues to the bottom of the previous page without
  interruption."

You have to be using v2.0 of mom, since earlier versions don't have
the FLOAT macro.  Also, v2.0 being somewhat beta-ish, please post
any bugs you encounter, or suggestions for improvement.

-- 
Peter Schaffter

Author of The Binbrook Caucus
http://www.schaffter.ca



reply via email to

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