Hi William:
A Divendres 01 Octubre 2004 22:35, William F. Adams va escriure:
> On Friday, October 1, 2004, at 03:20 AM, Pep Roca wrote:
> > In my documents I use avant font (I have in the preamble
> > "\renewcommand\familydefault{\sfdefault}"). But in the equation, the
> > fonts
> > are, not avant. There are any easy way to configure that in all the
> > equations
> > LyX use avant fonts, instead times fonts? Thanks in advance.
>
> You need to get sansmath.sty from your local CTAN node and load it w/
> the ERT
> ``\usepackage{sansmath}''
> and then add commands like \mathversion{sans} and \mathversion{normal}
> where necessary in your document.
>
> William
I did that, but I get the time font in the equations. A sample file is:
*************************************************************************************
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrartcl
\begin_preamble
\renewcommand\familydefault{\sfdefault}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{babel}
\usepackage{sansmath}
\end_preamble
\language catalan
\inputencoding auto
\fontscheme avant
\graphics default
\paperfontsize 10
\spacing single
\papersize a4paper
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default
\layout Standard
\begin_inset ERT
status Open
\layout Standard
\backslash
mathversion{sans}
\end_inset
\layout Standard
Equations:
\layout Standard
\begin_inset Formula $font\, equations$
\end_inset
\the_end
****************************************
Any suggestion? Thanks a lot. Pep Roca.