Automated merge with file:///cygdrive/d/srv/hg-home/admin-doc
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 21 Apr 2010 12:36:22 +0300
changeset 368 223240c6ca1b
parent 365 73aacbea1241 (current diff)
parent 367 30f042767f78 (diff)
child 369 26423d889039
Automated merge with file:///cygdrive/d/srv/hg-home/admin-doc
--- 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
+