I am trying to use my lucida fonts, which work fine with my Latex, in
my LyX. I purchased these fonts from PCTex with the lucimatx package
(which automatically loads the fonts both for text and math) written
by Walter Schmidt. This package is meant to replace amssymb and
amsfonts (but not amsmath). I can load the package by adding a line in
the preamble option in LyX. However, I cannot seem to turn off the
automatic loading of amssymb...
Is there any way I can do this in LyX?
I am having no success adding
\usepackage{lucimatx}
in my document preamble, using Document>Settings>Latex Preamble The
reason is that LyX automatically loads amssymb (and I think that also
amsfonts) as soon as characters such as \mathbb{E} are employed. Is
there any way to turn off this behavior?
I tried using the Settings>Math Option and turning of AMS math (and
loading it myself the preamble) with no luck. That only controls
amsmath, not the automatic loading of amssymb (or amsfonts I believe).
For reference, things work fine if I write a latex file such as:
\documentclass{article}
\usepackage{amsmath}
\usepackage{lucimatx}
\begin{document}
Some math:
\begin{equation}
\mathbb{E}[f(x)]=\int_0^\infty f(x)g(x)dx
\end{equation}
\end{document}
The problem is if I try to do something analogous in LyX (with
\usepackage{lucimatx} stuck in the Latex preamble under settings) LyX
loads amssymb which conflicts with lucimatx and I get an error which
stops the compile. I can see that the line \usepackage{amssymb} is
added at the top of the preamble in an export from LyX.
Any help much appreciated.
-Ivan