I was wondering if it was possible to edit the packages that LyX load before the preamble. When I use XeLaTeX, LyX loads the package
fontspec. The problem is that I load in the preamble the package
cmbright and if I do it in this order the text turn to serif. From the exported TeX file from LyX I switched the order of the two packages (first
cmbright and then
fontspec) and it works perfectly. So does anybody know how to edit the packages that LyX automatically load?