From 4d782ec7e30ef87dcfd0be14904ab5217e564320 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Wed, 8 Oct 2014 00:33:00 +0530 Subject: beta 2014.10.08 00:33 --- tex/context/base/back-exp.lua | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'tex/context/base/back-exp.lua') diff --git a/tex/context/base/back-exp.lua b/tex/context/base/back-exp.lua index 5fa765b79..7350d927f 100644 --- a/tex/context/base/back-exp.lua +++ b/tex/context/base/back-exp.lua @@ -1301,9 +1301,13 @@ do checkmath(di) i = i + 1 elseif tg == "mroot" then - if #di.data == 1 then + local data = di.data + local size = #data + if size == 1 then -- else firefox complains di.element = "msqrt" + elseif size == 2 then + data[1], data[2] = data[2], data[1] end checkmath(di) i = i + 1 @@ -1550,6 +1554,13 @@ do extras.msup = extras.msub +-- function extras.mroot(result,element,detail,n,fulltag,di) +-- local data = di.data +-- if size == #data then +-- data[1], data[2] = data[2], data[1] +-- end +-- end + end do @@ -3206,9 +3217,15 @@ end local list = table.unique(settings_to_array(cssfile)) for i=1,#list do local source = file.addsuffix(list[i],"css") - local target = source - cssfiles[#cssfiles+1] = target - -- todo: warning if no file yet + local target = file.join(stylepath,file.basename(source)) + cssfiles[#cssfiles+1] = source + if not lfs.isfile(source) then + source = file.join("../",source) + end + if lfs.isfile(source) then + report_export("copying %s",source) + file.copy(source,target) + end end end -- cgit v1.2.3