I would like to obtain a bold equation inside an equation environment. I've tried
\begin{equation}
\boldsymbol{x=y}
\end{equation}
but x=y
is not rendered bold. What's going wrong here? If I write \boldsymbol{x=y}
(without the surrounding equation environment), x=y
is rendered bold as expected.
(Moreover, I would like to know how I can render an equation reference bold. I've tried \textbf{\eqref{eq:my-equation}}
but again the text is not rendered bold.)
EDIT: Complete example compiled on overleaf with XeLaTex:
\documentclass{article}
\usepackage{amsmath, amsthm, amssymb, mathtools, thmtools, unicode-math}
\usepackage{hyperref, cleveref}
\begin{document}
\begin{equation}\label{eq:my-equation}
\boldsymbol{x=y}
\end{equation}
\eqref{eq:my-equation}
\end{document}
\boldsymbol
would make that bold, although it is bad markup, it should just be applied to single symbols not a complete term such asx=y
, similarly by default\textbf
would make the reference bold. Perhaps you are using a font set with no bold,impossible to say unless you provide a document that shows the problem{\boldmath\begin{equation} x=y \end{equation} \unboldmath
, for instance.