diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-02-17 19:22:50 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-02-17 19:22:50 +0000 |
commit | c0900b4fe8fcf2e19807556533a1f575ed036481 (patch) | |
tree | 95bce05887f5eaca1fd8e0bf977a80ff7e24bb76 /mdoc.7 | |
parent | 47e28c8d77f2c5329bd6869db1dfeeab0e846525 (diff) | |
download | mandoc-c0900b4fe8fcf2e19807556533a1f575ed036481.tar.gz mandoc-c0900b4fe8fcf2e19807556533a1f575ed036481.tar.zst mandoc-c0900b4fe8fcf2e19807556533a1f575ed036481.zip |
Macro documentation for `Xr'.
Re-added macros following `Vt' (lost somehow?).
Removed `Xr' <3 stipulations.
Diffstat (limited to 'mdoc.7')
-rw-r--r-- | mdoc.7 | 37 |
1 files changed, 34 insertions, 3 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mdoc.7,v 1.83 2010/01/30 08:55:39 kristaps Exp $ +.\" $Id: mdoc.7,v 1.84 2010/02/17 19:22:50 kristaps Exp $ .\" .\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 30 2010 $ +.Dd $Mdocdate: February 17 2010 $ .Dt MDOC 7 .Os . @@ -872,7 +872,7 @@ then the macro accepts an arbitrary number of arguments. .It Sx \&Ux Ta Yes Ta Yes Ta n .It Sx \&Va Ta Yes Ta Yes Ta n .It Sx \&Vt Ta Yes Ta Yes Ta >0 -.It Sx \&Xr Ta Yes Ta Yes Ta >0, <3 +.It Sx \&Xr Ta Yes Ta Yes Ta >0 .It Sx \&br Ta \&No Ta \&No Ta 0 .It Sx \&sp Ta \&No Ta \&No Ta 1 .El @@ -1925,6 +1925,37 @@ See also and .Sx \&Va . . +.Ss \&Xc +.Ss \&Xo +.Ss \&Xr +Link to another manual +.Pq Qq cross-reference . +Its calling syntax is +.Pp +.D1 \. Ns Sx \&Xr Cm name section +.Pp +The +.Cm name +and +.Cm section +are the name and section of the linked manual. If +.Cm section +is followed by non-punctuation, an +.Sx \&Ns +is inserted into the token stream. This behaviour is for compatibility +with +.Xr groff 1 . +.Pp +Examples: +.Bd -literal -offset indent +\&.Xr mandoc 1 +\&.Xr mandoc 1 ; +\&.Xr mandoc 1 s behaviour +.Ed +. +.Ss \&br +.Ss \&sp +. . .Sh COMPATIBILITY This section documents compatibility with other roff implementations, at |