Re: info format - how to print



In comp.os.linux.misc Roger Leigh <${rleigh}@invalid.whinlatter.ukfsn.org.invalid>:
> Michael Heiming <michael+USENET@xxxxxxxxxxxxxx> writes:

>> In comp.os.linux.misc mkolacki@xxxxxxxxxxxxxx <mkolacki@xxxxxxxxxxxxxx>:
>>> hey guys.
>>
>>> i have just come across the problem to print the information issued on
>>> grub.
>>
>>> no problem with manpages, falied to print 'info grub'.
>>
>> Err? This is the same procedure you can enter "info:grub" or
>> "man:grub" into konqueror "Location" bar and select "Print..." or
>> use from the next xterm:
>>
>> man grub | col -b | a2ps

> You would print a man page with

> $ man -t manpage | lpr

> which would run it through "groff -man -T ps" to correctly transform
> it to PostScript. Printing the text output will give inferior
> results, since you get plain ASCII nroff output with no formatting.

At least it would work.

>> info grub | col -b | a2ps

> .info is not intended to be printable. It would give you vastly
> better quality output if you ran the original .texi source through
> tex, and printed that:

> [unpack source]
> $ cd docs
> $ pdftex grub.texi
> $ lpr grub.texi [or xpdf grub.texi]

> This way you will actually get proper indexes, contents and
> pagination, not to mention proper typeset text.

Using "info:<whatever>" in konqueror should work as nicely, but
never really intended to print out a man page or even some info
page. For whatever reason there's this "script" on my box,
allowing to make .pdf out of man pages.

cat ~/bin/man2pdf.sh
#/bin/sh

man -t $1 | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
-sOutputFile=$1.pdf -c save pop -f -

Perhaps wrote it ones just to see it'd work. See no real reason
to print out man pages, they are there just to have a quick look
if unsure about some syntax. Should be a nice amount if someone
would print them all out..;-)

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@xxxxxxxxxx | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 229: wrong polarity of neutron flow
.