Debian Codegraph @

texmf-dist/source/latex/unicode-math/um-code-ui.dtx

raw
1 %%^^A%% um-code-ui.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
2 %%^^A%% The xparse user interface top-level definitions.
3
4 % \section{The user interface commands}
5 %
6 % \begin{macrocode}
7 %<*package>
8 % \end{macrocode}
9 %
10 % \begin{macro}{\unimathsetup}
11 % This macro can be used in lieu of or later to override
12 % options declared when the package is loaded.
13 % \begin{macrocode}
14 \NewDocumentCommand \unimathsetup {m} { \keys_set:nn {unicode-math} {#1} }
15 % \end{macrocode}
16 % \end{macro}
17 %
18 % \begin{macro}{\setmathfont}
19 % \doarg{font features (first optional argument retained for backwards compatibility)}
20 % \darg{font name}
21 % \doarg{font features}
22 % \begin{macrocode}
23 \NewDocumentCommand \setmathfont { O{} m O{} }
24 {
25 \@@_setmathfont:nn {#1,#3} {#2}
26 }
27 % \end{macrocode}
28 % \end{macro}
29 %
30 % \begin{macro}{\setmathfontface}
31 % \begin{macrocode}
32 \NewDocumentCommand \setmathfontface { m O{} m O{} }
33 {
34 \@@_setmathfontface:Nnn #1 {#2,#4} {#3}
35 }
36 % \end{macrocode}
37 %
38 % Note that \LaTeX’s \cs{SetMathAlphabet} simply doesn’t work to “reset” a maths alphabet font after \verb”\begin{document}”, so unlike most of the other maths commands around we still restrict this one to the preamble.
39 % \begin{macrocode}
40 \@onlypreamble \setmathfontface
41 % \end{macrocode}
42 % \end{macro}
43 %
44 %
45 % \begin{macro}{\setoperatorfont}
46 % TODO: add check?
47 % \begin{macrocode}
48 \NewDocumentCommand \setoperatorfont {m}
49 {
50 \tl_gset:Nn \g_@@_operator_mathfont_tl {#1}
51 }
52 \setoperatorfont{\mathrm}
53 % \end{macrocode}
54 % \end{macro}
55 %
56 % \begin{macro}{\addnolimits}
57 % This macro appends material to the macro containing the list of operators
58 % that don’t take limits.
59 % \begin{macrocode}
60 \NewDocumentCommand \addnolimits {m}
61 {
62 \tl_put_right:Nn \l_@@_nolimits_tl {#1}
63 }
64 % \end{macrocode}
65 % \end{macro}
66 %
67 %
68 % \begin{macro}{\removenolimits}
69 % Can this macro be given a better name?
70 % It removes an item from the nolimits list.
71 % \begin{macrocode}
72 \NewDocumentCommand \removenolimits {m}
73 {
74 \tl_remove_all:Nn \l_@@_nolimits_tl {#1}
75 }
76 % \end{macrocode}
77 % \end{macro}
78 %
79 %
80 % \begin{macrocode}
81 %</package>
82 % \end{macrocode}
83
84 \endinput
85
86 % /©
87 %
88 % ------------------------------------------------
89 % The UNICODE-MATH package <wspr.io/unicode-math>
90 % ------------------------------------------------
91 % This package is free software and may be redistributed and/or modified under
92 % the conditions of the LaTeX Project Public License, version 1.3c or higher
93 % (your choice): <http://www.latex-project.org/lppl/>.
94 % ------------------------------------------------
95 % Copyright 2006-2019 Will Robertson, LPPL "maintainer"
96 % Copyright 2010-2017 Philipp Stephani
97 % Copyright 2011-2017 Joseph Wright
98 % Copyright 2012-2015 Khaled Hosny
99 % ------------------------------------------------
100 %
101 % ©/