Skip to content

Commit 110e3cc

Browse files
committed
Don't abuse \term to get italic.
1 parent 68f0e28 commit 110e3cc

File tree

7 files changed

+155
-157
lines changed

7 files changed

+155
-157
lines changed

source/atomics.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@
240240
to all other atomic accesses to that object. \end{note}
241241

242242
\pnum
243-
An atomic operation \term{A} that performs a release operation on an atomic
244-
object \term{M} synchronizes with an atomic operation \term{B} that performs
245-
an acquire operation on \term{M} and takes its value from any side effect in the
246-
release sequence headed by \term{A}.
243+
An atomic operation \textit{A} that performs a release operation on an atomic
244+
object \textit{M} synchronizes with an atomic operation \textit{B} that performs
245+
an acquire operation on \textit{M} and takes its value from any side effect in the
246+
release sequence headed by \textit{A}.
247247

248248
\pnum
249249
There shall be a single total order \textit{S} on all \tcode{memory_order_seq_cst}

source/basic.tex

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
type \tcode{T} (Clause~\ref{conv}, \ref{expr.type.conv},
412412
\ref{expr.dynamic.cast}, \ref{expr.static.cast}, \ref{expr.cast}), or
413413
\item an expression that is not a null pointer constant, and has type
414-
other than \term{cv} \tcode{void*}, is converted to the type pointer to \tcode{T}
414+
other than \cv\ \tcode{void*}, is converted to the type pointer to \tcode{T}
415415
or reference to \tcode{T} using a standard conversion
416416
(Clause~\ref{conv}), a \tcode{dynamic_cast}~(\ref{expr.dynamic.cast}) or
417417
a \tcode{static_cast}~(\ref{expr.static.cast}), or
@@ -1551,9 +1551,9 @@
15511551
\grammarterm{template-argument}{s}.
15521552

15531553
\pnum
1554-
Let \term{X} be the lookup set produced by unqualified
1555-
lookup~(\ref{basic.lookup.unqual}) and let \term{Y} be the lookup set produced
1556-
by argument dependent lookup (defined as follows). If \term{X} contains
1554+
Let \textit{X} be the lookup set produced by unqualified
1555+
lookup~(\ref{basic.lookup.unqual}) and let \textit{Y} be the lookup set produced
1556+
by argument dependent lookup (defined as follows). If \textit{X} contains
15571557
\begin{itemize}
15581558
\item a declaration of a class member, or
15591559

@@ -1563,10 +1563,10 @@
15631563
\item a declaration that is neither a function nor a function template
15641564

15651565
\end{itemize}
1566-
then \term{Y} is empty. Otherwise \term{Y} is the set of declarations
1566+
then \textit{Y} is empty. Otherwise \textit{Y} is the set of declarations
15671567
found in the namespaces associated with the argument types as described
15681568
below. The set of declarations found by the lookup of the name is the
1569-
union of \term{X} and \term{Y}. \begin{note} The namespaces and classes
1569+
union of \textit{X} and \textit{Y}. \begin{note} The namespaces and classes
15701570
associated with the argument types can include namespaces and classes
15711571
already considered by the ordinary unqualified lookup. \end{note}
15721572
\begin{example}
@@ -3358,9 +3358,8 @@
33583358

33593359
\item the pointer is used as the operand of a
33603360
\tcode{static_cast}~(\ref{expr.static.cast}), except when the conversion
3361-
is to pointer to \term{cv} \tcode{void}, or to pointer to \term{cv}
3362-
\tcode{void} and subsequently to pointer to either \term{cv}
3363-
\tcode{char} or \term{cv} \tcode{unsigned char}, or
3361+
is to pointer to \cv\ \tcode{void}, or to pointer to \cv\ \tcode{void}
3362+
and subsequently to pointer to either \cv\ \tcode{char} or \cv\ \tcode{unsigned char}, or
33643363

33653364
\item the pointer is used as the operand of a
33663365
\tcode{dynamic_cast}~(\ref{expr.dynamic.cast}). \begin{example}
@@ -4203,8 +4202,8 @@
42034202
\end{floattable}
42044203

42054204
\pnum
4206-
In this International Standard, the notation \term{cv} (or
4207-
\term{cv1}, \term{cv2}, etc.), used in the description of types,
4205+
In this International Standard, the notation \cv\ (or
4206+
\cvqual{cv1}, \cvqual{cv2}, etc.), used in the description of types,
42084207
represents an arbitrary set of cv-qualifiers, i.e., one of
42094208
\{\tcode{const}\}, \{\tcode{volatile}\}, \{\tcode{const},
42104209
\tcode{volatile}\}, or the empty set.
@@ -4227,7 +4226,7 @@
42274226
\pnum
42284227
Cv-qualifiers applied to an array
42294228
type attach to the underlying element type, so the notation
4230-
``\term{cv} \tcode{T}'', where \tcode{T} is an array type, refers to
4229+
``\cv\ \tcode{T}'', where \tcode{T} is an array type, refers to
42314230
an array whose elements are so-qualified. An array type whose elements
42324231
are cv-qualified is also considered to have the same cv-qualifications
42334232
as its elements.%

source/declarators.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,7 @@
13751375
non-dependent type \tcode{void} is equivalent to an empty parameter
13761376
list.
13771377
\indextext{parameter!\idxcode{void}}%
1378-
Except for this special case, a parameter shall not have type \term{cv}
1379-
\tcode{void}.
1378+
Except for this special case, a parameter shall not have type \cv\ \tcode{void}.
13801379
If the
13811380
\grammarterm{parameter-declaration-clause}
13821381
\indextext{argument~type!unknown}%

source/lex.tex

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@
14821482
also referred to as narrow
14831483
string literals. A narrow string literal has type
14841484
\indextext{literal!string!type~of}%
1485-
``array of \term{n} \tcode{const char}'', where \term{n} is the size of
1485+
``array of \textit{n} \tcode{const char}'', where \textit{n} is the size of
14861486
the string as defined below, and has static storage
14871487
duration~(\ref{basic.stc}).
14881488

@@ -1495,7 +1495,7 @@
14951495
\indextext{literal!string!\idxcode{char16_t}}%
14961496
A \grammarterm{string-literal} that begins with \tcode{u}, such as \tcode{u"asdf"}, is
14971497
a \tcode{char16_t} string literal. A \tcode{char16_t} string literal has
1498-
type ``array of \term{n} \tcode{const char16_t}'', where \term{n} is the
1498+
type ``array of \textit{n} \tcode{const char16_t}'', where \textit{n} is the
14991499
size of the string as defined below; it
15001500
is initialized with the given characters. A single \grammarterm{c-char} may
15011501
produce more than one \tcode{char16_t} character in the form of
@@ -1505,7 +1505,7 @@
15051505
\indextext{literal!string!\idxcode{char32_t}}%
15061506
A \grammarterm{string-literal} that begins with \tcode{U}, such as \tcode{U"asdf"}, is
15071507
a \tcode{char32_t} string literal. A \tcode{char32_t} string literal has
1508-
type ``array of \term{n} \tcode{const char32_t}'', where \term{n} is the
1508+
type ``array of \textit{n} \tcode{const char32_t}'', where \textit{n} is the
15091509
size of the string as defined below; it
15101510
is initialized with the given characters.
15111511

@@ -1519,8 +1519,8 @@
15191519
\indextext{\idxcode{wchar_t}}%
15201520
\indextext{literal!string!wide}%
15211521
\indextext{prefix!\idxcode{L}}%
1522-
A wide string literal has type ``array of \term{n} \tcode{const
1523-
wchar_t}'', where \term{n} is the size of the string as defined below; it
1522+
A wide string literal has type ``array of \textit{n} \tcode{const
1523+
wchar_t}'', where \textit{n} is the size of the string as defined below; it
15241524
is initialized with the given characters.
15251525

15261526
\pnum
@@ -1707,93 +1707,93 @@
17071707
\pnum
17081708
A \grammarterm{user-defined-literal} is treated as a call to a literal operator or
17091709
literal operator template~(\ref{over.literal}). To determine the form of this call for a
1710-
given \grammarterm{user-defined-literal} \term{L} with \grammarterm{ud-suffix} \term{X},
1711-
the \grammarterm{literal-operator-id} whose literal suffix identifier is \term{X} is
1712-
looked up in the context of \term{L} using the rules for unqualified name
1713-
lookup~(\ref{basic.lookup.unqual}). Let \term{S} be the set of declarations found by
1714-
this lookup. \term{S} shall not be empty.
1710+
given \grammarterm{user-defined-literal} \textit{L} with \grammarterm{ud-suffix} \textit{X},
1711+
the \grammarterm{literal-operator-id} whose literal suffix identifier is \textit{X} is
1712+
looked up in the context of \textit{L} using the rules for unqualified name
1713+
lookup~(\ref{basic.lookup.unqual}). Let \textit{S} be the set of declarations found by
1714+
this lookup. \textit{S} shall not be empty.
17151715

17161716
\pnum
1717-
If \term{L} is a \grammarterm{user-defined-integer-literal}, let \term{n} be the literal
1718-
without its \grammarterm{ud-suffix}. If \term{S} contains a literal operator with
1719-
parameter type \tcode{unsigned long long}, the literal \term{L} is treated as a call of
1717+
If \textit{L} is a \grammarterm{user-defined-integer-literal}, let \textit{n} be the literal
1718+
without its \grammarterm{ud-suffix}. If \textit{S} contains a literal operator with
1719+
parameter type \tcode{unsigned long long}, the literal \textit{L} is treated as a call of
17201720
the form
17211721

17221722
\begin{codeblock}
1723-
operator "" @\term{X}@(@\term{n}@ULL)
1723+
operator "" @\textit{X}@(@\textit{n}@ULL)
17241724
\end{codeblock}
17251725

1726-
Otherwise, \term{S} shall contain a raw literal operator or a literal operator
1727-
template~(\ref{over.literal}) but not both. If \term{S} contains a raw literal operator,
1728-
the literal \term{L} is treated as a call of the form
1726+
Otherwise, \textit{S} shall contain a raw literal operator or a literal operator
1727+
template~(\ref{over.literal}) but not both. If \textit{S} contains a raw literal operator,
1728+
the literal \textit{L} is treated as a call of the form
17291729

17301730
\begin{codeblock}
1731-
operator "" @\term{X}@(@"\term{n}{"}@)
1731+
operator "" @\textit{X}@(@"\textit{n}{"}@)
17321732
\end{codeblock}
17331733

1734-
Otherwise (\term{S} contains a literal operator template), \term{L} is treated as a call
1734+
Otherwise (\textit{S} contains a literal operator template), \textit{L} is treated as a call
17351735
of the form
17361736

17371737

17381738
\begin{codeblock}
1739-
operator "" @\term{X}@<'@$c_1$@', '@$c_2$@', ... '@$c_k$@'>()
1739+
operator "" @\textit{X}@<'@$c_1$@', '@$c_2$@', ... '@$c_k$@'>()
17401740
\end{codeblock}
17411741

1742-
where \term{n} is the source character sequence $c_1c_2...c_k$. \begin{note} The sequence
1742+
where \textit{n} is the source character sequence $c_1c_2...c_k$. \begin{note} The sequence
17431743
$c_1c_2...c_k$ can only contain characters from the basic source character set.
17441744
\end{note}
17451745

17461746
\pnum
1747-
If \term{L} is a \grammarterm{user-defined-floating-literal}, let \term{f} be the
1748-
literal without its \grammarterm{ud-suffix}. If \term{S} contains a literal operator
1749-
with parameter type \tcode{long double}, the literal \term{L} is treated as a call of
1747+
If \textit{L} is a \grammarterm{user-defined-floating-literal}, let \textit{f} be the
1748+
literal without its \grammarterm{ud-suffix}. If \textit{S} contains a literal operator
1749+
with parameter type \tcode{long double}, the literal \textit{L} is treated as a call of
17501750
the form
17511751

17521752
\begin{codeblock}
1753-
operator "" @\term{X}@(@\term{f}@L)
1753+
operator "" @\textit{X}@(@\textit{f}@L)
17541754
\end{codeblock}
17551755

1756-
Otherwise, \term{S} shall contain a raw literal operator or a literal operator
1757-
template~(\ref{over.literal}) but not both. If \term{S} contains a raw literal operator,
1758-
the \term{literal} \term{L} is treated as a call of the form
1756+
Otherwise, \textit{S} shall contain a raw literal operator or a literal operator
1757+
template~(\ref{over.literal}) but not both. If \textit{S} contains a raw literal operator,
1758+
the \textit{literal} \textit{L} is treated as a call of the form
17591759

17601760
\begin{codeblock}
1761-
operator "" @\term{X}@(@"\term{f}{"}@)
1761+
operator "" @\textit{X}@(@"\textit{f}{"}@)
17621762
\end{codeblock}
17631763

1764-
Otherwise (\term{S} contains a literal operator template), \term{L} is treated as a call
1764+
Otherwise (\textit{S} contains a literal operator template), \textit{L} is treated as a call
17651765
of the form
17661766

17671767
\begin{codeblock}
1768-
operator "" @\term{X}@<'@$c_1$@', '@$c_2$@', ... '@$c_k$@'>()
1768+
operator "" @\textit{X}@<'@$c_1$@', '@$c_2$@', ... '@$c_k$@'>()
17691769
\end{codeblock}
17701770

1771-
where \term{f} is the source character sequence $c_1c_2...c_k$. \begin{note} The sequence
1771+
where \textit{f} is the source character sequence $c_1c_2...c_k$. \begin{note} The sequence
17721772
$c_1c_2...c_k$ can only contain characters from the basic source character set.
17731773
\end{note}
17741774

17751775
\pnum
1776-
If \term{L} is a \grammarterm{user-defined-string-literal}, let \term{str} be the
1777-
literal without its \grammarterm{ud-suffix} and let \term{len} be
1776+
If \textit{L} is a \grammarterm{user-defined-string-literal}, let \textit{str} be the
1777+
literal without its \grammarterm{ud-suffix} and let \textit{len} be
17781778
the number of
1779-
code units in \term{str} (i.e., its length excluding the terminating
1779+
code units in \textit{str} (i.e., its length excluding the terminating
17801780
null character).
1781-
The literal \term{L} is treated as a call of the form
1781+
The literal \textit{L} is treated as a call of the form
17821782

17831783
\begin{codeblock}
1784-
operator "" @\term{X}@(@\term{str}{}@, @\term{len}{}@)
1784+
operator "" @\textit{X}@(@\textit{str}{}@, @\textit{len}{}@)
17851785
\end{codeblock}
17861786

17871787
\pnum
1788-
If \term{L} is a \grammarterm{user-defined-character-literal}, let \term{ch} be the
1788+
If \textit{L} is a \grammarterm{user-defined-character-literal}, let \textit{ch} be the
17891789
literal without its \grammarterm{ud-suffix}.
1790-
\term{S} shall contain a literal operator~(\ref{over.literal}) whose only parameter has
1791-
the type of \term{ch} and the
1792-
literal \term{L} is treated as a call
1790+
\textit{S} shall contain a literal operator~(\ref{over.literal}) whose only parameter has
1791+
the type of \textit{ch} and the
1792+
literal \textit{L} is treated as a call
17931793
of the form
17941794

17951795
\begin{codeblock}
1796-
operator "" @\term{X}@(@\term{ch}{}@)
1796+
operator "" @\textit{X}@(@\textit{ch}{}@)
17971797
\end{codeblock}
17981798

17991799
\pnum

source/lib-intro.tex

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -606,20 +606,20 @@
606606
values~(\ref{basic.fundamental}).}
607607

608608
\pnum
609-
The enumerated type \term{enumerated} can be written:
609+
The enumerated type \textit{enumerated} can be written:
610610

611611
\begin{codeblock}
612-
enum @\term{enumerated}@ { @\term{V0}@, @\term{V1}@, @\term{V2}@, @\term{V3}@, ..... };
612+
enum @\textit{enumerated}@ { @\textit{V0}@, @\textit{V1}@, @\textit{V2}@, @\textit{V3}@, ..... };
613613

614-
static const @\term{enumerated C0}@ (@\term{V0}@);
615-
static const @\term{enumerated C1}@ (@\term{V1}@);
616-
static const @\term{enumerated C2}@ (@\term{V2}@);
617-
static const @\term{enumerated C3}@ (@\term{V3}@);
614+
static const @\textit{enumerated C0}@ (@\textit{V0}@);
615+
static const @\textit{enumerated C1}@ (@\textit{V1}@);
616+
static const @\textit{enumerated C2}@ (@\textit{V2}@);
617+
static const @\textit{enumerated C3}@ (@\textit{V3}@);
618618
.....
619619
\end{codeblock}
620620

621621
\pnum
622-
Here, the names \term{C0}, \term{C1}, etc. represent
622+
Here, the names \textit{C0}, \textit{C1}, etc. represent
623623
\term{enumerated elements}
624624
for this particular enumerated type.
625625
\indextext{type!enumerated}%
@@ -639,56 +639,56 @@
639639
\indextext{type!enumerated}%
640640

641641
\pnum
642-
The bitmask type \term{bitmask} can be written:
642+
The bitmask type \textit{bitmask} can be written:
643643

644644
\begin{codeblock}
645645
// For exposition only.
646646
// \tcode{int_type} is an integral type capable of
647647
// representing all values of the bitmask type.
648-
enum @\term{bitmask}@ : int_type {
649-
@\term{V0}@ = 1 << 0, @\term{V1}@ = 1 << 1, @\term{V2}@ = 1 << 2, @\term{V3}@ = 1 << 3, .....
648+
enum @\textit{bitmask}@ : int_type {
649+
@\textit{V0}@ = 1 << 0, @\textit{V1}@ = 1 << 1, @\textit{V2}@ = 1 << 2, @\textit{V3}@ = 1 << 3, .....
650650
};
651651

652-
constexpr @\term{bitmask C0}@(@\term{V0}{}@);
653-
constexpr @\term{bitmask C1}@(@\term{V1}{}@);
654-
constexpr @\term{bitmask C2}@(@\term{V2}{}@);
655-
constexpr @\term{bitmask C3}@(@\term{V3}{}@);
652+
constexpr @\textit{bitmask C0}@(@\textit{V0}{}@);
653+
constexpr @\textit{bitmask C1}@(@\textit{V1}{}@);
654+
constexpr @\textit{bitmask C2}@(@\textit{V2}{}@);
655+
constexpr @\textit{bitmask C3}@(@\textit{V3}{}@);
656656
.....
657657

658-
constexpr @\term{bitmask}{}@ operator&(@\term{bitmask}{}@ X, @\term{bitmask}{}@ Y) {
659-
return static_cast<@\term{bitmask}{}@>(
658+
constexpr @\textit{bitmask}{}@ operator&(@\textit{bitmask}{}@ X, @\textit{bitmask}{}@ Y) {
659+
return static_cast<@\textit{bitmask}{}@>(
660660
static_cast<int_type>(X) & static_cast<int_type>(Y));
661661
}
662-
constexpr @\term{bitmask}{}@ operator|(@\term{bitmask}{}@ X, @\term{bitmask}{}@ Y) {
663-
return static_cast<@\term{bitmask}{}@>(
662+
constexpr @\textit{bitmask}{}@ operator|(@\textit{bitmask}{}@ X, @\textit{bitmask}{}@ Y) {
663+
return static_cast<@\textit{bitmask}{}@>(
664664
static_cast<int_type>(X) | static_cast<int_type>(Y));
665665
}
666-
constexpr @\term{bitmask}{}@ operator^(@\term{bitmask}{}@ X, @\term{bitmask}{}@ Y){
667-
return static_cast<@\term{bitmask}{}@>(
666+
constexpr @\textit{bitmask}{}@ operator^(@\textit{bitmask}{}@ X, @\textit{bitmask}{}@ Y){
667+
return static_cast<@\textit{bitmask}{}@>(
668668
static_cast<int_type>(X) ^ static_cast<int_type>(Y));
669669
}
670-
constexpr @\term{bitmask}{}@ operator~(@\term{bitmask}{}@ X){
671-
return static_cast<@\term{bitmask}{}@>(~static_cast<int_type>(X));
670+
constexpr @\textit{bitmask}{}@ operator~(@\textit{bitmask}{}@ X){
671+
return static_cast<@\textit{bitmask}{}@>(~static_cast<int_type>(X));
672672
}
673-
@\term{bitmask}{}@& operator&=(@\term{bitmask}{}@& X, @\term{bitmask}{}@ Y){
673+
@\textit{bitmask}{}@& operator&=(@\textit{bitmask}{}@& X, @\textit{bitmask}{}@ Y){
674674
X = X & Y; return X;
675675
}
676-
@\term{bitmask}{}@& operator|=(@\term{bitmask}{}@& X, @\term{bitmask}{}@ Y) {
676+
@\textit{bitmask}{}@& operator|=(@\textit{bitmask}{}@& X, @\textit{bitmask}{}@ Y) {
677677
X = X | Y; return X;
678678
}
679-
@\term{bitmask}{}@& operator^=(@\term{bitmask}{}@& X, @\term{bitmask}{}@ Y) {
679+
@\textit{bitmask}{}@& operator^=(@\textit{bitmask}{}@& X, @\textit{bitmask}{}@ Y) {
680680
X = X ^ Y; return X;
681681
}
682682
\end{codeblock}
683683

684684
\pnum
685-
Here, the names \term{C0}, \term{C1}, etc. represent
685+
Here, the names \textit{C0}, \textit{C1}, etc. represent
686686
\term{bitmask elements}
687687
for this particular bitmask type.
688688
\indextext{type!bitmask}%
689-
All such elements have distinct, nonzero values such that, for any pair \term{Ci}
690-
and \term{Cj} where \term{i} != \term{j}, \term{Ci} \& \term{Ci} is nonzero and
691-
\term{Ci} \& \term{Cj} is zero.
689+
All such elements have distinct, nonzero values such that, for any pair \textit{Ci}
690+
and \textit{Cj} where \textit{i} != \textit{j}, \textit{Ci} \& \textit{Ci} is nonzero and
691+
\textit{Ci} \& \textit{Cj} is zero.
692692
\indextext{bitmask!empty}%
693693
Additionally, the value 0 is used to represent an \term{empty bitmask}, in which no
694694
bitmask elements are set.

0 commit comments

Comments
 (0)