diff options
Diffstat (limited to 'tex/context/base/meta-ini.tex')
-rw-r--r-- | tex/context/base/meta-ini.tex | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/tex/context/base/meta-ini.tex b/tex/context/base/meta-ini.tex index ecfd053c1..22360919f 100644 --- a/tex/context/base/meta-ini.tex +++ b/tex/context/base/meta-ini.tex @@ -520,11 +520,26 @@ %D A more general way of passing environments is: -\def\startMPenvironment % second arg gobbles spaces, so - {\dodoubleempty\dostartMPenvironment} % that reset gives \emptytoks +% ok but introduces \relax's +% +% \def\startMPenvironment % second arg gobbles spaces, so +% {\dodoubleempty\dostartMPenvironment} % that reset gives \emptytoks +% +% \long\def\dostartMPenvironment[#1][#2]#3\stopMPenvironment% +% {\doif{#1}\s!reset\resetMPenvironment % reset mp toks +% \doif{#1}\v!globaal{#3}% % use in main doc too +% \doif{#1}+{#3}% % use in main doc too +% \convertargument#3\to\ascii +% \expandafter\appendtoks\ascii\to\everyMPTEXgraphic} + +\def\startMPenvironment % second arg gobbles spaces, so that reset gives \emptytoks + {\bgroup + \catcode`\^^M=\@@space + \dodoubleempty\dostartMPenvironment} -\long\def\dostartMPenvironment[#1][#2]#3\stopMPenvironment% - {\doif{#1}\s!reset\resetMPenvironment % reset mp toks +\long\def\dostartMPenvironment[#1][#2]#3\stopMPenvironment + {\egroup + \doif{#1}\s!reset\resetMPenvironment % reset mp toks \doif{#1}\v!globaal{#3}% % use in main doc too \doif{#1}+{#3}% % use in main doc too \convertargument#3\to\ascii |