diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-12-18 21:35:53 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-12-18 21:35:53 +0100 |
commit | 4a6b49038ccb940e1f429b5aca907ee779cc8bd9 (patch) | |
tree | 778bd17cb60c17ad9ce60447b750950a3ba0bf06 /tex/context/base/mkxl/mlib-run.lmt | |
parent | 377eff58f2e5c06e92619c353146324081b3b8cd (diff) | |
download | context-4a6b49038ccb940e1f429b5aca907ee779cc8bd9.tar.gz |
2020-12-18 18:31:00
Diffstat (limited to 'tex/context/base/mkxl/mlib-run.lmt')
-rw-r--r-- | tex/context/base/mkxl/mlib-run.lmt | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/tex/context/base/mkxl/mlib-run.lmt b/tex/context/base/mkxl/mlib-run.lmt index 2af504feb..8ab998bb8 100644 --- a/tex/context/base/mkxl/mlib-run.lmt +++ b/tex/context/base/mkxl/mlib-run.lmt @@ -90,11 +90,23 @@ local function prepareddata(data) end end +-- local function executempx(mpx,data) +-- local terminal = mpxterminals[mpx] +-- if terminal then +-- terminal.writer(data) +-- data = "" +-- elseif type(data) == "table" then +-- data = prepareddata(data,collapse) +-- end +-- metapost.nofruns = metapost.nofruns + 1 +-- return mpx:execute(data) +-- end + local function executempx(mpx,data) local terminal = mpxterminals[mpx] if terminal then terminal.writer(data) - data = "" + data = nil elseif type(data) == "table" then data = prepareddata(data,collapse) end @@ -184,15 +196,16 @@ function metapost.load(name,method) end method = method and methods[method] or "scaled" local mpx, terminal = new_instance { - ini_version = true, - math_mode = method, - run_script = metapost.runscript, - script_error = metapost.scripterror, - make_text = metapost.maketext, - extensions = 1, - -- random_seed = seed, - utf8_mode = true, - text_mode = true, +-- noninteractive = true; +-- ini_version = true, + math_mode = method, + run_script = metapost.runscript, + script_error = metapost.scripterror, + make_text = metapost.maketext, + extensions = 1, + -- random_seed = seed, + utf8_mode = true, + text_mode = true, } report_metapost("initializing number mode %a",method) local result @@ -219,7 +232,7 @@ function metapost.checkformat(mpsinput,method) -- if foundfile == "" then -- foundfile = find_file(file.replacesuffix(mpsinput,"mpvi")) or "" -- end - if CONTEXTLMTXMODE > 0 and foundfile == "" then + if foundfile == "" then foundfile = find_file(file.replacesuffix(mpsinput,"mpxl")) or "" end if foundfile == "" then |