[latex3-commits] [latex3/latex3] main: Obey lines in fp var examples (ca3dd7598)

github at latex-project.org github at latex-project.org
Fri Oct 20 10:40:32 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/ca3dd7598140ade64e2db42a1864f1ea0f1e98b5

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

commit ca3dd7598140ade64e2db42a1864f1ea0f1e98b5
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Fri Oct 20 14:34:24 2023 +0800

    Obey lines in fp var examples


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

ca3dd7598140ade64e2db42a1864f1ea0f1e98b5
 l3kernel/l3fp.dtx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index 77fe5ace3..b1b8c531c 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -662,7 +662,7 @@
 %
 % Floating point expressions support variables: these can only be set locally,
 % so act like standard \cs[no-index]{l_\dots} variables.
-% \begin{quote}
+% \begin{quote}\let\obeyedline=\newline\obeylines^^A
 %   \cs{fp_new_variable:n} |{ A }|
 %   \cs{fp_set:Nn} \cs{l_tmpb_fp} |{ 1 * sin(A) + 3**2 }|
 %   \cs{fp_show:n} |{| \cs{l_tmpb_fp} |}|
@@ -709,7 +709,7 @@
 %   the result of evaluating the \meta{floating point expression} as
 %   much as possible.  The result may contain other variables, which are
 %   then replaced by their values if they have any.  For instance,
-%   \begin{quote}
+%   \begin{quote}\let\obeyedline=\newline\obeylines^^A
 %     \cs{fp_new_variable:n} |{ A }|
 %     \cs{fp_new_variable:n} |{ B }|
 %     \cs{fp_new_variable:n} |{ C }|
@@ -730,7 +730,7 @@
 %   \end{syntax}
 %   Removes any value given by \cs{fp_set_variable:nn} to the variable
 %   with this \meta{identifier}.  For instance,
-%   \begin{quote}
+%   \begin{quote}\let\obeyedline=\newline\obeylines^^A
 %     \cs{fp_new_variable:n} |{ A }|
 %     \cs{fp_set_variable:nn} |{ A } { 3 }|
 %     \cs{fp_show:n} |{ A ^ 2 }|





More information about the latex3-commits mailing list.