I hope this is the correct forum. If not, please let me know.
I am writing a master thesis in maths and I am not sure, when I do use upright letters for a variable.
Let's have a look at the following sentence: Let $a,m$ be naturals and let $\operatorname{g} := \operatorname{lcm}(a,m)$.
My guess is that I write $a$ and $m$ in cursive, because I can choose them arbitrarily. But I would write $\operatorname{g}$ upright, because it is dependent on $a$ and $b$. In addition, $\operatorname{lcm}$ is an operator, so I write that upright anyways. That's why I would write the $\operatorname{g}$ upright, too.
Is that correct? Is there a style convention?