Debian Codegraph @

texmf-dist/tex/latex/mathtools/mhsetup.sty

raw
1 %%
2 %% This is file `mhsetup.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% mhsetup.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright (C) 2002-2007,2010 by Morten Hoegholm
12 %% Copyright (C) 2017-2019 by Lars Madsen
13 %% Copyright (C) 2020- by Lars Madsen, The LaTeX3 team
14 %%
15 %% This work may be distributed and/or modified under the
16 %% conditions of the LaTeX Project Public License, either
17 %% version 1.3c of this license or (at your option) any later
18 %% version. The latest version of this license is in
19 %% http://www.latex-project.org/lppl.txt
20 %% and version 1.3c or later is part of all distributions of
21 %% LaTeX version 2008/05/04 or later.
22 %%
23 %% This work has the LPPL maintenance status "maintained".
24 %%
25 %% This Current Maintainer of this work is Lars Madsen
26 %% <[email protected]>, The LaTeX3 team https://github.com/latex3/mathtools
27 %%
28 %% This work consists of the main source file mhsetup.dtx
29 %% and the derived files
30 %% mhsetup.sty, mhsetup.pdf, mhsetup.ins, mhsetup.drv.
31 %%
32 \ProvidesPackage{mhsetup}%
33 [2021/03/18 v1.4 programming setup (MH)]
34 \def\MHInternalSyntaxOn{
35 \edef\MHInternalSyntaxOff{%
36 \catcode`\noexpand\~=\the\catcode`\~\relax
37 \catcode`\noexpand\ =\the\catcode`\ \relax
38 \catcode`\noexpand\^^I=\the\catcode`\^^I\relax
39 \catcode`\noexpand\@=\the\catcode`\@\relax
40 \catcode`\noexpand\:=\the\catcode`\:\relax
41 \catcode`\noexpand\_=\the\catcode`\_\relax
42 \endlinechar=\the\endlinechar\relax
43 }%
44 \catcode`\~=10\relax
45 \catcode`\ =9\relax
46 \catcode`\^^I=9\relax
47 \makeatletter
48 \catcode`\_=11\relax
49 \catcode`\:=11\relax
50 \endlinechar=` %
51 \relax
52 }
53 \MHInternalSyntaxOn
54 \AtEndOfPackage{\MHInternalSyntaxOff}
55 \let\MH_let:NwN \let
56 \def\MH_let:cN #1#2{
57 \expandafter\MH_let:NwN \csname#1\endcsname#2}
58 \def\MH_let:cc #1#2{
59 \expandafter\MH_let:NwN\csname#1\expandafter\endcsname
60 \csname#2\endcsname}
61 \def\MH_new_boolean:n #1{
62 \expandafter\@ifdefinable\csname MH_if_boolean_#1:\endcsname{
63 \@namedef{MH_boolean_#1_true:}
64 {\MH_let:cN{MH_if_boolean_#1:}\iftrue}
65 \@namedef{MH_boolean_#1_false:}
66 {\MH_let:cN{MH_if_boolean_#1:}\iffalse}
67 \@nameuse{MH_boolean_#1_false:}%
68 }
69 }
70 \def\MH_set_boolean_F:n #1{ \@nameuse{MH_boolean_#1_false:} }
71 \def\MH_set_boolean_T:n #1{ \@nameuse{MH_boolean_#1_true:} }
72 \def\MH_if_boolean:nTF #1{
73 \@nameuse{MH_if_boolean_#1:}
74 \expandafter\@firstoftwo
75 \MH_else:
76 \expandafter\@secondoftwo
77 \MH_fi:
78 }
79 \def\MH_if_boolean:nT #1{
80 \@nameuse{MH_if_boolean_#1:}
81 \expandafter\@firstofone
82 \MH_else:
83 \expandafter\@gobble
84 \MH_fi:
85 }
86 \def\MH_if_boolean:nF #1{
87 \@nameuse{MH_if_boolean_#1:}
88 \expandafter\@gobble
89 \MH_else:
90 \expandafter\@firstofone
91 \MH_fi:
92 }
93 \@ifundefined{MH_if:w}{\MH_let:NwN \MH_if:w =\if}{}
94 \@ifundefined{MH_if_meaning:NN}{\MH_let:NwN \MH_if_meaning:NN =\ifx}{}
95 \@ifundefined{MH_else:}{\MH_let:NwN \MH_else:=\else}{}
96 \@ifundefined{MH_fi:}{\MH_let:NwN \MH_fi:=\fi}{}
97 \AtBeginDocument{
98 \@ifundefined{MH_if_num:w}{\MH_let:NwN \MH_if_num:w =\ifnum}{}
99 \@ifundefined{MH_if_dim:w}{\MH_let:NwN \MH_if_dim:w =\ifdim}{}
100 \@ifundefined{MH_if_case:w}{\MH_let:NwN \MH_if_case:w =\ifcase}{}
101 }
102 \@ifundefined{MH_or:}{\MH_let:NwN \MH_or:=\or}{}
103 \def\MH_cs_to_str:N {\expandafter\@gobble\string}
104 \@ifundefined{eTeXversion}
105 {
106 \MH_let:NwN \MH_protected:\relax
107 \def\MH_setlength:dn{\setlength}
108 \def\MH_addtolength:dn{\addtolength}
109 }
110 {
111 \MH_let:NwN \MH_protected:\protected
112 \def\MH_setlength:dn #1#2{#1=\dimexpr#2\relax\relax}
113 \def\MH_addtolength:dn #1#2{\advance#1 \dimexpr#2\relax\relax}
114 }
115
116 \def\MH_keyval_alias_with_addon:nnnn #1#2#3#4{
117 \@namedef{KV@#1@#2}{\@nameuse{KV@#1@#3}#4}
118 \@namedef{KV@#1@#2@default}{\@nameuse{KV@#1@#3@default}#4}}
119 \def\MH_keyval_alias:nnn #1#2#3{
120 \MH_keyval_alias_with_addon:nnnn {#1}{#2}{#3}{}}
121 \def\MH_use_choice_i:nnnn #1#2#3#4{#1}
122 \def\MH_use_choice_ii:nnnn #1#2#3#4{#2}
123 \def\MH_use_choice_iii:nnnn #1#2#3#4{#3}
124 \def\MH_use_choice_iv:nnnn #1#2#3#4{#4}
125 \long\def\MH_nospace_ifnextchar:Nnn #1#2#3{
126 \MH_group_align_safe_begin: % added 2021/01/14
127 \MH_let:NwN\reserved@d=~#1
128 \def\reserved@a{\MH_group_align_safe_end: #2} % changed 2021/01/14
129 \def\reserved@b{\MH_group_align_safe_end: #3} % changed 2021/01/14
130 \futurelet\@let@token\MH_nospace_nextchar:
131 }
132 \def\MH_nospace_nextchar:{
133 \MH_if_meaning:NN \@let@token\reserved@d
134 \MH_let:NwN \reserved@b\reserved@a
135 \MH_fi:
136 \reserved@b
137 }
138 \long\def\MH_nospace_testopt:nn #1#2{
139 \MH_nospace_ifnextchar:Nnn[
140 {#1}
141 {#1[{#2}]}
142 }
143 \def\MH_nospace_protected_testopt:n #1{
144 \MH_if_meaning:NN \protect\@typeset@protect
145 \expandafter\MH_nospace_testopt:nn
146 \MH_else:
147 \@x@protect#1
148 \MH_fi:
149 }
150 \@ifundefined{kernel@ifnextchar}
151 {\MH_let:NwN \kernel@ifnextchar \@ifnextchar}
152 {}
153 \MH_let:NwN \MH_kernel_xargdef:nwwn \@xargdef
154 \long\def\MH_nospace_xargdef:nwwn #1[#2][#3]#4{
155 \@ifdefinable#1{
156 \expandafter\def\expandafter#1\expandafter{
157 \expandafter
158 \MH_nospace_protected_testopt:n
159 \expandafter
160 #1
161 \csname\string#1\endcsname
162 {#3}}
163 \expandafter\@yargdef
164 \csname\string#1\endcsname
165 \tw@
166 {#2}
167 {#4}}}
168 \providecommand*\MHPrecedingSpacesOff{
169 \MH_let:NwN \@xargdef \MH_nospace_xargdef:nwwn
170 }
171 \providecommand*\MHPrecedingSpacesOn{
172 \MH_let:NwN \@xargdef \MH_kernel_xargdef:nwwn
173 }
174 \def \MH_group_align_safe_begin: {\iffalse{\fi\ifnum0=`}\fi}
175 \def \MH_group_align_safe_end: {\ifnum0=`{}\fi}
176 \endinput
177 %%
178 %% End of file `mhsetup.sty'.