Print this page
feedback from Hans

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/mandoc.1
          +++ new/usr/src/man/man1/mandoc.1
↓ open down ↓ 8 lines elided ↑ open up ↑
   9    9  .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  10   10  .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  11   11  .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  12   12  .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  13   13  .\"
  14   14  .\"
  15   15  .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  16   16  .\" Copyright 2012 Nexenta Systems, Inc. All rights reserved.
  17   17  .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
  18   18  .\"
  19      -.Dd Jul 13, 2014
       19 +.Dd Jul 16, 2014
  20   20  .Dt MANDOC 1
  21   21  .Os
  22   22  .Sh NAME
  23   23  .Nm mandoc
  24   24  .Nd format and display UNIX manuals
  25   25  .Sh SYNOPSIS
  26   26  .Nm mandoc
  27   27  .Op Fl V
  28   28  .Op Fl m Ns Ar format
  29   29  .Op Fl O Ns Ar option
↓ open down ↓ 422 lines elided ↑ open up ↑
 452  452  .El
 453  453  .Pp
 454  454  Note that selecting
 455  455  .Fl T Ns Cm lint
 456  456  output mode implies
 457  457  .Fl W Ns Cm warning .
 458  458  .Sh EXAMPLES
 459  459  To page manuals to the terminal:
 460  460  .Pp
 461  461  .Dl $ mandoc \-Wall,stop mandoc.1 2\*(Gt&1 | less
 462      -.Dl $ mandoc mandoc.1 mdoc.3 mdoc.7 | less
      462 +.Dl $ mandoc mandoc.1 mdoc.5 | less
 463  463  .Pp
 464  464  To produce HTML manuals with
 465  465  .Ar style.css
 466  466  as the style-sheet:
 467  467  .Pp
 468      -.Dl $ mandoc \-Thtml -Ostyle=style.css mdoc.7 \*(Gt mdoc.7.html
      468 +.Dl $ mandoc \-Thtml -Ostyle=style.css mdoc.5 \*(Gt mdoc.5.html
 469  469  .Pp
 470  470  To check over a large set of manuals:
 471  471  .Pp
 472  472  .Dl $ mandoc \-Tlint `find /usr/src -name \e*\e.[1-9]`
 473  473  .Pp
 474  474  To produce a series of PostScript manuals for A4 paper:
 475  475  .Pp
 476      -.Dl $ mandoc \-Tps \-Opaper=a4 mdoc.7 man.7 \*(Gt manuals.ps
      476 +.Dl $ mandoc \-Tps \-Opaper=a4 mdoc.5 man.5 \*(Gt manuals.ps
 477  477  .Pp
 478  478  Convert a modern
 479  479  .Xr mdoc 5
 480  480  manual to the older
 481  481  .Xr man 5
 482  482  format, for use on systems lacking an
 483  483  .Xr mdoc 5
 484  484  parser:
 485  485  .Pp
 486  486  .Dl $ mandoc \-Tman foo.mdoc \*(Gt foo.man
↓ open down ↓ 137 lines elided ↑ open up ↑
 624  624  The
 625  625  .Xr man 5
 626  626  .Sq IP
 627  627  and
 628  628  .Sq TP
 629  629  lists render similarly.
 630  630  .El
 631  631  .Sh INTERFACE STABILITY
 632  632  The
 633  633  .Nm 
 634      -utility is Committed, but the details of specific output formats other than
 635      -ASCII are Uncommitted.
      634 +utility is
      635 +.Nm Committed ,
      636 +but the details of specific output formats other than ASCII are
      637 +.Nm Uncommitted .
 636  638  .Sh SEE ALSO
 637  639  .Xr eqn 5 ,
 638  640  .Xr man 5 ,
 639  641  .Xr mandoc_char 5 ,
 640  642  .Xr mdoc 5 ,
 641  643  .Xr mandoc_roff 5 ,
 642  644  .Xr tbl 5
 643  645  .Sh AUTHORS
 644  646  The
 645  647  .Nm
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX