Discussion:
xetex use stix fonts?
Neal Becker
2011-02-02 15:01:17 UTC
Permalink
Any easy way to switch to all stix fonts (lyx > 2.0)?
Guenter Milde
2011-02-02 20:29:39 UTC
Permalink
Post by Neal Becker
Any easy way to switch to all stix fonts (lyx > 2.0)?
What for (Text/Math/both)?

I recommend using XITS (a re-packed STIX font) and the unicode-math
package.

Günter
Neal Becker
2011-02-03 12:26:40 UTC
Permalink
Post by Guenter Milde
Post by Neal Becker
Any easy way to switch to all stix fonts (lyx > 2.0)?
What for (Text/Math/both)?
I recommend using XITS (a re-packed STIX font) and the unicode-math
package.
Günter
Assuming I can find XITS (I'm using fedora linux - stix is a standard (set) of
packages available on fedora), then what is the procedure? Go to document/
settings/fonts, choose non-tex fonts, then what?
Neal Becker
2011-02-03 12:53:56 UTC
Permalink
Post by Neal Becker
Post by Guenter Milde
Post by Neal Becker
Any easy way to switch to all stix fonts (lyx > 2.0)?
What for (Text/Math/both)?
I recommend using XITS (a re-packed STIX font) and the unicode-math
package.
Günter
Assuming I can find XITS (I'm using fedora linux - stix is a standard (set) of
packages available on fedora), then what is the procedure? Go to document/
settings/fonts, choose non-tex fonts, then what?
I found xits is available from the fedora texlive-2010 packages. Cool!

But not much joy. I tried setting roman font to XITS. OK so far. But if I add
\usepackage{unicode-math}
to preamble I get errors from constructs like $H'$: same as
http://www.mail-archive.com/***@tug.org/msg02499.html

There it says
The error goes away if you set a math font using the \setmathfont command
as in
\setmathfont{Asana Math}

OK, so I can't seem to do this in lyx, so I export to tex, and add
\setmathfont{XITS Math} after \begin{document}.

Then it compiles OK, but looks wrong. For one thing, my matrixes, which had []
around them, are shown with the wrong size [] (as if they were not extensible
characters, they just look text size).
Guenter Milde
2011-02-03 20:30:00 UTC
Permalink
Post by Neal Becker
Post by Neal Becker
Any easy way to switch to all stix fonts (lyx > 2.0)?
I found xits is available from the fedora texlive-2010 packages. Cool!
Also, as it is an OpenType font, it can be easy installed in any recent
Linux (download to the ~/.fonts/ directory should suffice).
Post by Neal Becker
But not much joy. I tried setting roman font to XITS. OK so far. But if I add
\usepackage{unicode-math}
to preamble I get errors from constructs like $H'$: same as
There it says
The error goes away if you set a math font using the \setmathfont command
as in
\setmathfont{Asana Math}
OK, so I can't seem to do this in lyx, so I export to tex, and add
\setmathfont{XITS Math} after \begin{document}.
Why not simply putting

\usepackage{unicode-math}
\setmathfont{XITS Math}

in the user preamble (or use ERT)?
Post by Neal Becker
Then it compiles OK, but looks wrong. For one thing, my matrixes,
which had [] around them, are shown with the wrong size [] (as if they
were not extensible characters, they just look text size).
This looks like th known XeTeX bug with 64-bit systems. (I was bitten by
it, too (Debian/testing, TeXLive2009, hand-installed unicode-math).)
I first thought it was a problem of a font but it happened also with
Asana Math and Neo Euler and was confirmed on comp.text.tex.

With texlive 2010, you could try whether it works with LuaTeX.

Günter
Neal Becker
2011-02-07 18:13:10 UTC
Permalink
Post by Guenter Milde
Post by Neal Becker
Post by Neal Becker
Any easy way to switch to all stix fonts (lyx > 2.0)?
I found xits is available from the fedora texlive-2010 packages. Cool!
Also, as it is an OpenType font, it can be easy installed in any recent
Linux (download to the ~/.fonts/ directory should suffice).
Post by Neal Becker
But not much joy. I tried setting roman font to XITS. OK so far. But if I add
\usepackage{unicode-math}
to preamble I get errors from constructs like $H'$: same as
There it says
The error goes away if you set a math font using the \setmathfont command
as in
\setmathfont{Asana Math}
OK, so I can't seem to do this in lyx, so I export to tex, and add
\setmathfont{XITS Math} after \begin{document}.
Why not simply putting
\usepackage{unicode-math}
\setmathfont{XITS Math}
in the user preamble (or use ERT)?
Post by Neal Becker
Then it compiles OK, but looks wrong. For one thing, my matrixes,
which had [] around them, are shown with the wrong size [] (as if they
were not extensible characters, they just look text size).
This looks like th known XeTeX bug with 64-bit systems. (I was bitten by
it, too (Debian/testing, TeXLive2009, hand-installed unicode-math).)
I first thought it was a problem of a font but it happened also with
Asana Math and Neo Euler and was confirmed on comp.text.tex.
With texlive 2010, you could try whether it works with LuaTeX.
Günter
I just updated to texlive 2011 (packaged for fedora by :
Jindrich Novy <***@redhat.com>

The bug is fixed! Both xetex and luatex give good results.

I used this in the preamble:
\usepackage{unicode-math}
\setmathfont{XITS Math}

Loading...