Discussion:
How to load a package before the preambule
Fabien Lafont
2014-09-12 11:05:41 UTC
Permalink
Hello everyone,

I was wondering if it was possible to load a package before the preambule
of the document?

My problem is that I load \usepackage{cmbright}
And if it comes after \usepackage{fontspec} when I use Xelatex the text
switch to latin letters while the maths keep the cmbright font. If I
inverse the two packages I do not have any problem but I can't do it in Lyx
since lyx load automatically fontspec at the beginning

Thanks!

Fabien
Scott Kostyshak
2014-09-12 13:03:34 UTC
Permalink
Post by Fabien Lafont
Hello everyone,
I was wondering if it was possible to load a package before the preambule of
the document?
My problem is that I load \usepackage{cmbright}
And if it comes after \usepackage{fontspec} when I use Xelatex the text
switch to latin letters while the maths keep the cmbright font. If I inverse
the two packages I do not have any problem but I can't do it in Lyx since
lyx load automatically fontspec at the beginning
Thanks!
Fabien
Hi Fabien,

If you are going to cross-post, please link to all of your other
posts. To understand why, read about free pizza:
http://latex-community.org/home/latex-community/94-etiquette/454-crossposts

For archival purposes, one of Fabien's other posts is here:
http://tex.stackexchange.com/questions/200835/is-it-possible-to-load-a-package-before-the-lyx-preambule

Best,

Scott

Loading...