diff options
Diffstat (limited to 'tex/context/base/strc-not.mkvi')
-rw-r--r-- | tex/context/base/strc-not.mkvi | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tex/context/base/strc-not.mkvi b/tex/context/base/strc-not.mkvi index d5a4ee865..b23dc3159 100644 --- a/tex/context/base/strc-not.mkvi +++ b/tex/context/base/strc-not.mkvi @@ -123,15 +123,25 @@ % mostly the same as enumersations but we want to keep them % isolated and at some point we might differentiate +% to be considered: +% +% \let\??construction\??notation +% +% with push/pop (also at definition time) + \unexpanded\def\strc_define_commands_notation#1#2#3% current level parent {\doifelsenothing{#3} - {\defineconstruction[#1][\s!handler=\v!notation,\c!level=#2]}% - {\defineconstruction[#1][#3][\s!handler=\v!notation,\c!level=#2]}% + {\normalexpanded{\defineconstruction[#1][\s!handler=\v!notation,\c!level=#2]}% + \setevalue{\??notation#1:\s!parent}{\??notation}}% + {\normalexpanded{\defineconstruction[#1][#3][\s!handler=\v!notation,\c!level=#2]}% + \setevalue{\??notation#1:\s!parent}{\??notation#3}}% \setuevalue{\e!next #1}{\strc_notations_next }% \setuevalue{\c!reset#1}{\strc_notations_reset }% %setuevalue{\c!set #1}{\strc_notations_set }% - \setuevalue {#1}{\strc_notations_command{\currentnotation}}% - \setuevalue{\e!start#1}{\strc_notations_start {\currentnotation}{#1}}% +% \setuevalue {#1}{\strc_notations_command{\currentnotation}}% +% \setuevalue{\e!start#1}{\strc_notations_start {\currentnotation}{#1}}% + \setuevalue {#1}{\strc_notations_command{#1}}% + \setuevalue{\e!start#1}{\strc_notations_start {#1}{#1}}% okay? \setuevalue{\e!stop #1}{\strc_notations_stop }} \appendtoks |