Улучшение соответсвия
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user