the first $ switches into maths mode (assuming we were not already typesetting maths) and the second $ switches out of maths mode. Then the next switches into it and the last switches out of it.
This means that \boldmath occurs in maths mode, causing an error, and \Omega occurs outside maths mode, causing another (except that TeX is quite confused by this point).
Compare (simplifying by dropping the italics):
$\Omega$ \boldmath $\Omega$
which produces:
Note that here the \Omegas are in maths mode, while the \boldmath is outside it.
Best Answer
Do you perhaps want the
\varOmega
in bold?Note that in the following code
the first
$
switches into maths mode (assuming we were not already typesetting maths) and the second$
switches out of maths mode. Then the next switches into it and the last switches out of it.This means that
\boldmath
occurs in maths mode, causing an error, and\Omega
occurs outside maths mode, causing another (except that TeX is quite confused by this point).Compare (simplifying by dropping the italics):
which produces:
Note that here the
\Omega
s are in maths mode, while the\boldmath
is outside it.