aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitcbcd971bbd4927814d654460337a6774684b3d8f (patch)
treea16bde046faa01e1fc65164f1b20f8dc356001d7 /roff.7
parentb9c9c79db57653ef779df3251313389a9fe378ec (diff)
downloadmandoc-cbcd971bbd4927814d654460337a6774684b3d8f.tar.gz
mandoc-cbcd971bbd4927814d654460337a6774684b3d8f.tar.zst
mandoc-cbcd971bbd4927814d654460337a6774684b3d8f.zip
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.715
1 files changed, 11 insertions, 4 deletions
diff --git a/roff.7 b/roff.7
index 47db874d..7c26086e 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.41 2013/07/13 19:41:16 schwarze Exp $
+.\" $Id: roff.7,v 1.42 2013/08/08 20:07:47 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
@@ -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