diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-08 00:43:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-08 00:43:40 +0000 |
commit | 824f7b0903de8ad7f6ee3d7656005e4c59155e06 (patch) | |
tree | abfc8673ef9916f3ab7074e811207384c301492b /Master/texmf-dist/tex/context/base/l-pdfview.lua | |
parent | 689aefb0727676ed3cddf331337b4be226495e72 (diff) |
context import for TL13, from www.pragma-ade.com/context/beta/cont-tmf.zip
git-svn-id: svn://tug.org/texlive/trunk@29731 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/l-pdfview.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/l-pdfview.lua | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/context/base/l-pdfview.lua b/Master/texmf-dist/tex/context/base/l-pdfview.lua index 3f4a8bea5cf..e42462a3d1d 100644 --- a/Master/texmf-dist/tex/context/base/l-pdfview.lua +++ b/Master/texmf-dist/tex/context/base/l-pdfview.lua @@ -22,24 +22,26 @@ local opencalls, closecalls, allcalls, runner if os.type == "windows" then opencalls = { - ['default'] = "pdfopen --ax --file", -- --back --file --ax - ['acrobat'] = "pdfopen --ax --file", -- --back --file --ax - ['okular'] = 'start "test" "c:/data/system/kde/bin/okular.exe" --unique' -- todo! + ['default'] = "pdfopen --rxi --file", + ['acrobat'] = "pdfopen --rxi --file", + ['fullacrobat'] = "pdfopen --axi --file", + ['okular'] = 'start "test" "c:/data/system/kde/bin/okular.exe" --unique' -- todo! } closecalls= { - ['default'] = "pdfclose --ax --file", -- --ax - ['acrobat'] = "pdfclose --ax --file", -- --ax + ['default'] = "pdfclose --file", + ['acrobat'] = "pdfclose --file", ['okular'] = false, } allcalls = { - ['default'] = "pdfclose --ax --all", -- --ax - ['acrobat'] = "pdfclose --ax --all", -- --ax + ['default'] = "pdfclose --all", + ['acrobat'] = "pdfclose --all", ['okular'] = false, } pdfview.method = "acrobat" runner = function(...) +-- os.spawn(...) os.execute(...) end @@ -84,7 +86,7 @@ function pdfview.status() return format("pdfview methods: %s, current method: %s (directives_pdfview_method)",pdfview.methods(),tostring(pdfview.method)) end -local openedfiles = { } +-- local openedfiles = { } local function fullname(name) return file.addsuffix(name,"pdf") @@ -98,7 +100,7 @@ function pdfview.open(...) local name = fullname(t[i]) if io.exists(name) then runner(format('%s "%s"', opencall, name)) - openedfiles[name] = true + -- openedfiles[name] = true end end end @@ -110,13 +112,13 @@ function pdfview.close(...) local t = { ... } for i=1,#t do local name = fullname(t[i]) - if openedfiles[name] then + -- if openedfiles[name] then runner(format('%s "%s"', closecall, name)) - openedfiles[name] = nil - else - pdfview.closeall() - break - end + -- openedfiles[name] = nil + -- else + -- pdfview.closeall() + -- break + -- end end end end @@ -126,7 +128,7 @@ function pdfview.closeall() if allcall then runner(format('%s', allcall)) end - openedfiles = { } + -- openedfiles = { } end --~ pdfview.open("t:/document/show-exa.pdf") |