summaryrefslogtreecommitdiff
path: root/tex/context/base/back-exp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/back-exp.lua')
-rw-r--r--tex/context/base/back-exp.lua25
1 files changed, 21 insertions, 4 deletions
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