summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-08-08 20:07:25 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-08-08 20:07:25 +0000
commit0dc3be2d0449f6ba032fd8e0387e6ff72440a83d (patch)
treea873d6a569d0bacfe5c68088c673914bb50cb005 /share
parent2f9b6d279c5948db4107760ba67c4f67f6c2a3e8 (diff)
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 'share')
-rw-r--r--share/man/man7/roff.715
1 files changed, 11 insertions, 4 deletions
diff --git a/share/man/man7/roff.7 b/share/man/man7/roff.7
index 2351ff62e2c..13b6304563f 100644
--- a/share/man/man7/roff.7
+++ b/share/man/man7/roff.7
@@ -1,4 +1,4 @@
-.\" $OpenBSD: roff.7,v 1.21 2013/07/13 19:44:14 schwarze Exp $
+.\" $OpenBSD: roff.7,v 1.22 2013/08/08 20:07:24 schwarze Exp $
.\"
.\" Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010, 2011 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: July 13 2013 $
+.Dd $Mdocdate: August 8 2013 $
.Dt ROFF 7
.Os
.Sh NAME
@@ -144,12 +144,19 @@ escape followed by an indicator: B (bold), I (italic), R (regular), or P
A numerical representation 3, 2, or 1 (bold, italic, and regular,
respectively) may be used instead.
.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