# [Tugindia] Changing the default math font

Tue Mar 10 16:04:53 CET 2009

```On Mon, 10 Mar 2009, Shailesh Ashok Shirali wrote:

>
> Dear friends,
>
> I wish to change the default font for my document. I know that the
> command
>
> \renewcommand{\familydefault}{\sfdefault}
>
> changes the text font to sans-serif. I can also use
>
> \usepackage[scaled=0.92]{helvet}
>
> But the math font remains the same under both these commands.
>
> What is the simplest way to change the default font for math
> text?

\usepackage{sfmath}

See http://dtrx.de/od/tex/sfmath.html for details.

> Also, if I run
>
> htlatex
>
> on this file, will the font changes show in the html file? My
> initial attempts suggest that no change occurs. How can I change
> this?

I don't know how htlatex works for math. If it generates MathML, then you
could use a stylesheet to change the math font, but there aren't too many
options for math fonts for the browser. If it uses cropped images, then
changing the math font of the latex document should be enough.