-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
triglot.lua
51 lines (44 loc) · 1.01 KB
/
triglot.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
local book = require("classes.book")
local class = pl.class(book)
class._name = "triglot"
function class:_init (options)
book._init(self, options)
self:loadPackage("counters")
self:registerPostinit(function ()
SILE.scratch.counters.folio = { value = 1, display = "arabic" }
end)
self:declareFrame("a", {
left = "5%pw",
right = "28%pw",
top = "11.6%ph",
bottom = "80%ph"
})
self:declareFrame("b", {
left = "33%pw",
right = "60%pw",
top = "top(a)",
bottom = "bottom(a)"
})
self:declareFrame("c", {
left = "66%pw",
right = "95%pw",
top = "top(a)",
bottom = "bottom(a)"
})
self:declareFrame("folio", {
left = "left(a)",
right = "right(b)",
top = "bottom(a)+3%pw",
bottom = "bottom(a)+8%ph"
})
self:loadPackage("parallel", {
frames = {
left = "a",
middle = "b",
right= "c"
}
})
SILE.settings:set("linebreak.tolerance", 5000)
SILE.settings:set("document.parindent", SILE.nodefactory.glue())
end
return class