🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.text.dwb
Article #6

troff/ms problem

#6
From: David A. Berson
Date: Mon, 10 Aug 1992 21:32
55 lines
2072 bytes
I have a problem, and hope that someone can help me out.  I am trying to
put figures at the top of the following page in troff and using the
ms macro package.  I am doing this for two reasons.  First, I really want
the figure at the top of the page. Second, .KF (keep float) meses up
if the figure is two pictures side by side (uses .mk and .rt), or single spaced
text when the document is double spaced.  At the beginning of my document file I
have

.   \" append this to the new page macro
.am NP
.   xx
.   rm xx
..

and then later I have 

.am
'so a_filtered_figure
.ce
a nice caption
..

where a_filtered_figure is a figure already run through pic, eqn, or what have
you.

The problem: if the last sentence on the page breaks across the page then one
word appears before my figure and the rest of the sentence appears after it.
E.g.

This doesn't
---- new page
work
         -----------------------------------------
         |                                       |
         |                                       |
         |                                       |
         |   a nice figure                       |
         |                                       |
         |                                       |
         |                                       |
         -----------------------------------------
the way I want it to!

If the previous page ends with the end of a sentence or a paragraph
then everything works fine, no orphaned words.

By the way, I am running on SunOS 4.0, using the normal packages as far as I
know.

Any suggestions?

Thanks,
--
David A. Berson.
berson@cs.pitt.edu
Technical Details
Message-ID: <16007@pitt.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!ub!dsinc!pitt.edu!pitt!berson@cs.pitt.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!ub!dsinc!pitt.edu!pitt!berson@cs.pitt.edu
From: berson@cs.pitt.edu (David A. Berson)
Newsgroups: alt.text.dwb
Subject: troff/ms problem
Message-ID: <16007@pitt.UUCP>
Date: 10 Aug 92 21:32:32 GMT
Sender: news@cs.pitt.edu
Reply-To: berson@cs.pitt.edu
Organization: Computer Science Dept., Univ. of Pittsburgh
Lines: 55