diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-08-08 23:45:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-08-08 23:45:00 +0200 |
commit | 994ef322c591f7cae9b672844e96482723b89b4b (patch) | |
tree | e7951df9c461e844045680dc7d8baf2c1a9b19c7 /scripts/context/lua/mtx-metapost.lua | |
parent | 83efdae0bed9228d31513e0555e3229250089f14 (diff) | |
download | context-994ef322c591f7cae9b672844e96482723b89b4b.tar.gz |
beta 2012.08.08 23:45
Diffstat (limited to 'scripts/context/lua/mtx-metapost.lua')
-rw-r--r-- | scripts/context/lua/mtx-metapost.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-metapost.lua b/scripts/context/lua/mtx-metapost.lua index 3b9ed6ff1..44cf8205d 100644 --- a/scripts/context/lua/mtx-metapost.lua +++ b/scripts/context/lua/mtx-metapost.lua @@ -49,7 +49,7 @@ local tempname = "mptopdf-temp.tex" local function do_convert(filename) if find(filename,".%d+$") or find(filename,"%.mps$") then io.savedata(tempname,format(template,filename)) - local resultname = format("%s-%s.pdf",file.nameonly(filename),file.extname(filename)) + local resultname = format("%s-%s.pdf",file.nameonly(filename),file.suffix(filename)) local result = os.execute(format([[context --once --batch --purge --result=%s "%s"]],resultname,tempname)) return lfs.isfile(resultname) and resultname end |