Example style sheet to cascade with presentation.isy is as follows.
---- content of example.isy ---
-example removed, not possible to upload this file to the ipe-wiki otherwise
+<?xml version="1.0"?>
+<!DOCTYPE ipestyle SYSTEM "ipe.dtd">
+<ipestyle name="mine">
+<color name="tab_header" value="0 0 0.5"/>
+<color name="tab_body" value="0.827"/>
+<color name="box_fill" value="0.827"/>
+<color name="box_border" value="0 0 0"/>
+<pen name="boxborder" value="2.4"/>
+<preamble>
+\usepackage{amsmath}
+</preamble>
+</ipestyle>
---- end content of example.isy ---
where:
t.redo = function (t, doc)
doc[t.pno]:replace(t.primary, t.final)
end
+ model:runLatex() -- Necessary to re-set the resources!
model:register(t)
else
+ model:runLatex() -- Necessary to re-set the resources!
model:creation("create boxed text", obj)
- -- model.doc:runLatex() -- may crash the thing
end
end
t.redo = function (t, doc)
doc[t.pno]:replace(t.primary, t.final)
end
+ model:runLatex() -- Necessary to re-set the resources!
model:register(t)
else
+ model:runLatex() -- Necessary to re-set the resources!
model:creation("create tabbed text", obj)
-- model.doc:runLatex() -- may crash the thing
end
local prim = p:primarySelection()
if not prim then
self:presentation_backup_action_edit()
- return
+ return
end
local obj = p[prim]
if obj:type() == "group" then
elseif model.attributes.fill then
d:set("fill", indexOf(model.attributes.fill,colors) )
end
-
+
if indexOf("boxborder",pens) then
d:set("pen", indexOf("boxborder",pens))
elseif model.attributes.pen then
{ label = "Tabbed/Boxed Text", run=tabbedboxed},
{ label = "Deselect All", run=deselectAll},
}
-