Use contour in math mode for italic symbols

boldcontouritalicmath-mode

I'm trying to make bold symbols bolder in math mode (\boldsymbol isn't bold enough for my liking), and so far the best solution I've found is using contour. However, when contour is used within math mode, it makes the symbols lose their italic behavior. Is there a way to use contour within an equation to yield italic characters?

\documentclass{article}
\usepackage{amsmath}
\usepackage[outline]{contour}
\newcommand{\A}{\contour{black}{A}}
\begin{document}
\begin{enumerate}
\item Using math mode within contour works:
\contour{black}{$A$} $ = 1$

\item but I want to use contour within math mode:
$\contour{black}{A} = 1$

\item since I'd like to eventually define the variables as bold elsewhere in the document:
$\A = 1$
\end{enumerate}
\end{document}

Here's why \bm isn't bold enough for me: Can you tell easily which r's are bolded?
enter image description here

vs using contour:
enter image description here

Best Answer

enter image description here

You could use $\contour{black}{$A$} = 1$ but this produces a rather fuzzy bold, and doesn't work in supercripts without adding further complication of \mathchoice. It is generally better to use a bold font.

\documentclass{article}
\usepackage{amsmath}
\usepackage[outline]{contour}
\newcommand{\A}{\contour{black}{$A$}}
\usepackage{bm}
\bmdefine\Abm{A}
\begin{document}
\begin{enumerate}
\item Using math mode within contour works:
\contour{black}{$A$} $ = 1$

\item but I want to use contour within math mode:
$\contour{black}{$A$} = 1$

\item since I'd like to eventually define the variables as bold elsewhere in the document:
$\A = 1$
\end{enumerate}

\begin{enumerate}
\item Using math mode within contour works: $\bm{A} = 1$

\item but I want to use contour within math mode:
$\bm{A} = 1$

\item since I'd like to eventually define the variables as bold elsewhere in the document:
$\Abm = 1$
\end{enumerate}
\end{document}