[latex3-commits] [git/LaTeX3-latex3-latex2e] master: use \textrm not \text in subscript example (cb38eae)

David Carlisle d.p.carlisle at gmail.com
Wed Apr 4 11:19:04 CEST 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/cb38eaefa5974fb80f30e9c4da67cdbd5ff046aa

>---------------------------------------------------------------

commit cb38eaefa5974fb80f30e9c4da67cdbd5ff046aa
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Wed Apr 4 10:19:04 2018 +0100

    use \textrm not \text in subscript example


>---------------------------------------------------------------

cb38eaefa5974fb80f30e9c4da67cdbd5ff046aa
 required/amsmath/amsldoc.tex |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/required/amsmath/amsldoc.tex b/required/amsmath/amsldoc.tex
index 8c4df68..f65c1f1 100644
--- a/required/amsmath/amsldoc.tex
+++ b/required/amsmath/amsldoc.tex
@@ -1703,9 +1703,11 @@ The main use of the command \cn{text} is for words or
 phrases\index{text fragments inside math} in a display. It is very
 similar to the \latex/ command \cn{mbox} in its effects, but has a
 couple of advantages. If you want a word or phrase of text in a
-subscript, you can type |..._{\text{word or phrase}}|, which is slightly
-easier than the \cn{mbox} equivalent: |..._{\mbox{\scriptsize| |word|
-|or| |phrase}}|. The other advantage is the more descriptive name.
+subscript, you can type |..._{\textrm{word or phrase}}|, which is slightly
+easier than the \cn{mbox} equivalent: |..._{\mbox{\rmfamily\scriptsize| |word|
+|or| |phrase}}|. Note that the standard \cn{\textrm} command will use the
+\nipkg{amsmath} \cn{text} definition, but ensure the \verb+\rmfamily+
+font is used.
 \begin{equation}
 f_{[x_{i-1},x_i]} \text{ is monotonic,}
 \quad i = 1,\dots,c+1





More information about the latex3-commits mailing list