Re: Programms to convert Man pages-Mails in LaTeX
Francois Fayard <fayard@ens.fr> writes:
FF> Does anybody knows if some programms that convert man pages, emails,
FF> info pages, etc... in LaTeX ?
Each of those is a little different; the basic answer to each is "no,
not to my knowledge". But:
-- Manual pages are formatted using 'roff. Running 'man -t foo' will
produce a PostScript version of the man page; you can also directly
run 'groff -man -Tps foo.1' on the manual page file. This isn't
LaTeX at all, but it is a nicer printed format than plain text. [1]
-- Formatted Info pages only exist in plain text, with a little binary
markup. But if you snag the source, you should be able to run
'tex' on the main driver file. This is how the printed FSF
documentation works. It's not technically LaTeX, it's TeXInfo, but
it's the same driver in the end.
-- I'm not sure what you'd actually want to do with your email. You
could snarf it into a LaTeX verbatim environment, or print it out
of Emacs (possibly getting some highlighting of headers in the
process).
[1] It looks like current versions of Solaris distribute their man
pages using a subset of DocBook. Now that's just cool.
--
David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
Reply to: