Улучшение соответсвия

This commit is contained in:
2026-05-28 17:23:54 +03:00
parent 5c40687011
commit 0c15c7b786
39 changed files with 161 additions and 204 deletions

View File

@@ -1,7 +1,7 @@
// Таблицы — как в «Пример работы с Typst.typ» и gost: figure + table + table.header.
// Разрыв длинных таблиц и подпись сверху задаёт шаблон modern-g7-32 (style.typ).
#show table: set text(hyphenate: true)
#show table: set text(hyphenate: true, lang: "ru")
#let pz-appendix-title(body) = heading(level: 1)[#body]
@@ -160,19 +160,11 @@
let start-page = state("pz-table-start-page", none)
figure(
kind: table,
{
show table: set text(hyphenate: true, lang: "ru")
show table.cell: it => {
set align(left + top)
set par(justify: false)
it
}
context {
let fig-loc = here()
let tab-num = counter(figure.where(kind: table)).at(fig-loc).first()
start-page.update(none)
pz-table-inner(columns, header-cells, tab-num, start-page, ..arguments(..tail))
}
context {
let fig-loc = here()
let tab-num = counter(figure.where(kind: table)).at(fig-loc).first()
start-page.update(none)
pz-table-inner(columns, header-cells, tab-num, start-page, ..arguments(..tail))
},
caption: caption,
)