Skip to content

Commit d17c607

Browse files
jensmaurertkoeppe
authored andcommitted
Typeset ordinals as "i^\text{th}" instead of "i-th" (#2003)
1 parent 3b582e7 commit d17c607

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

source/containers.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -3369,7 +3369,7 @@
33693369
\requires \tcode{I < N}. The program is ill-formed if \tcode{I} is out of bounds.
33703370

33713371
\pnum
3372-
\returns A reference to the \tcode{I}th element of \tcode{a},
3372+
\returns A reference to the $\tcode{I}^\text{th}$ element of \tcode{a},
33733373
where indexing is zero-based.
33743374
\end{itemdescr}
33753375

source/locales.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -4568,7 +4568,7 @@
45684568
value
45694569
\tcode{static_cast<part>(p.field[i])}
45704570
determines the
4571-
\tcode{i}th
4571+
$\tcode{i}^\text{th}$
45724572
component of the format\footnote{An array of
45734573
\tcode{char},
45744574
rather than an array of

source/numerics.tex

+4-4
Original file line numberDiff line numberDiff line change
@@ -9243,8 +9243,8 @@
92439243
\pnum
92449244
\begin{note}
92459245
The difference between \tcode{exclusive_scan} and \tcode{inclusive_scan} is
9246-
that \tcode{exclusive_scan} excludes the \tcode{i}th input element from the
9247-
\tcode{i}th sum. If \tcode{binary_op} is not mathematically associative, the
9246+
that \tcode{exclusive_scan} excludes the $i^\text{th}$ input element from the
9247+
$i^\text{th}$ sum. If \tcode{binary_op} is not mathematically associative, the
92489248
behavior of \tcode{exclusive_scan} may be nondeterministic.
92499249
\end{note}
92509250
\end{itemdescr}
@@ -9349,8 +9349,8 @@
93499349
\pnum
93509350
\begin{note}
93519351
The difference between \tcode{exclusive_scan} and \tcode{inclusive_scan} is
9352-
that \tcode{inclusive_scan} includes the \tcode{i}th input element in the
9353-
\tcode{i}th sum. If \tcode{binary_op} is not mathematically associative, the
9352+
that \tcode{inclusive_scan} includes the $i^\text{th}$ input element in the
9353+
$i^\text{th}$ sum. If \tcode{binary_op} is not mathematically associative, the
93549354
behavior of \tcode{inclusive_scan} may be nondeterministic.
93559355
\end{note}
93569356
\end{itemdescr}

source/templates.tex

+6-6
Original file line numberDiff line numberDiff line change
@@ -4773,21 +4773,21 @@
47734773
the class template followed by the template argument list of
47744774
the partial specialization enclosed in
47754775
\tcode{<>} (or an equivalent template alias specialization).
4776-
If the \textit{n}th template parameter is
4777-
a template parameter pack, the \textit{n}th template argument is a pack
4776+
If the $n^\text{th}$ template parameter is
4777+
a template parameter pack, the $n^\text{th}$ template argument is a pack
47784778
expansion\iref{temp.variadic} whose pattern is the name of
47794779
the template parameter pack.
47804780
\end{itemize}
47814781

47824782
\pnum
47834783
The template argument list of a primary template is a
47844784
template argument list in which the
4785-
\textit{n}th
4785+
$n^\text{th}$
47864786
template argument has the value of the
4787-
\textit{n}th
4787+
$n^\text{th}$
47884788
template parameter of the class template.
4789-
If the \textit{n}th template parameter is a template
4790-
parameter pack\iref{temp.variadic}, the \textit{n}th template argument is a pack
4789+
If the $n^\text{th}$ template parameter is a template
4790+
parameter pack\iref{temp.variadic}, the $n^\text{th}$ template argument is a pack
47914791
expansion\iref{temp.variadic} whose pattern is the name of
47924792
the template parameter pack.
47934793

source/utilities.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@
18001800

18011801
\pnum
18021802
\ctype \tcode{TI} is the
1803-
type of the \tcode{I}th element of \tcode{Types},
1803+
type of the $\tcode{I}^\text{th}$ element of \tcode{Types},
18041804
where indexing is zero-based.
18051805
\end{itemdescr}
18061806

@@ -1893,7 +1893,7 @@
18931893
The program is ill-formed if \tcode{I} is out of bounds.
18941894

18951895
\pnum
1896-
\returns A reference to the \tcode{I}th element of \tcode{t}, where
1896+
\returns A reference to the $\tcode{I}^\text{th}$ element of \tcode{t}, where
18971897
indexing is zero-based.
18981898

18991899
\pnum

0 commit comments

Comments
 (0)