Hello @keke_IRL,
You seem to be inserting content in math mode in an unintended way, i.e. with $ ... $.
You are in effect doing this:
// Text
"Hello World"
// Math
#let x = ["Hello World"]
$#x$
For an explanation of the effect of this, you can refer to How to insert quotation marks in math mode? - #2 by quachpas for a full example on how quotes are interpreted in math mode.
Example for the English language:
"This is a quote".
#quote($a + h$) // quote equation
$#["a + b"]$ // doesn't work
$#"a + b"$ // string variable (no quotes)
$#quote[a + b]$ // quote content in math
$#quote($a + b$)$ // quote math in math
To fix this, you should replace every occurence of $ ... $ with # ... .
Your corrected code:
#let reftitle = (
proph,
work,
name: "",
group: "",
year: 2026,
) => {
set align(center)
set par(justify: false, leading: 1.5em - 0.75em)
set text(font: "Times New Roman")
grid(
rows: (40%, 20%),
[
"RIGHT HERE IT WORKS NORMALLY"
],
[ #work ],
grid(
columns: (1fr, 1fr),
align(left)[Проверил:\ #proph], align(right)[Выполнил:\ Студент #group\ #name],
),
align(bottom)[Москва, #year],
)
}
#reftitle(["Test"], ["Hello There"])
As a side note, if you could please edit your post title to follow our guidelines:
We hope that this way, it will be easier for others to find the solution to their questions.

