tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* Improper formatting of table with T&
@ 2021-03-06  4:54 Anthony J. Bentley
  2021-03-28 20:36 ` Ingo Schwarze
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony J. Bentley @ 2021-03-06  4:54 UTC (permalink / raw)
  To: tech

Hi,

mairix(1) contains this table:

.TS
box tab(&);
lb | lb | lb | lb.
letter & short for & example & meaning
=
.T&
l | l | l | l.
d & days   & 3d & 3 days
w & weeks  & 2w & 2 weeks (14 days)
m & months & 5m & 5 months (150 days)
y & years  & 4y & 4 years (4*365 days)
.TE

groff renders it like so:

+--------+-------------+-----------+-----------------------+
|letter  |  short for  |  example  |  meaning              |
+--------+-------------+-----------+-----------------------+
|d       |  days       |  3d       |  3 days               |
|w       |  weeks      |  2w       |  2 weeks (14 days)    |
|m       |  months     |  5m       |  5 months (150 days)  |
|y       |  years      |  4y       |  4 years (4*365 days) |
+--------+-------------+-----------+-----------------------+

mandoc renders it similarly, but bolds both the header's bottom
border and the first line following (the 'days' line):

+--------+-------------+-----------+-----------------------+
|letter  |  short for  |  example  |  meaning              |
+========+=============+===========+=======================+
|d       |  days       |  3d       |  3 days               |
|w       |  weeks      |  2w       |  2 weeks (14 days)    |
|m       |  months     |  5m       |  5 months (150 days)  |
|y       |  years      |  4y       |  4 years (4*365 days) |
+--------+-------------+-----------+-----------------------+

I couldn't find any explanation in our tbl(7) page of what T& does,
although it's mentioned briefly in the "Layout" section. We should
probably document it somewhere.

-- 
Anthony J. Bentley
--
 To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-07  9:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-06  4:54 Improper formatting of table with T& Anthony J. Bentley
2021-03-28 20:36 ` Ingo Schwarze
2021-03-29  0:33   ` Ingo Schwarze
2021-04-07  9:34   ` Anthony J. Bentley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).