summaryrefslogtreecommitdiffstatshomepage
path: root/roff.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-04 12:06:21 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-04 12:06:21 +0000
commit543980ff972d5b50a51593a306420bb65fbf6b61 (patch)
treea080fdde4da2d2ee8bef446c09ee6825a6215293 /roff.7
parentbe25abe332d021e7a5092c3596a6ffc11e352da9 (diff)
downloadmandoc-543980ff972d5b50a51593a306420bb65fbf6b61.tar.gz
mandoc-543980ff972d5b50a51593a306420bb65fbf6b61.tar.zst
mandoc-543980ff972d5b50a51593a306420bb65fbf6b61.zip
Fix to make horizontal spanners in the layout be properly printed.
mandoc also now warns (so does tbl(1)) if a horizontal spanner is specified along with data. While here, fix up some documentation and uncomment the tbl reference.
Diffstat (limited to 'roff.7')
-rw-r--r--roff.773
1 files changed, 50 insertions, 23 deletions
diff --git a/roff.7 b/roff.7
index 06a94cc3..cdf20a27 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.20 2011/01/03 16:04:41 kristaps Exp $
+.\" $Id: roff.7,v 1.21 2011/01/04 12:06:21 kristaps Exp $
.\"
.\" Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,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 3 2011 $
+.Dd $Mdocdate: January 4 2011 $
.Dt ROFF 7
.Os
.Sh NAME
@@ -681,34 +681,61 @@ This option is not supported by
This option is not supported by
.Xr mandoc 1 .
.It Cm \-
+Replace the data cell (its contents will be lost) with a single
+horizontal line.
This may also be invoked with
.Cm _ .
.It Cm =
+Replace the data cell (its contents will be lost) with a double
+horizontal line.
.It Cm \(ba
Emit a vertical bar instead of data.
.It Cm \(ba\(ba
Emit a double-vertical bar instead of data.
.El
.Pp
+For example, following layout specifies a centre-justified column of
+minimum width 10, followed by vertical bar, followed by a left-justified
+column of minimum width 10, another vertical bar, then a column
+justified about the decimal point in numbers:
+.Pp
+.Dl c10 | l10 | n
+.Pp
Keys may be followed by a set of modifiers.
A modifier is either a modifier key or a natural number for specifying
spacing.
The following case-insensitive modifier keys are available:
-.Bl -tag -width Ds
-.It Cm z
-.It Cm u
-.It Cm e
-.It Cm t
-.It Cm d
-.It Cm f
-Must be followed by a case-insensitive font style:
-.Cm b
-for bold or
-.Cm i
-for italic.
-.It Cm b
-.It Cm i
-.El
+.Cm z ,
+.Cm u ,
+.Cm e ,
+.Cm t ,
+.Cm d ,
+.Cm f ,
+.Cm b ,
+.Cm i ,
+.Cm b ,
+and
+.Cm i .
+All of these are ignored by
+.Xr mandoc 1 .
+.Pp
+The data section follows the last layout row.
+By default, cells in a data section are delimited by a tab.
+This behaviour may be changed with the
+.Cm tab
+option.
+If
+.Cm _
+or
+.Cm =
+is specified, a single or double line, respectively, is drawn across the
+data field.
+If
+.Cm \e-
+or
+.Cm \e=
+is specified, a line is drawn within the data field (i.e., terminating
+within the cell and not draw to the border).
.Sh COMPATIBILITY
This section documents compatibility between mandoc and other other
.Nm
@@ -740,12 +767,12 @@ using the next-line syntax.
.Xr man 7 ,
.Xr mandoc_char 7 ,
.Xr mdoc 7
-.\" .Rs
-.\" .%A M. E. Lesk
-.\" .%T Tbl\(emA Program to Format Tables
-.\" .%D June 11, 1976
-.\" .%U http://www.kohala.com/start/troff/v7/man/tbl/tbl.ps
-.\" .Re
+.Rs
+.%A M. E. Lesk
+.%T Tbl\(emA Program to Format Tables
+.%D June 11, 1976
+.%U http://www.kohala.com/start/troff/v7/man/tbl/tbl.ps
+.Re
.Rs
.%A Joseph F. Ossanna
.%A Brian W. Kernighan