We use ~ to denotes the content in such macro, analysis of the mechanism about Physics2 as below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
\long\def\phy@d@lx#1#2#3{% \ifcsname phy@ab@chk\string#3\endcsname\def\reserved@a{#1}% manully set delimiter size \else\def\reserved@a{#2}% \fi\csname phy@d@lx\reserved@a\endcsname#3} \def\phy@d@l@genxm#1{% \long\expandafter\def\csname phy@d@lx#1\endcsname##1##2{% \begingroup% \endgroup is at the end of #4 of \phy@AB@gen \ifx##1*\let\phy@tempa=\relax\else\let\phy@tempa=##1\fi \csname phy@#1@\string##2\endcsname\phy@tempa##2}} \def\phy@d@l@genxa#1{% \long\expandafter\def\csname phy@d@lx#1\endcsname##1{% \csname phy@#1@\string##1\endcsname##1}}