typst-itmo/helpers.typ
2024-09-18 15:58:04 +03:00

22 lines
565 B
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 ru_alph(pattern: "а)") = {
let alphabet = "абвгдежзиклмнопрстуфхцчшщэюя".split("")
let f(i) = {
let letter = alphabet.at(i)
let str = ""
for char in pattern {
if char == "а" {
str += letter
}
else if char == "А" {
str += upper(letter)
}
else {
str += char
}
}
str
}
f
}
#let numbered_eq(content) = math.equation(block: true, numbering: "(1)", content)