diff options
Diffstat (limited to 'Master/texmf-dist/scripts/pmx/pmx2pdf.lua')
-rwxr-xr-x | Master/texmf-dist/scripts/pmx/pmx2pdf.lua | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/pmx/pmx2pdf.lua b/Master/texmf-dist/scripts/pmx/pmx2pdf.lua index 23a14bcf100..4f441763844 100755 --- a/Master/texmf-dist/scripts/pmx/pmx2pdf.lua +++ b/Master/texmf-dist/scripts/pmx/pmx2pdf.lua @@ -1,6 +1,6 @@ #!/usr/bin/env texlua -VERSION = "0.3.1" +VERSION = "0.3.2" --[[ pmx2pdf: processes MusiXTeX files using pmxab as a pre-processor @@ -27,6 +27,10 @@ VERSION = "0.3.1" --[[ ChangeLog: + + version 0.3.2 2013-12-14 RDT + restore the -c option that somehow got dropped + version 0.3.1 2013-12-11 RDT added -F fmt option @@ -69,6 +73,7 @@ if #arg == 0 then end -- defaults: +pmxab = "pmxab" tex = "etex" musixflx = "musixflx" dvi = "dvips" @@ -102,11 +107,13 @@ repeat elseif this_arg == "-s" then dvi = ""; ps2pdf = "" elseif this_arg == "-f" then - tex = "etex"; dvi = "dvips"; ps2pdf = "ps2pdf"; intermediate = 1 + pmxab = "pmxab"; tex = "etex"; dvi = "dvips"; ps2pdf = "ps2pdf"; intermediate = 1 elseif this_arg == "-t" then tex = ""; dvi = ""; ps2pdf = "" elseif this_arg == "-i" then intermediate = 0 + elseif this_arg == "-c" then + pmxab = "pmxchords" elseif this_arg == "-F" then narg = narg+1 tex = arg[narg] @@ -118,9 +125,9 @@ repeat if not io.open(filename .. ".pmx", "r") then print("Non-existent file: ", filename .. ".pmx") else - print("Processing ".. filename .. ".pmx.") + print("Processing ".. filename .. ".pmx" .. " using " .. pmxab .. "." ) os.remove( filename .. ".mx2" ) - os.execute("pmxab" .. " " .. filename ) + os.execute(pmxab .. " " .. filename ) pmxaerr = io.open("pmxaerr.dat", "r") if (not pmxaerr) then print("No log file.") |