groff
[Top][All Lists]
Advanced

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

Re: [Groff] getting .na, .nh thruout doc for nroff


From: Jon Snader
Subject: Re: [Groff] getting .na, .nh thruout doc for nroff
Date: Wed, 16 Mar 2005 16:04:13 -0500
User-agent: Mutt/1.4.2.1i

On Wed, Mar 16, 2005 at 03:08:59PM -0500, Dorai Sitaram wrote:
> I'd like to avoid adjustment (justification) and hyphenation on a document
> but only if it's being processed by nroff.if n).  In essence, 
> 
> .if n .na
> .if n .nh
> 
> should hold for every paragraph.  What's a robust way to do this?  Trying
> to adding this as a hook (via .am) to various things, like the header
> macros, or even par*start, always seems to miss the first couple
> paragraphs.
> 

I usually just add

.if n \{
.na
.nr HY 0
.\}

at the top of my file.  If you don't want nroff to paginate, add
a .pl 1000 right after the .nr HY 0, and a .pl \n[nl]u at the end
of the file.

jcs




reply via email to

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