From 8b651017045b6d0c838fc6c177ca83e694c6196a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 17 Feb 2010 19:22:50 +0000 Subject: Macro documentation for `Xr'. Re-added macros following `Vt' (lost somehow?). Removed `Xr' <3 stipulations. --- mdoc.7 | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/mdoc.7 b/mdoc.7 index b789ddf4..1e93bc8d 100644 --- a/mdoc.7 +++ b/mdoc.7 @@ -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 -- cgit