Mailing List Archive

how to create a postscript level 2 file for printing manuals?
Sorry I must asked FAQ. But I cannot form effective keywords to google it
out.

How to print a manual? If I piple output of man(1) to lpr(1), the printed
document is fixed-width font while too close to the paper margin to bind.
Can I create postscript manual output where normal paragraph using
variable-width font (like with xman(1)), the paper has some margin, and
(better) with page number?

Thank you.
--
锐业软服 Real SoftService
http://www.realss.com
技术服务电话: 0086 592 2086411
Technical Contact: 0086 592 2086411



--
gentoo-user@gentoo.org mailing list
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
On Thu, 7 Oct 2004 15:52:52 +0800, 韡武 张 <zhangweiwu@realss.com> wrote:
> Sorry I must asked FAQ. But I cannot form effective keywords to google it
> out.
>
> How to print a manual? If I piple output of man(1) to lpr(1), the printed
> document is fixed-width font while too close to the paper margin to bind.
> Can I create postscript manual output where normal paragraph using
> variable-width font (like with xman(1)), the paper has some margin, and
> (better) with page number?

Try the following commands (replace manpage with the man page you want to make):

mandvi manpage > manpage.dvi
dvips manpage.dvi -o manpage.ps

You should get nicely formatted postscript output. This required the
package "app-text/tetex" to be installed.
--
Calvin Walton

--
gentoo-user@gentoo.org mailing list
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
Hmm. I've been watching this, sounds good, but...

I have no mandvi, emerge -s can't find it. I already have tetex.

So where is this little gem?

++ kevin


On Thu, 7 Oct 2004 17:18:41 -0400, Calvin Walton
<calvin.walton@gmail.com> wrote:
> On Thu, 7 Oct 2004 15:52:52 +0800, 韡武 张 <zhangweiwu@realss.com> wrote:
> > Sorry I must asked FAQ. But I cannot form effective keywords to google it
> > out.
> >
> > How to print a manual? If I piple output of man(1) to lpr(1), the printed
> > document is fixed-width font while too close to the paper margin to bind.
> > Can I create postscript manual output where normal paragraph using
> > variable-width font (like with xman(1)), the paper has some margin, and
> > (better) with page number?
>
> Try the following commands (replace manpage with the man page you want to make):
>
> mandvi manpage > manpage.dvi
> dvips manpage.dvi -o manpage.ps
>
> You should get nicely formatted postscript output. This required the
> package "app-text/tetex" to be installed.
> --
> Calvin Walton
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>


--
Go back to the top: I almost always top-post
Kevin O'Gorman, PhD

--
gentoo-user@gentoo.org mailing list
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
On 8 Oct 2004, at 15:44, Kevin O'Gorman wrote:
> Hmm. I've been watching this, sounds good, but...
>
> I have no mandvi, emerge -s can't find it. I already have tetex.

Try man2dvi.
^
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
Ah, sooooooo.... Much better now.

Thanks,

++ kevin


On Fri, 8 Oct 2004 16:23:19 -0700, Andrew Farmer <andfarm@teknovis.com> wrote:
> On 8 Oct 2004, at 15:44, Kevin O'Gorman wrote:
> > Hmm. I've been watching this, sounds good, but...
> >
> > I have no mandvi, emerge -s can't find it. I already have tetex.
>
> Try man2dvi.
> ^
>
>
>


--
Go back to the top: I almost always top-post
Kevin O'Gorman, PhD

--
gentoo-user@gentoo.org mailing list
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
Well, not completely perfect yet.

I tried
man2dvi emerge >emerge.dvi ; dvips emerge
and got output with the page headers chopped off (page 1 started with
the line that
normall comes after "NAME".) From experience I knew to try
dvips -t letter emerge
because I use letter-sized paper rather than A4. The result was pages
with no footers.
man2dvi does not seem to take switches, and -t letter for sure did not work.

Help?

++ kevin


On Sat, 9 Oct 2004 10:13:07 -0700, Kevin O'Gorman <kogorman@gmail.com> wrote:
> Ah, sooooooo.... Much better now.
>
> Thanks,
>
> ++ kevin
>
>
>
>
> On Fri, 8 Oct 2004 16:23:19 -0700, Andrew Farmer <andfarm@teknovis.com> wrote:
> > On 8 Oct 2004, at 15:44, Kevin O'Gorman wrote:
> > > Hmm. I've been watching this, sounds good, but...
> > >
> > > I have no mandvi, emerge -s can't find it. I already have tetex.
> >
> > Try man2dvi.
> > ^
> >
> >
> >
>
>
> --
> Go back to the top: I almost always top-post
> Kevin O'Gorman, PhD
>


--
Go back to the top: I almost always top-post
Kevin O'Gorman, PhD

--
gentoo-user@gentoo.org mailing list
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
On Sat, 9 Oct 2004 10:29:24 -0700, Kevin O'Gorman <kogorman@gmail.com> wrote:
> I tried
> man2dvi emerge >emerge.dvi ; dvips emerge
> and got output with the page headers chopped off.
> From experience I knew to try
> dvips -t letter emerge
> because I use letter-sized paper rather than A4. The result was pages
> with no footers.
> Help?

Hmm. I've done a bit more reading of man pages, and it looks like a
simpler command can do what you want:
man -t manpage > manpage.ps
This outputs in letter size here.

--
Calvin Walton

--
gentoo-user@gentoo.org mailing list
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
I get the same result as with the "dvips -t letter", namely an
otherwise clean output
that is missing the footers.

++ kevin


On Sat, 9 Oct 2004 22:22:31 -0400, Calvin Walton
<calvin.walton@gmail.com> wrote:
> On Sat, 9 Oct 2004 10:29:24 -0700, Kevin O'Gorman <kogorman@gmail.com> wrote:
> > I tried
> > man2dvi emerge >emerge.dvi ; dvips emerge
> > and got output with the page headers chopped off.
> > From experience I knew to try
> > dvips -t letter emerge
> > because I use letter-sized paper rather than A4. The result was pages
> > with no footers.
> > Help?
>
> Hmm. I've done a bit more reading of man pages, and it looks like a
> simpler command can do what you want:
> man -t manpage > manpage.ps
> This outputs in letter size here.
>
>
>
> --
> Calvin Walton
>
> --
> gentoo-user@gentoo.org mailing list
>
>


--
Go back to the top: I almost always top-post
Kevin O'Gorman, PhD

--
gentoo-user@gentoo.org mailing list
Re: how to create a postscript level 2 file for printing manuals? [ In reply to ]
On Sun, 10 Oct 2004 3:22 pm, Calvin Walton wrote:
> On Sat, 9 Oct 2004 10:29:24 -0700, Kevin O'Gorman <kogorman@gmail.com>
wrote:
> > I tried
> > man2dvi emerge >emerge.dvi ; dvips emerge
> > and got output with the page headers chopped off.
> > From experience I knew to try
> > dvips -t letter emerge
> > because I use letter-sized paper rather than A4. The result was
> > pages with no footers.
> > Help?
>
> Hmm. I've done a bit more reading of man pages, and it looks like a
> simpler command can do what you want:
> man -t manpage > manpage.ps
> This outputs in letter size here.


According to the man manpage, -t filters the page through groff.

groff is a wrapper for the troff formating program.

troff is too complicated for me... ;)

So instead I chose to run the kde help center, which includes a manpage
and infopage browser, from where you may print through your normal
printing system. I use Cups which means you may choose to print to a
pdf. I know Cups is configured to use A4 pages. :D

Now thats only helpful if you aren't doing it by batch, but its one
idea.
--

The person who makes no mistakes does not usually make anything.


--
gentoo-user@gentoo.org mailing list