On 2011-10-06, Diego Queiroz wrote:

> [-- Type: text/plain, Encoding:  --]

> Hi folks.

> I want to change the font in Math environment to Sans-serif, but when I
> change the Font Default Family in a document (thru Document > Settings... >
> Fonts) the font used in Math environment is not changed.

This is a feature of TeX: text fonts and math fonts are separate entities.
This is, because in math the letter shape conveys *meaning* (and, of course
also becauso of historic reasons.

> Currently, is there a way to change the Math font to Sans-serif in LyX?

Only via the LaTeX preamble.

> I know that I can do that including \usepackage{sfmath} to the preamble, but
> I want to know if something similiar can be done using LyX User Interface,
> without ERT.

No need for ERT - font selection is done in the preamble.

No support via the GUI. The current selection of GUI-supported fonts is
*very* limited. This is a long-standing enhancement request.

There are more options than the sfmath package. 

The LaTeX font catalogue lists font packages with math support
http://www.tug.dk/FontCatalogue/mathfonts.html
some of them sans-serif.

A (German) overwiew with math test pages is available at
http://milde.users.sourceforge.net/Matheschriften/matheschriften.html
There is a table listing sans-serif math options at
http://milde.users.sourceforge.net/Matheschriften/matheschriften.html#sans-serif-grotesk

I recommend Arev: in the LaTeX preamble:

  \usepackage{arev}
  
If you want a different text font, put the font-selecting commands below
to overwrite the selection of Arev Sans in the arev package.

Günter

Reply via email to