Artificial intelligent assistant

Unbolding sans serif font in math mode Is there a way to "unbold" the default text font (namely, sans serif) when written in math mode? Consider this example: Hello World$\qquad\textsf{Hello World}$ The first instance of "Hello World" is just plain text; the second is obtained inside math mode using the `\textsf` command.

You can tell MathJax to use the same font as is used for the surrounding text by the following command:

`$\style{font-family:inherit;}{\text{Some text}}$`

This gives: $\style{font-family:inherit;}{\text{Some text}}$

This assumes that what you want is to have the same font as the text, which happens to be a sans-serif font at the moment. In case this main font should change in the future or somebody changes it locally via using a custom style-file the text above will also change.

If the intent would be to "force" a sans-serif font, just one that usually is less bold, then this can be done using:

`$\style{font-family:sans-serif;}{\text{Some other text}}$`

This gives: $\style{font-family:sans-serif;}{\text{Some other text}}$

I learned this from an answer by regret on math.se, and the comments below.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 117c9dcee708c1b74b72ec288f6d6fac