summaryrefslogtreecommitdiffstatshomepage
path: root/roff.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-17 00:37:26 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-17 00:37:26 +0000
commit03376da86c3d9c465d64fcaa4e0d00331f5133fe (patch)
treea7cc4b723c9b889a364a4b014623e3b81b7d8cbd /roff.7
parentf5c2df1cceaa1530ce8e5dc49f5b6d0b884e520f (diff)
downloadmandoc-03376da86c3d9c465d64fcaa4e0d00331f5133fe.tar.gz
mandoc-03376da86c3d9c465d64fcaa4e0d00331f5133fe.tar.zst
mandoc-03376da86c3d9c465d64fcaa4e0d00331f5133fe.zip
libroff now intelligently throws away `am', `ami', `am1', `de', `dei',
and `de1'. This is also documented in roff.7.
Diffstat (limited to 'roff.7')
-rw-r--r--roff.758
1 files changed, 53 insertions, 5 deletions
diff --git a/roff.7 b/roff.7
index 42e6e7e9..276704db 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.2 2010/05/16 22:28:33 kristaps Exp $
+.\" $Id: roff.7,v 1.3 2010/05/17 00:37:26 kristaps Exp $
.\"
.\" Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -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: May 16 2010 $
+.Dd $Mdocdate: May 17 2010 $
.Dt ROFF 7
.Os
.Sh NAME
@@ -65,9 +65,56 @@ Thus, the following are equivalent:
.Sh REFERENCE
This section is a canonical reference of all macros, arranged
alphabetically.
+.Ss \&am
+The syntax of this macro is the same as that of
+.Sx \&ig ,
+except that a leading argument must be specified.
+It is ignored, as are its children.
+.Ss \&ami
+The syntax of this macro is the same as that of
+.Sx \&ig ,
+except that a leading argument must be specified.
+It is ignored, as are its children.
+.Ss \&am1
+The syntax of this macro is the same as that of
+.Sx \&ig ,
+except that a leading argument must be specified.
+It is ignored, as are its children.
+.Ss \&de
+The syntax of this macro is the same as that of
+.Sx \&ig ,
+except that a leading argument must be specified.
+It is ignored, as are its children.
+.Ss \&dei
+The syntax of this macro is the same as that of
+.Sx \&ig ,
+except that a leading argument must be specified.
+It is ignored, as are its children.
+.Ss \&de1
+The syntax of this macro is the same as that of
+.Sx \&ig ,
+except that a leading argument must be specified.
+It is ignored, as are its children.
.Ss \&if
-Begins a conditional.
-Has the following syntax:
+Begins a conditional that always evaluates to false.
+If a conditional is false, its children are not processed, but are
+syntactically interpreted to preserve the integrity of the input
+document.
+Thus,
+.Pp
+.D1 \&.if t \e .ig
+.Pp
+will discard the
+.Sq \&.ig ,
+which may lead to interesting results, but
+.Pp
+.D1 \&.if t \e .if t \e{\e
+.Pp
+will continue to syntactically interpret to the block close of the final
+conditional.
+Sub-conditionals, in this case, obviously inherit the truth value of
+the parent.
+This macro has the following syntax:
.Pp
.Bd -literal -offset indent -compact
\&.if COND \e{\e
@@ -88,7 +135,8 @@ BODY...
BODY
.Ed
.Pp
-COND is a conditional (TODO: document).
+COND is a conditional (for the time being, this always evaluates to
+false).
.Pp
If the BODY section is begun by an escaped brace
.Sq \e{ ,