diff options
Diffstat (limited to 'tex/context/base/supp-mps.tex')
-rw-r--r-- | tex/context/base/supp-mps.tex | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/tex/context/base/supp-mps.tex b/tex/context/base/supp-mps.tex index d46de7fd4..b89483a5c 100644 --- a/tex/context/base/supp-mps.tex +++ b/tex/context/base/supp-mps.tex @@ -222,12 +222,26 @@ %D The next hack prevents too long lines: -\long\def\obeyMPlines - {\ifx\rawcharacter\undefined\else +\long\def\runtimeobeyMPlines + {\ifx\rawcharacter\undefined + \let\obeyedline\space + \else \obeylines - \def\obeyedline{\rawcharacter{10}}% + \ifx\systemendofline\undefined + \def\obeyedline{\rawcharacter{10}}% + \else + \let\obeyedline\systemendofline + \fi \fi} +\long\def\obeyMPlines % anyhow, we end up with ^^M's in the input + {\obeylines + \let\obeyedline\relax} % delay expansion + +\appendtoks + \let\obeyMPlines\runtimeobeyMPlines +\to \everydump + %D We use two distinguished token registers: \newtoks \MPextensions % once per run (can be multiple graphics) @@ -1089,7 +1103,7 @@ \def\executesystemcommand#1{\immediate\write18{#1}} \fi -\ifx\TEXEXECcommand \undefined \def\TEXEXECcommand{texexec} \fi +\ifx\TEXEXECcommand \undefined \def\TEXEXECcommand{texmfstart texexec} \fi \ifx\undefined\executeMetaPost |