[latex3-commits] [git/LaTeX3-latex3-latex3] gh807: Improve typesetting of a number in l3fp documentation (fixes #807) (13b331931)
Bruno Le Floch
blflatex at gmail.com
Sat Oct 17 17:00:47 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : gh807
Link : https://github.com/latex3/latex3/commit/13b3319314f353a2431626c615e517725e0e3fcf
>---------------------------------------------------------------
commit 13b3319314f353a2431626c615e517725e0e3fcf
Author: Bruno Le Floch <blflatex at gmail.com>
Date: Sat Oct 17 17:00:47 2020 +0200
Improve typesetting of a number in l3fp documentation (fixes #807)
>---------------------------------------------------------------
13b3319314f353a2431626c615e517725e0e3fcf
l3kernel/l3fp.dtx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index 34d87040f..9ff43209a 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -1364,7 +1364,7 @@
%
% \begin{variable}[tested = m3fp-parse001]
% {em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, sp}
-% \newcommand{\unit}[1]{\text{\texttt{#1}}}
+% \newcommand{\unit}[1]{\ifmmode\,\fi\text{\texttt{#1}}}
% Those units of measurement are equal to their values in \unit{pt},
% namely
% \begin{align*}
@@ -1378,7 +1378,7 @@
% 1 \unit{nd} & = 0.375 \unit{mm} = 1.066978346456693 \unit{pt} \\
% 1 \unit{nc} & = 12 \unit{nd} = 12.80374015748031 \unit{pt} \\
% 1 \unit{bp} & = \frac{1}{72} \unit{in} = 1.00375 \unit{pt} \\
-% 1 \unit{sp} & = 2^{-16} \unit{pt} = 1.52587890625e-5 \unit{pt}.
+% 1 \unit{sp} & = 2^{-16} \unit{pt} = 1.52587890625 \times 10^{-5} \unit{pt}.
% \end{align*}
% The values of the (font-dependent) units \unit{em} and \unit{ex} are
% gathered from \TeX{} when the surrounding floating point expression
More information about the latex3-commits
mailing list.