--- a/man.rst Tue Apr 06 21:00:10 2010 +0300
+++ b/man.rst Wed Apr 21 12:36:22 2010 +0300
@@ -50,3 +50,39 @@
TODO
Bolt by print char, back one char and print same char.
Underscore by printing undescore, back one char and print char.
+
+* Development tools.
+
+To preview local man page:
+
+ $ groff -man -Tascii foo.1 # 7-bit char
+ $ groff -man -Tlatin1 foo.1 # 8-bit char
+ $ groff -man -Tlatin1 foo.1 | less
+ $ groff -a -mandoc -Tlatin1 e.1
+ $ groff -man -Tutf8 foo.1
+
+ $ man ./foo.1 # if slashes in path - use file
+
+ $ mkdir man1
+ $ cp foo.1 man1
+ $ man -M . 1 foo # without slashes search in MANPATH item
+ # and add /man1 to each item
+
+* Output format.
+
+** .txt.
+
+ $ man foo | col -b >.foo.txt
+
+** .ps.
+
+ $ groff -Tps foo >foo.ps
+
+** .ps.
+
+ $ groff -Tps foo >foo.ps
+
+** .dvi.
+
+ $ groff -Tdvi foo >foo.dvi
+