|
Home > Archive > Unix Programming > May 2005 > groff and page length
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
groff and page length
|
|
| Andrei Voropaev 2005-05-14, 1:23 pm |
| Hello!
Sorry if this is off-topic (though man pages writing is part of
programming 
Any kind soul knows how can I tell groff to terminate the page where
the document ends? For example with short docs the command
groff -Tlatin1 mydoc
prints lots of empty lines after the end of text, trying to make the
page length set by .pl request. If I try to make .pl very small, then
vertical formatting gets screwed up. So, I wonder, if there's any way
to tell troff (or maybe grotty) to stop after the last line of text and
not to emit all emply lines to page end.
Thank you.
--
Minds, like parachutes, function best when open
| |
| phil_gg04@treefic.com 2005-05-14, 1:23 pm |
| > Any kind soul knows how can I tell groff to terminate the page where
> the document ends? For example with short docs the command
>
> groff -Tlatin1 mydoc
>
> prints lots of empty lines after the end of text
The "normal" way to get this effect is to strip duplicate blank lines
in the final output, e.g. man invokes "$PAGER -s". This makes me think
that it is not possible to get groff to do this directly; if it were
possible, they would have done it.
--Phil.
| |
| Fletcher Glenn 2005-05-14, 1:23 pm |
| Andrei Voropaev wrote:
> Hello!
>
> Sorry if this is off-topic (though man pages writing is part of
> programming 
>
> Any kind soul knows how can I tell groff to terminate the page where
> the document ends? For example with short docs the command
>
> groff -Tlatin1 mydoc
>
> prints lots of empty lines after the end of text, trying to make the
> page length set by .pl request. If I try to make .pl very small, then
> vertical formatting gets screwed up. So, I wonder, if there's any way
> to tell troff (or maybe grotty) to stop after the last line of text and
> not to emit all emply lines to page end.
>
> Thank you.
>
groff?? I thought that the functional equivalent of the "man" command
was: "nroff -man manfile | more".
--
Fletcher Glenn
| |
| phil_gg04@treefic.com 2005-05-14, 1:23 pm |
| > groff?? I thought that the functional equivalent of the "man"
command
> was: "nroff -man manfile | more".
For GNU, man nroff => "emulate nroff command with groff"
groff is the generic application; when given -T
(ascii|latin1|utf8|etc.) it has nroff behaviour.
--Phil.
| |
| Andrei Voropaev 2005-05-17, 2:49 am |
| On 2005-05-13, phil_gg04@treefic.com <phil_gg04@treefic.com> wrote:
>
> The "normal" way to get this effect is to strip duplicate blank lines
> in the final output, e.g. man invokes "$PAGER -s". This makes me think
> that it is not possible to get groff to do this directly; if it were
> possible, they would have done it.
Ok. Thank you. Then, I'll look for other ways 
--
Minds, like parachutes, function best when open
|
|
|
|
|