summaryrefslogtreecommitdiff
path: root/tex/context/base/grph-inc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/grph-inc.lua')
-rw-r--r--tex/context/base/grph-inc.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/tex/context/base/grph-inc.lua b/tex/context/base/grph-inc.lua
index db68d1f03..f0e2b4c10 100644
--- a/tex/context/base/grph-inc.lua
+++ b/tex/context/base/grph-inc.lua
@@ -104,7 +104,7 @@ figures.cachepaths = {
figures.paths = table.copy(figures.localpaths)
figures.order = {
- "pdf", "mps", "jpg", "png", "jbig", "svg", "eps", "mov", "buffer", "tex"
+ "pdf", "mps", "jpg", "png", "jbig", "svg", "eps", "gif", "mov", "buffer", "tex",
}
figures.formats = {
@@ -115,6 +115,7 @@ figures.formats = {
["jbig"] = { list = { "jbig", "jbig2", "jb2" } },
["svg"] = { list = { "svg", "svgz" } },
["eps"] = { list = { "eps", "ai" } },
+ ["gif"] = { list = { "gif" } },
["mov"] = { list = { "mov", "avi" } },
["buffer"] = { list = { "tmp", "buffer", "buf" } },
["tex"] = { list = { "tex" } },
@@ -777,12 +778,20 @@ function figures.converters.eps(oldname,newname)
-- rlx as alternative
local outputpath = file.dirname(newname)
local outputbase = file.basename(newname)
+ if outputpath == "" then outputpath = "." end
local command = format("mtxrun bin:pstopdf --outputpath=%s %s",outputpath,oldname)
os.spawn(command)
end
figures.converters.svg = figures.converters.eps
+function figures.converters.gif(oldname,newname)
+ -- hack, we need a lua based converter script, or better, we should use
+ -- rlx as alternative
+ local command = format("mtxrun bin:convert %s %s",oldname,newname)
+ os.spawn(command)
+end
+
-- -- -- lowres -- -- --
--~ function figures.converters.pdf(oldname,newname)