[latex3-commits] [git/LaTeX3-latex3-latex3] l3text: Pre-define some common symbols (c67e1a677)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Dec 14 09:07:10 CET 2019
Repository : https://github.com/latex3/latex3
On branch : l3text
Link : https://github.com/latex3/latex3/commit/c67e1a677f3391e6065733bc6e1a65e1b9d6d79d
>---------------------------------------------------------------
commit c67e1a677f3391e6065733bc6e1a65e1b9d6d79d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Dec 14 08:07:10 2019 +0000
Pre-define some common symbols
>---------------------------------------------------------------
c67e1a677f3391e6065733bc6e1a65e1b9d6d79d
l3kernel/l3text.dtx | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/l3kernel/l3text.dtx b/l3kernel/l3text.dtx
index f806f9316..c4a4408e3 100644
--- a/l3kernel/l3text.dtx
+++ b/l3kernel/l3text.dtx
@@ -4453,6 +4453,16 @@
\tl_const:cn { c_@@_math_char_ \token_to_str:N \quad _tl } { ~ }
\tl_const:cn { c_@@_math_char_ \token_to_str:N \qquad _tl } { ~ }
% \end{macrocode}
+% A small number of very common symbols: hard-coded as we are treating
+% math mode as a fixed mapping.
+% \begin{macrocode}
+ \tl_const:cx { c_@@_math_char_ \token_to_str:N \{ _tl }
+ { \c_left_brace_str }
+ \tl_const:cx { c_@@_math_char_ \token_to_str:N \} _tl }
+ { \c_right_brace_str }
+ \tl_const:cx { c_@@_math_char_ \token_to_str:N \_ _tl }
+ { \c_underscore_str }
+% \end{macrocode}
% The \tn{sqrt} case is odd as it is a symbol but needs to be filtered out for
% the optional argument, so we store it separately.
% \begin{macrocode}
More information about the latex3-commits
mailing list