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? Commented 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
    Commented Apr 16, 2020 at 11:44
  • 2
    You can use \mathsf{A}. Other options would include \mathbb{A}. The latter requires \usepackage{amssymb} Commented Apr 16, 2020 at 11:44
  • @StevenB.Segletes. Thanks. it works.
    – aan
    Commented Apr 16, 2020 at 12:20

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .