[BACK]Return to roff.7 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/roff.7 between version 1.52 and 1.56

version 1.52, 2014/04/05 20:34:57 version 1.56, 2014/08/13 20:34:29
Line 239  pica (~1/6 inch)
Line 239  pica (~1/6 inch)
 .It p  .It p
 point (~1/72 inch)  point (~1/72 inch)
 .It f  .It f
 synonym for  scale
 .Sq u  .Sq u
   by 65536
 .It v  .It v
 default vertical span  default vertical span
 .It m  .It m
Line 254  width of rendered
Line 255  width of rendered
 .Pq en  .Pq en
 character  character
 .It u  .It u
 default horizontal span  default horizontal span for the terminal
 .It M  .It M
 mini-em (~1/100 em)  mini-em (~1/100 em)
 .El  .El
Line 262  mini-em (~1/100 em)
Line 263  mini-em (~1/100 em)
 Using anything other than  Using anything other than
 .Sq m ,  .Sq m ,
 .Sq n ,  .Sq n ,
 .Sq u ,  
 or  or
 .Sq v  .Sq v
 is necessarily non-portable across output media.  is necessarily non-portable across output media.
Line 409  and the number of arguments is not checked.
Line 409  and the number of arguments is not checked.
 Append to a macro definition.  Append to a macro definition.
 The syntax of this request is the same as that of  The syntax of this request is the same as that of
 .Sx \&de .  .Sx \&de .
 It is currently ignored by  
 .Xr mandoc 1 ,  
 as are its children.  
 .Ss \&ami  .Ss \&ami
 Append to a macro definition, specifying the macro name indirectly.  Append to a macro definition, specifying the macro name indirectly.
 The syntax of this request is the same as that of  The syntax of this request is the same as that of
 .Sx \&dei .  .Sx \&dei .
 It is currently ignored by  
 .Xr mandoc 1 ,  
 as are its children.  
 .Ss \&am1  .Ss \&am1
 Append to a macro definition, switching roff compatibility mode off  Append to a macro definition, switching roff compatibility mode off
 during macro execution.  during macro execution.
 The syntax of this request is the same as that of  The syntax of this request is the same as that of
 .Sx \&de1 .  .Sx \&de1 .
 It is currently ignored by  Since
 .Xr mandoc 1 ,  .Xr mandoc 1
 as are its children.  does not implement
   .Nm
   compatibility mode at all, it handles this request as an alias for
   .Sx \&am .
 .Ss \&as  .Ss \&as
 Append to a user-defined string.  Append to a user-defined string.
 The syntax of this request is the same as that of  The syntax of this request is the same as that of
Line 554  Define a
Line 551  Define a
 macro, specifying the macro name indirectly.  macro, specifying the macro name indirectly.
 The syntax of this request is the same as that of  The syntax of this request is the same as that of
 .Sx \&de .  .Sx \&de .
 It is currently ignored by  The request
 .Xr mandoc 1 ,  .Pp
 as are its children.  .D1 Pf . Cm \&dei Ar name Op Ar end
   .Pp
   has the same effect as:
   .Pp
   .D1 Pf . Cm \&de No \e* Ns Bo Ar name Bc Op \e* Ns Bq Ar end
 .Ss \&de1  .Ss \&de1
 Define a  Define a
 .Nm  .Nm
Line 751  or
Line 752  or
 .Pq troff mode ,  .Pq troff mode ,
 COND evaluates to false.  COND evaluates to false.
 .It  .It
 If COND starts with a digit, optionally prefixed by a minus sign,  If COND starts with a parenthesis or with an optionally signed
 it is evaluated as a numerical expression of the form  integer number, it is evaluated according to the rules of
 .Ar number operator number ,  .Sx Numerical expressions
 where  explained below.
 .Ar operator  It evaluates to true if the the result is positive,
 is one of  or to false if the result is zero or negative.
 .Sq < ,  
 .Sq <= ,  
 .Sq = ,  
 .Sq >= ,  
 or  
 .Sq > .  
 .It  .It
 Otherwise, the first character of COND is regarded as a delimiter  Otherwise, the first character of COND is regarded as a delimiter
 and COND evaluates to true if the string extending from its first  and COND evaluates to true if the string extending from its first
Line 904  A register is an arbitrary string value that defines s
Line 899  A register is an arbitrary string value that defines s
 which influences parsing and/or formatting.  which influences parsing and/or formatting.
 Its syntax is as follows:  Its syntax is as follows:
 .Pp  .Pp
 .D1 Pf \. Cm \&nr Ar name Oo +|- Oc Ns Ar value  .D1 Pf \. Cm \&nr Ar name Oo +|- Oc Ns Ar expression
 .Pp  .Pp
 The  For the syntax of
 .Ar value  .Ar expression ,
 may, at the moment, only be an integer.  see
   .Sx Numerical expressions
   below.
 If it is prefixed by a sign, the register will be  If it is prefixed by a sign, the register will be
 incremented or decremented instead of assigned to.  incremented or decremented instead of assigned to.
 .Pp  .Pp
Line 1021  Begin a table, which formats input in aligned rows and
Line 1018  Begin a table, which formats input in aligned rows and
 See  See
 .Xr tbl 7  .Xr tbl 7
 for a description of the tbl language.  for a description of the tbl language.
   .Ss Numerical expressions
   The
   .Sx \&nr ,
   .Sx \&if ,
   and
   .Sx \&ie
   requests accept integer numerical expressions as arguments.
   These are always evaluated using the C
   .Vt int
   type; integer overflow works the same way as in the C language.
   Numbers consist of an arbitrary number of digits
   .Sq 0
   to
   .Sq 9
   prefixed by an optional sign
   .Sq +
   or
   .Sq - .
   .Pp
   The following binary operators are implemented.
   Unless otherwise stated, they behave as in the C language:
   .Pp
   .Bl -tag -width 2n -compact
   .It Ic +
   addition
   .It Ic -
   subtraction
   .It Ic *
   multiplication
   .It Ic /
   division
   .It Ic %
   remainder of division
   .It Ic <
   less than
   .It Ic >
   greater than
   .It Ic ==
   equal to
   .It Ic =
   equal to, same effect as
   .Ic ==
   (this differs from C)
   .It Ic <=
   less than or equal to
   .It Ic >=
   greater than or equal to
   .It Ic <>
   not equal to (corresponds to C
   .Ic != ;
   this one is of limited portability, it is supported by Heirloom roff,
   but not by groff)
   .It Ic &
   logical and (corresponds to C
   .Ic && )
   .It Ic \&:
   logical or (corresponds to C
   .Ic \&|| )
   .It Ic <?
   minimum (not available in C)
   .It Ic >?
   maximum (not available in C)
   .El
   .Pp
   There is no concept of precendence; evaluation proceeds from left to right,
   except when subexpressions are enclosed in parantheses.
   Inside parentheses, whitespace is ignored.
 .Sh ESCAPE SEQUENCE REFERENCE  .Sh ESCAPE SEQUENCE REFERENCE
 The  The
 .Xr mandoc 1  .Xr mandoc 1
Line 1109  Digit width space character.
Line 1173  Digit width space character.
 Anchor definition; ignored by  Anchor definition; ignored by
 .Xr mandoc 1 .  .Xr mandoc 1 .
 .Ss \eB\(aq Ns Ar string Ns \(aq  .Ss \eB\(aq Ns Ar string Ns \(aq
 Test whether  Interpolate
   .Sq 1
   if
 .Ar string  .Ar string
 is a numerical expession; ignored by  conforms to the syntax of
 .Xr mandoc 1 .  .Sx Numerical expressions
   explained above and
   .Sq 0
   otherwise.
 .Ss \eb\(aq Ns Ar string Ns \(aq  .Ss \eb\(aq Ns Ar string Ns \(aq
 Bracket building function; ignored by  Bracket building function; ignored by
 .Xr mandoc 1 .  .Xr mandoc 1 .
Line 1236  Vertical motion; ignored by
Line 1305  Vertical motion; ignored by
 .Xr mandoc 1 .  .Xr mandoc 1 .
 .Ss \ew\(aq Ns Ar string Ns \(aq  .Ss \ew\(aq Ns Ar string Ns \(aq
 Interpolate the width of the  Interpolate the width of the
 .Ar string ;  .Ar string .
 ignored by  The
 .Xr mandoc 1 .  .Xr mandoc 1
   implementation assumes that after expansion of user-defined strings, the
   .Ar string
   only contains normal characters, no escape sequences, and that each
   character has a width of 24 basic units.
 .Ss \eX\(aq Ns Ar string Ns \(aq  .Ss \eX\(aq Ns Ar string Ns \(aq
 Output  Output
 .Ar string  .Ar string
Line 1274  The term
Line 1347  The term
 refers to groff version 1.15.  refers to groff version 1.15.
 .Pp  .Pp
 .Bl -dash -compact  .Bl -dash -compact
   .It
   The
   .Sq u
   scaling unit is the default terminal unit.
   In traditional troff systems, this unit would change depending on the
   output media.
 .It  .It
 In mandoc, the  In mandoc, the
 .Sx \&EQ ,  .Sx \&EQ ,

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.56

CVSweb