diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx b/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx index 58870922ed9..8d2ba46e2a5 100644 --- a/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx +++ b/Master/texmf-dist/source/latex/unicode-math/um-code-setchar.dtx @@ -17,25 +17,23 @@ % % In time, the case statement inside |set_mathsymbol| will be moved in here % to avoid re-running it every time. -% \begin{macrocode} -\cs_new:Npn \@@_symbol_setup: - { - \cs_set:Npn \UnicodeMathSymbol ##1##2##3##4 - { - \exp_not:n { \_@@_sym:nnn {##1} {##2} {##3} } - } - } -% \end{macrocode} % % \begin{macrocode} -\tl_gset_from_file_x:Nnn \g_@@_mathtable_tl {\@@_symbol_setup:} {unicode-math-table.tex} +\group_begin: + \file_get:nnN {unicode-math-table.tex} {} \l_@@_mathtable_tl + \cs_set:Npn \UnicodeMathSymbol #1#2#3#4 + { + \exp_not:n { \_@@_sym:nnn {#1} {#2} {#3} } + } + \tl_gset:Nx \g_@@_mathtable_tl {\l_@@_mathtable_tl} +\group_end: % \end{macrocode} % % % \begin{macro}{\@@_input_math_symbol_table:} % This function simply expands to the token list containing all the data. % \begin{macrocode} -\cs_new:Nn \@@_input_math_symbol_table: {\g_@@_mathtable_tl} +\@@_cs_new:Nn \@@_input_math_symbol_table: {\g_@@_mathtable_tl} % \end{macrocode} % \end{macro} % @@ -46,7 +44,7 @@ % make sure |#| is an `other' so that we don't get confused with \cs{mathoctothorpe}. % \begin{macrocode} \AtBeginDocument{\@@_define_math_chars:} -\cs_new:Nn \@@_define_math_chars: +\@@_cs_new:Nn \@@_define_math_chars: { \group_begin: \cs_set:Npn \_@@_sym:nnn ##1##2##3 @@ -291,7 +289,7 @@ % the conditions of the LaTeX Project Public License, version 1.3c or higher % (your choice): <http://www.latex-project.org/lppl/>. % ------------------------------------------------ -% Copyright 2006-2018 Will Robertson, LPPL "maintainer" +% Copyright 2006-2019 Will Robertson, LPPL "maintainer" % Copyright 2010-2017 Philipp Stephani % Copyright 2011-2017 Joseph Wright % Copyright 2012-2015 Khaled Hosny |