# How to have a equation (Matrix) in Sans-Serif font?

This is a follow up question from Sans-Serif font in text

I am using this \usepackage{helvet} for my entire writing in Overleaf. However, for a matrix symbol M, I want to use Sans-serif font which I also want a small paragraph using Sans-serif font.

So, I put: renewcommand{\familydefault}{\sfdefault} But it changes the whole entire typing to Sans-serif, which I do not want.

So, I uses:

{\sffamily Text in sans-serif...} ... normal text


will get Sans-serif font in text.

text {\sffamily A}$\boldsymbol{v}$ $=$ $\lambda$$\boldsymbol{v}$.

$${\sffamily A}\boldsymbol{v}=\lambda \boldsymbol{v}.$$


• Do you want all math to be in sans serif? Or just the M? Or for any "matrix" symbol? Apr 16, 2020 at 11:42
• @StevenB.Segletes Nope. I just want my matrix A in sans serif font which is only for matric, vector.
– aan
Apr 16, 2020 at 11:44
• You can use \mathsf{A}. Other options would include \mathbb{A}. The latter requires \usepackage{amssymb} Apr 16, 2020 at 11:44
• @StevenB.Segletes. Thanks. it works.
– aan
Apr 16, 2020 at 12:20

The proper way to access sans serif in math mode for the odd symbol here and there is by way of \mathsf{}.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
{\sffamily Text in sans-serif...} ... normal text

will get Sans-serif font in text.

text $\mathsf{A}\boldsymbol{v}=\lambda\boldsymbol{v}$.
$$\mathsf{A}\boldsymbol{v}=\lambda \boldsymbol{v}.$$

As I mentioned in the comment, an alternative (with the amssymb package) is \mathbb{A}: