Print this page
9718 update mandoc to 1.14.4

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/mandoc_roff.5
          +++ new/usr/src/man/man5/mandoc_roff.5
   1      -.\"     $Id: roff.7,v 1.94 2017/07/05 12:25:17 schwarze Exp $
        1 +.\"     $Id: roff.7,v 1.96 2018/04/10 00:52:30 schwarze Exp $
   2    2  .\"
   3    3  .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
   4      -.\" Copyright (c) 2010,2011,2013-2015,2017 Ingo Schwarze <schwarze@openbsd.org>
        4 +.\" Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
   5    5  .\"
   6    6  .\" Permission to use, copy, modify, and distribute this software for any
   7    7  .\" purpose with or without fee is hereby granted, provided that the above
   8    8  .\" copyright notice and this permission notice appear in all copies.
   9    9  .\"
  10   10  .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11   11  .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12   12  .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13   13  .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14   14  .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15   15  .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16   16  .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17   17  .\"
  18      -.Dd $Mdocdate: July 5 2017 $
       18 +.Dd $Mdocdate: April 10 2018 $
  19   19  .Dt ROFF 5
  20   20  .Os
  21   21  .Sh NAME
  22   22  .Nm roff
  23   23  .Nd roff language reference for mandoc
  24   24  .Sh DESCRIPTION
  25   25  The
  26   26  .Nm roff
  27   27  language is a general purpose text formatting language.
  28   28  Since traditional implementations of the
↓ open down ↓ 1312 lines elided ↑ open up ↑
1341 1341  This is a Heirloom extension and currently ignored.
1342 1342  .It Ic \&nm Op Ar start Op Ar inc Op Ar space Op Ar indent
1343 1343  Print line numbers.
1344 1344  Currently unsupported.
1345 1345  .It Ic \&nn Op Ar number
1346 1346  Temporarily turn off line numbering.
1347 1347  Currently unsupported.
1348 1348  .It Ic \&nop Ar body
1349 1349  Execute the rest of the input line as a request or macro line.
1350 1350  Currently unsupported.
1351      -.It Ic \&nr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression
     1351 +.It Ic \&nr Ar register Oo Cm + Ns | Ns Cm - Oc Ns Ar expression Op Ar stepsize
1352 1352  Define or change a register.
1353 1353  A register is an arbitrary string value that defines some sort of state,
1354 1354  which influences parsing and/or formatting.
1355 1355  For the syntax of
1356 1356  .Ar expression ,
1357 1357  see
1358 1358  .Sx Numerical expressions
1359 1359  below.
1360 1360  If it is prefixed by a sign, the register will be
1361 1361  incremented or decremented instead of assigned to.
1362 1362  .Pp
     1363 +The
     1364 +.Ar stepsize
     1365 +is used by the
     1366 +.Ic \en+
     1367 +auto-increment feature.
     1368 +It remains unchanged when omitted while changing an existing register,
     1369 +and it defaults to 0 when defining a new register.
     1370 +.Pp
1363 1371  The following
1364 1372  .Ar register
1365 1373  is handled specially:
1366 1374  .Bl -tag -width Ds
1367 1375  .It Cm nS
1368 1376  If set to a positive integer value, certain
1369 1377  .Xr mdoc 5
1370 1378  macros will behave in the same way as in the
1371 1379  .Em SYNOPSIS
1372 1380  section.
↓ open down ↓ 91 lines elided ↑ open up ↑
1464 1472  Ignored because insecure.
1465 1473  .It Ic \&ptr
1466 1474  Print the names and positions of all traps on standard error output.
1467 1475  This is a groff extension and currently ignored.
1468 1476  .It Ic \&pvs Op Oo Cm + Ns | Ns Cm - Oc Ns Ar height
1469 1477  Change post-vertical spacing.
1470 1478  This is a groff extension and currently ignored.
1471 1479  .It Ic \&rchar Ar glyph ...
1472 1480  Remove glyph definitions.
1473 1481  Currently unsupported.
1474      -.It Ic \&rd Op Ar prompt Op Ar agument ...
     1482 +.It Ic \&rd Op Ar prompt Op Ar argument ...
1475 1483  Read from standard input.
1476 1484  Currently ignored.
1477 1485  .It Ic \&recursionlimit Ar maxrec maxtail
1478 1486  Set the maximum stack depth for recursive macros.
1479 1487  This is a Heirloom extension and currently ignored.
1480 1488  .It Ic \&return Op Ar twice
1481 1489  Exit a macro and return to the caller.
1482 1490  Currently unsupported.
1483 1491  .It Ic \&rfschar Ar font glyph ...
1484 1492  Remove font-specific fallback glyph definitions.
↓ open down ↓ 504 lines elided ↑ open up ↑
1989 1997  Set glyph drawing color (groff extension); ignored by
1990 1998  .Xr mandoc 1 .
1991 1999  For short names, there are variants
1992 2000  .No \em Ns Ar c
1993 2001  and
1994 2002  .No \em( Ns Ar cc .
1995 2003  .Ss \eN\(aq Ns Ar number Ns \(aq
1996 2004  Character
1997 2005  .Ar number
1998 2006  on the current font.
1999      -.Ss \en Ns Bq Ar name
     2007 +.Ss \en Ns Oo +|- Oc Ns Bq Ar name
2000 2008  Interpolate the number register
2001 2009  .Ar name .
2002 2010  For short names, there are variants
2003 2011  .No \en Ns Ar c
2004 2012  and
2005 2013  .No \en( Ns Ar cc .
     2014 +If the optional sign is specified,
     2015 +the register is first incremented or decremented by the
     2016 +.Ar stepsize
     2017 +that was specified in the relevant
     2018 +.Ic \&nr
     2019 +request, and the changed value is interpolated.
2006 2020  .Ss \eo\(aq Ns Ar string Ns \(aq
2007 2021  Overstrike, writing all the characters contained in the
2008 2022  .Ar string
2009 2023  to the same output position.
2010 2024  In terminal and HTML output modes,
2011 2025  only the last one of the characters is visible.
2012 2026  .Ss \ep
2013 2027  Break the output line at the end of the current word.
2014 2028  .Ss \eR\(aq Ns Ar name Oo +|- Oc Ns Ar number Ns \(aq
2015 2029  Set number register; ignored by
↓ open down ↓ 173 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX