1

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.

How about in the equation?

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

\begin{equation}
{\sffamily A}\boldsymbol{v}=\lambda \boldsymbol{v}.
\end{equation}

enter image description here

4
  • Do you want all math to be in sans serif? Or just the M? Or for any "matrix" symbol? – Steven B. Segletes Apr 16 '20 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 '20 at 11:44
  • 2
    You can use \mathsf{A}. Other options would include \mathbb{A}. The latter requires \usepackage{amssymb} – Steven B. Segletes Apr 16 '20 at 11:44
  • @StevenB.Segletes. Thanks. it works. – aan Apr 16 '20 at 12:20
2

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.

How about in the equation?

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

\begin{equation}
\mathsf{A}\boldsymbol{v}=\lambda \boldsymbol{v}.
\end{equation}
\end{document}

enter image description here

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

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.