typst-itmo/title.typ

58 lines
1.3 KiB
Text
Raw Permalink 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.

#let itmo_title(
year: datetime.today().year(),
type: [Тип работы №n],
subject: [Дисциплина],
name: [Название работы],
var: none,
authors: (
(
name: [Капралов Егор],
group: [R3340]
),
)
) = [
#set align(center)
#set page(
header-ascent: 0em,
header: [
#set text(size: 11pt)
#set par(leading: 1em)
Федеральное государственное автономное образовательное учереждение высшего образования
"Национальный исследовательский университет ИТМО"
],
footer: [
#set text(size: 11pt)
Санкт-Петербург, #year г.
]
)
#v(30%)
#image("itmo.png", width: 50%)
#type
#if name != none { ["#name"] }
#[
#set text(size: 11pt)
по дисциплине
]
"#subject"
#if var != none {
[Вариант №#var]
}
#v(15%)
#{
set align(right)
[Работу выполнил(и):]
linebreak()
for author in authors {
author.name + " " + author.group
}
}
]