diff options
author | Norbert Preining <norbert@preining.info> | 2023-02-17 03:02:19 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-02-17 03:02:19 +0000 |
commit | cb7cbc1f98cedde266389c64619b6dbfaec14f87 (patch) | |
tree | d42289d8d7637a893a448e58de7e1b094bc13af0 /macros/latex/contrib/l3build/l3build-typesetting.lua | |
parent | 024d47cb1c4e5ba541f3865b69168bef20f2bfce (diff) |
CTAN sync 202302170302
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-typesetting.lua')
-rw-r--r-- | macros/latex/contrib/l3build/l3build-typesetting.lua | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/macros/latex/contrib/l3build/l3build-typesetting.lua b/macros/latex/contrib/l3build/l3build-typesetting.lua index c173b2593b..7f5327b5a2 100644 --- a/macros/latex/contrib/l3build/l3build-typesetting.lua +++ b/macros/latex/contrib/l3build/l3build-typesetting.lua @@ -35,18 +35,6 @@ local match = string.match local os_type = os.type -function dvitopdf(name, dir, engine, hide) - run( - dir, - set_epoch_cmd(epoch, forcecheckepoch) .. - "dvips " .. name .. dviext - .. (hide and (" > " .. os_null) or "") - .. os_concat .. - "ps2pdf " .. ps2pdfopt .. name .. psext - .. (hide and (" > " .. os_null) or "") - ) -end - -- An auxiliary used to set up the environmental variables function runcmd(cmd,dir,vars) dir = dir or "." @@ -67,6 +55,17 @@ function runcmd(cmd,dir,vars) return run(dir,set_epoch_cmd(epoch, forcedocepoch) .. env .. os_concat .. cmd) end +function dvitopdf(name, dir, engine, hide) + runcmd( + "dvips " .. name .. dviext + .. (hide and (" > " .. os_null) or "") + .. os_concat .. + "ps2pdf " .. ps2pdfopt .. name .. psext + .. (hide and (" > " .. os_null) or ""), + dir + ) +end + function biber(name,dir) if fileexists(dir .. "/" .. name .. ".bcf") then return |