Files
2026-10-09 04:24:38 +00:00

66 lines
2.1 KiB
Typst

// ПРИМЕР ДЕЛОВОГО ПИСЬМА. Каталог можно целиком скопировать в корень проекта.
#import "/.template/lib/index.typ": document, profiles, recipient, attachment, attachment-set, load-company, empty-private-settings, private-company-media
#let company-id = "scientia" // "scientia" | "technology" | "too"
#let document-mode = "final" // "final" | "draft" | "clean-copy"
#let use-private-assets = false // true — читать .private/settings.typ
#let private-settings = if use-private-assets {
import "/.private/settings.typ": settings
settings
} else {
empty-private-settings
}
#let company-media = private-company-media(private-settings, company-id)
#let company = load-company(
company-id,
logo: auto,
signature: company-media.signature,
stamp: company-media.stamp,
)
#let addressee = recipient(
company: "АО «Горнодобывающая компания»",
title: "Техническому директору",
name: "Иванову Ивану Ивановичу",
address: "620000, г. Екатеринбург, ул. Примерная, 1",
)
#let attachments = attachment-set(
items: (
attachment(
"materials",
"Перечень передаваемых материалов",
[#include "chapters/99-appendices.typ"],
subtitle: none,
number: auto,
outlined: false,
),
),
numbering: "arabic",
start: 1,
)
#show: document.with(
company: company,
profile: profiles.letter(
recipient: addressee,
date: "01.01.2026",
reference: "ИСХ-001/2026",
title: "О направлении материалов этапа 1",
signer: none,
note: "Исп.: Петров П.П., +7 (000) 000-00-00",
show_stamp: true,
attachments: attachments,
render_attachments: false,
),
options: (
mode: document-mode,
watermark: if document-mode == "draft" { "ЧЕРНОВИК" } else { none },
media-policy: if document-mode == "final" { "placeholder" } else { "reserve-space" },
diagnostics: true,
),
)
#include "chapters/10-letter.typ"