summaryrefslogtreecommitdiffstats
path: root/roff.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-08-08 20:07:47 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-08-08 20:07:47 +0000
commit35783c93c6366fa20e6ed5149c9c25091d01a222 (patch)
tree4266ad56af17b4c240366f90f69b31b3faa383b4 /roff.7
parent20b1a5ef7f370e238b774d0fb38b8cb6bedae40f (diff)
downloadmandoc-35783c93c6366fa20e6ed5149c9c25091d01a222.tar.gz
Implement the roff(7) font-escape sequence \f(BI "bold+italic".
This improves the formatting of about 40 base manuals and reduces groff-mandoc formatting differences in base by about 5%.
Diffstat (limited to 'roff.7')
-rw-r--r--roff.711
1 files changed, 9 insertions, 2 deletions
diff --git a/roff.7 b/roff.7
index 03fa4e72..c7d5c9d5 100644
--- a/roff.7
+++ b/roff.7
@@ -146,12 +146,19 @@ respectively) may be used instead.
The indicator or numerical representative may be preceded by C
(constant-width), which is ignored.
.Pp
+The two-character indicator
+.Sq BI
+requests a font that is both bold and italic.
+It may not be portable to old roff implementations.
+.Pp
Examples:
.Bl -tag -width Ds -offset indent -compact
.It Li \efBbold\efR
-Write in bold, then switch to regular font mode.
+Write in \fBbold\fP, then switch to regular font mode.
.It Li \efIitalic\efP
-Write in italic, then return to previous font mode.
+Write in \fIitalic\fP, then return to previous font mode.
+.It Li \ef(BIbold italic\efP
+Write in \f(BIbold italic\fP, then return to previous font mode.
.El
.Pp
Text decoration is