aboutsummaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
Diffstat (limited to 'book')
-rw-r--r--book/book.js4
-rw-r--r--book/book.typ2
2 files changed, 3 insertions, 3 deletions
diff --git a/book/book.js b/book/book.js
index 2ae7335a..82422841 100644
--- a/book/book.js
+++ b/book/book.js
@@ -37,8 +37,8 @@ const toc = (pages) => ({
h2("b.toc"),
{
t: "list", es: pages.map(p => ref(p.ref, ({
- t: "container", es: [
- par(p.title),
+ t: "par", es: [
+ span_raw(tr(p.title)),
{ t: "align", dir: "flow_end", e: par_raw(plain(`${p.page}`)) }
]
})))
diff --git a/book/book.typ b/book/book.typ
index 8b1c3e3d..79e3f7eb 100644
--- a/book/book.typ
+++ b/book/book.typ
@@ -62,7 +62,7 @@
] else if elem.t == "label" [
#element(elem.e) #label(elem.id)
] else if elem.t == "align" [
- #align(if elem.dir == "flow_end" { right } else { bottom }, element(elem.e))
+ #h(1fr) #align(if elem.dir == "flow_end" { right } else { bottom }, element(elem.e))
] else if elem.t == "container" [
#for e in elem.es [
#element(e)