From 056c9e0d93dfc35d66ade03b1f144afc319aeaac Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 26 Oct 2009 17:23:00 +0100 Subject: beta 2009.10.26 17:23 --- tex/context/base/grph-inc.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tex/context/base/grph-inc.lua') 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) -- cgit v1.2.3