when i type quotation marks (" "), they both get converted to the left variant in the document in every language. to get the right variant, i need to paste the left one manually (for some reason).
BUT, the weirder part is, that is not the case in this document. if this means literally anything, i am on a linux pc, and i never encountered this issue on windows.
in summary, if i make changes to this function directly, the quotes look normal, otherwise (e.g. as an argument) - both quotes are left.
#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$],
)
}
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.
1 Like