aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-14 20:57:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-14 20:57:19 +0000
commit00a0a38311b7b5c611e86c220c343a16808bcca4 (patch)
treee51c819672b1565b1831a958e2093ae820d8e0ff /mdoc.7
parent8efa641adfa1302498f66dd86046876c28f45dae (diff)
downloadmandoc-00a0a38311b7b5c611e86c220c343a16808bcca4.tar.gz
mandoc-00a0a38311b7b5c611e86c220c343a16808bcca4.tar.zst
mandoc-00a0a38311b7b5c611e86c220c343a16808bcca4.zip
Clarify that .Em and .Sy are physical, not semantic markup,
explain appropriate usage, and provide some examples. ok jmc@
Diffstat (limited to 'mdoc.7')
-rw-r--r--mdoc.755
1 files changed, 41 insertions, 14 deletions
diff --git a/mdoc.7 b/mdoc.7
index a8c60d5e..ffe357b9 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.234 2014/08/08 16:38:06 schwarze Exp $
+.\" $Id: mdoc.7,v 1.235 2014/08/14 20:57:19 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010, 2011, 2013 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: August 8 2014 $
+.Dd $Mdocdate: August 14 2014 $
.Dt MDOC 7
.Os
.Sh NAME
@@ -1467,16 +1467,29 @@ See also
and
.Sx \&It .
.Ss \&Em
-Denotes text that should be
-.Em emphasised .
-Note that this is a presentation term and should not be used for
-stylistically decorating technical terms.
-Depending on the output device, this is usually represented
-using an italic font or underlined characters.
+Request an italic font.
+If the output device does not provide that, underline.
+.Pp
+This is most often used for stress emphasis (not to be confused with
+importance, see
+.Sx \&Sy ) .
+In the rare cases where none of the semantic markup macros fit,
+it can also be used for technical terms and placeholders, except
+that for syntax elements,
+.Sx \&Sy
+and
+.Sx \&Ar
+are preferred, respectively.
.Pp
Examples:
-.Dl \&.Em Warnings!
-.Dl \&.Em Remarks :
+.Bd -literal -compact -offset indent
+Selected lines are those
+\&.Em not
+matching any of the specified patterns.
+Some of the functions use a
+\&.Em hold space
+to save the pattern space for subsequent retrieval.
+.Ed
.Pp
See also
.Sx \&Bf ,
@@ -2637,10 +2650,24 @@ See also
and
.Sx \&Ss .
.Ss \&Sy
-Format enclosed arguments in symbolic
-.Pq Dq boldface .
-Note that this is a presentation term and should not be used for
-stylistically decorating technical terms.
+Request a boldface font.
+.Pp
+This is most often used to indicate importance or seriousness (not to be
+confused with stress emphasis, see
+.Sx \&Em ) .
+When none of the semantic macros fit, it is also adequate for syntax
+elements that have to be given or that appear verbatim.
+.Pp
+Examples:
+.Bd -literal -compact -offset indent
+\&.Sy Warning :
+If
+\&.Sy s
+appears in the owner permissions, set-user-ID mode is set.
+This utility replaces the former
+\&.Sy dumpdir
+program.
+.Ed
.Pp
See also
.Sx \&Bf ,