styling fixes
- include bib in contents - fix page breaks between chapters - fix colors in table of contents
This commit is contained in:
+3
-32
@@ -79,7 +79,7 @@
|
||||
margin: (
|
||||
top: 3.2cm,
|
||||
bottom: 3.5cm,
|
||||
inside: 3.5cm, // 2.5cm tekst + 1cm bindingoffset (rozwiązuje problem marginesu z lewej z Twojego kodu)
|
||||
inside: 3.5cm, // 2.5cm tekst + 1cm
|
||||
outside: 2.5cm,
|
||||
),
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
let pg = counter(page).get().first()
|
||||
let is-odd = calc.odd(pg)
|
||||
|
||||
// Czy ta strona otwiera rozdział? (brak nagłówka)
|
||||
// is chapter's first page?
|
||||
let chapter-locs = query(heading.where(level: 1))
|
||||
let is-chapter-page = chapter-locs.any(h => counter(page).at(h.location()).first() == pg)
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
|
||||
if it.level == 1 {
|
||||
// Wymuszenie nowej strony dla głównego rozdziału
|
||||
pagebreak(weak: true)
|
||||
pagebreak(to: "odd", weak: true)
|
||||
v(1.5em, weak: true)
|
||||
|
||||
block(width: 100%, inset: (bottom: 1em, top: 7em))[
|
||||
@@ -207,35 +207,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ── 3.5 SPIS TREŚCI ─────────────────────────────────────
|
||||
set outline(indent: auto)
|
||||
|
||||
show outline.entry: it => {
|
||||
if it.level == 1 {
|
||||
v(12pt, weak: true)
|
||||
text(size: 11pt, weight: "bold", font: "Fira Sans", fill: blue-zut)[
|
||||
#h(1.25cm)
|
||||
#it
|
||||
]
|
||||
} else if it.level == 2 {
|
||||
v(3pt, weak: true)
|
||||
text(size: 10pt, font: "Fira Sans")[
|
||||
#h(1.25cm)
|
||||
#it
|
||||
]
|
||||
} else if it.level == 3 {
|
||||
v(1pt, weak: true)
|
||||
text(size: 9pt, font: "Fira Sans")[
|
||||
#h(2.5cm)
|
||||
#it
|
||||
]
|
||||
} else {
|
||||
it
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ── 3.6 BLOKI KODU ──────────────────────────────────────
|
||||
show raw.where(block: true): it => {
|
||||
block(
|
||||
|
||||
Reference in New Issue
Block a user