Files
Wallenc/Report/includes/listings-appendix.typ

33 lines
851 B
Typst
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Show-правила листингов приложения А (вставляются в appendix-a.typ при генерации).
#show raw: set text(font: "DejaVu Sans Mono")
#let pz-listing-num-outset = 30mm
#let pz-listing-code-indent = 1.25cm
#show figure.where(supplement: [Листинг]): set block(breakable: true)
#show raw.where(block: true): it => block(
breakable: true,
width: 100% + pz-listing-num-outset,
outset: (left: pz-listing-num-outset),
)[
#set block(spacing: 0pt)
#it
]
#show raw.line: it => grid(
columns: (1.5em, 1fr),
column-gutter: pz-listing-code-indent,
align: (right + horizon, left + horizon),
inset: (y: 0.35pt),
text(size: 8.5pt, fill: luma(120))[#str(it.number)],
box(width: 100%)[
#set text(size: 9pt)
#set par(leading: 0.45em)
#it.body
],
)
#set figure(gap: 0.35em)