Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
manpage zum drucken vorbereiten
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Wed Apr 11, 2007 8:07 pm    Post subject: manpage zum drucken vorbereiten Reply with quote

wie kann ich eine manpage filtern/konvertieren/formatieren, damit sie in einem editor und ausgedruckt lesbar ist?
und was steckt da dahinter? sind das format-codes für überschriften und links und so, die da reinpfuschen?

die konsole ist leider denkbar ungünstig zum lesen von langen texten ...
Back to top
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Wed Apr 11, 2007 8:18 pm    Post subject: Reply with quote

Wenn du kde nutzt dann kannst du im konqueror einfach mal man:/wget oder sowas eingeben. Da wird aus der manpage ein schönes html gemacht und das kannst du drucken. Ob andere WMs sowas auch mitbringen weiß ich nicht. Mit man2html kannst du auch ohne kde aus jeder manpage ein html machen und dann im browser angucken/drucken.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Wed Apr 11, 2007 8:19 pm    Post subject: Reply with quote

Ich bin mir GANZ sicher, dass es diese Frage (manpages schön ausdrucken) schon mal gab! Find den Thread nur nimmer (Alter > 1 Jahr).
Ich hab damals schon gesagt:
konqueror -> man:/<manpage> -> drucken
Und es kam auch ein doller Befehl mit dem das alles aus der Konsole klappt.
Vllt erinnert sich ja noch wer...

Grüße
Franz
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Wed Apr 11, 2007 8:23 pm    Post subject: Reply with quote

wie ich das sehe, sind man-pages auch in einer Art Markup geschrieben ...

Also ich benutze standarmäßig den vimmanpager anstatt das normale less ... dazu vim mit dem Flag vim-pager emergen und in der /etc/man.conf PAGER auf "vimmanpager" setzen ...

und vom vimmanpager aus kann mit mit dem Kommando ":ha" auch einfach drucken :)
_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
Klaus Meier
Advocate
Advocate


Joined: 18 Apr 2005
Posts: 2908
Location: Bozen

PostPosted: Wed Apr 11, 2007 8:31 pm    Post subject: Reply with quote

Manpages sind im nroff/troff Format erstellt. Naja, das was noch zu Unixzeiten. Inzwischen regelt das groff von Gnu. Und ich weiß nur noch, dass man die genial ausdrucken konnte. Aber den Befehl dafür habe ich jetzt nicht mehr griffbereit. Was hast du denn für einen Drucker, also welches Format braucht der? Mit Postscript wäre es einfach.
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Wed Apr 11, 2007 9:30 pm    Post subject: Reply with quote

man groff
Code:
...
BESCHREIBUNG
       groff ist der Kern eines Textformatiersystems.  Normalerweise startet groff  das  gtroff Kommando  und
       leitet die Ausgabe durch einen Postprozessor für ein bestimmtes Ausgabegerät.  Folgende Ausgabeformate
       stehen zur Verfügung:

       ps     Postscript

       dvi    (DeVice Independent) das TeX Ausgabeformat
...

Evtl auch man2html (zcat /usr/share/man/1/manpage.1.gz | man2html > manpage.htm) oder besser noch man2dvi (man2dvi manpage > manpage.dvi)!


Last edited by l3u on Wed Apr 11, 2007 9:48 pm; edited 2 times in total
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Wed Apr 11, 2007 9:38 pm    Post subject: Reply with quote

mit groff habe ich schon rumexperimentiert ... das liefert aber komische ergebnisse ... vgl: http://www.loz-treffen.de/stuff/shots/test.pdf
_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Wed Apr 11, 2007 9:39 pm    Post subject: Reply with quote

Siehe edit ^^^ Beispiel:
Code:
zcat /usr/share/man/man1/wget.1.gz | groff -Tps -mandoc > wget.ps

bzw.
Code:
bzcat /usr/share/man/man1/wget.1.bz2 | groff -Tps -mandoc > wget.ps

Geht einwandfrei!
Back to top
View user's profile Send private message
Knieper
l33t
l33t


Joined: 10 Nov 2005
Posts: 846

PostPosted: Wed Apr 11, 2007 9:52 pm    Post subject: Re: manpage zum drucken vorbereiten Reply with quote

ichbinsisyphos wrote:
ausgedruckt lesbar ist?


Code:
man -t suchwort > suchwort.ps

Dann evtl. mit ps2pdf konvertieren. Text ist dann auch durchsuch-/markier-/kopierbar.
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Wed Apr 11, 2007 9:54 pm    Post subject: Reply with quote

ich hab kein kde.

mit groff hab ich mich auch schon öfter auseinandergesetzt. so frustriert wie groff hat mich in meinem kurzen linuxleben bisher überhaupt noch nichts. haha.

also, die ausgabe von man zu verwenden, brauch ich gar nicht zu probieren?
direkt die gepackten dateien auszulesen ist halt nicht sehr komfortabel
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Wed Apr 11, 2007 9:57 pm    Post subject: Re: manpage zum drucken vorbereiten Reply with quote

Knieper wrote:
ichbinsisyphos wrote:
ausgedruckt lesbar ist?


Code:
man -t suchwort > suchwort.ps

Dann evtl. mit ps2pdf konvertieren. Text ist dann auch durchsuch-/markier-/kopierbar.


wahnsinn, es funktioniert :wink:
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2546
Location: Konradsreuth (Germany)

PostPosted: Wed Apr 11, 2007 10:00 pm    Post subject: Reply with quote

Das is ja langweilig ;-)
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Tue Apr 17, 2007 2:16 pm    Post subject: Reply with quote

Alternativ, da ich zu faul bin, es selbst aufzusetzen, nutze ich immer gerne das man.cgi der lieben FreeBSDler (Link) - vielleicht hilft's.

ph
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Tue Apr 17, 2007 2:31 pm    Post subject: Reply with quote

ph030 wrote:
Alternativ, da ich zu faul bin, es selbst aufzusetzen, nutze ich immer gerne das man.cgi der lieben FreeBSDler (Link) - vielleicht hilft's.

ph

http://www.linuxmanpages.com/ ^^ ... (und es gibt noch min 1,6Trilliarden andere anbieter ;))
_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum