You are not logged in.

#1 2009-06-27 09:38:06

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

How to convert [man pages] > [LaTeX]

Hi there,

How to convert [man pages] > [LaTeX] while retaining the formating and all other stuff?
I need it so I could make then a pdf for more convenient use (especially for printing or reading).

Offline

#2 2009-06-27 14:49:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: How to convert [man pages] > [LaTeX]

You can easily dump man pages to a text file and keep the formatting. For example:

man grep > output

From there just wrap it in your LaTeX tags and compile.

Offline

#3 2009-06-27 15:20:09

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: How to convert [man pages] > [LaTeX]

30 seconds of googling:

man -t foo_manpage | ps2pdf14 - foo_manpage.pdf

ps2pdf14 is in the ghostscript package.

Offline

#4 2009-06-27 15:33:21

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: How to convert [man pages] > [LaTeX]

Hohoho wrote:

30 seconds of googling:

man -t foo_manpage | ps2pdf14 - foo_manpage.pdf

ps2pdf14 is in the ghostscript package.

That's pretty cool. Nice.

Offline

#5 2009-06-27 15:40:38

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Re: How to convert [man pages] > [LaTeX]

Thank you for the replies.

How to convert man pages to postscript I knew. However it does not create any bookmarks in the pdf. sad
That's why I asked how to convert it to LaTeX.

Offline

Board footer

Powered by FluxBB