Discussion:
Matching math font with TG Pagella
Daniel CLEMENT
2014-09-27 08:27:54 UTC
Permalink
Hello,

I like to use the TexGyre Pagella font in many documents, better that
Palatino which lacks ligatures.

However, Palatino triggers a nice matching font for maths, and I was
never able to get it with TG Pagella, at least under LyX 2.0.6.

Now that I've installed LyX 2.1.1, I wondered if perhaps it was easier
to achieve, but I can't find how to do it in the new fonts settings
dialog box.

Do I have to add a package or something in the preamble?

TIA - best regards,
--
Daniel CLEMENT
Guenter Milde
2014-10-03 08:58:02 UTC
Permalink
Post by Daniel CLEMENT
Hello,
I like to use the TexGyre Pagella font in many documents, better that
Palatino which lacks ligatures.
However, Palatino triggers a nice matching font for maths, and I was
never able to get it with TG Pagella, at least under LyX 2.0.6.
Now that I've installed LyX 2.1.1, I wondered if perhaps it was easier
to achieve, but I can't find how to do it in the new fonts settings
dialog box.
Do I have to add a package or something in the preamble?
You may try the newpx package.
http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/newpx.html

Alternatively,
Daniel CLEMENT
2014-10-03 12:12:17 UTC
Permalink
Post by Guenter Milde
Post by Daniel CLEMENT
Hello,
I like to use the TexGyre Pagella font in many documents, better that
Palatino which lacks ligatures.
However, Palatino triggers a nice matching font for maths, and I was
never able to get it with TG Pagella, at least under LyX 2.0.6.
Now that I've installed LyX 2.1.1, I wondered if perhaps it was easier
to achieve, but I can't find how to do it in the new fonts settings
dialog box.
Do I have to add a package or something in the preamble?
You may try the newpx package.
http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/newpx.html
Thanks a lot, that works beautifully. The newpxmath font is very nice.

Just out of curiosity, and to check that I'm doing things properly:
- I select TexGyge Pagella in LyX's fonts dialog;
- but I can't choose newpxmath from there so I have to add
\usepackage{newpxmath}
to my document preamble.

Is that correct?
Post by Guenter Milde
Alternatively,
--
Daniel CLEMENT
Guenter Milde
2014-10-04 08:27:46 UTC
Permalink
Post by Daniel CLEMENT
Post by Guenter Milde
Post by Daniel CLEMENT
Hello,
I like to use the TexGyre Pagella font in many documents, better that
Palatino which lacks ligatures.
However, Palatino triggers a nice matching font for maths, and I was
never able to get it with TG Pagella, at least under LyX 2.0.6.
Now that I've installed LyX 2.1.1, I wondered if perhaps it was easier
to achieve, but I can't find how to do it in the new fonts settings
dialog box.
Do I have to add a package or something in the preamble?
You may try the newpx package.
http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/newpx.html
Thanks a lot, that works beautifully. The newpxmath font is very nice.
- I select TexGyge Pagella in LyX's fonts dialog;
- but I can't choose newpxmath from there so I have to add
\usepackage{newpxmath}
to my document preamble.
Is that correct?
This is how I would do it.

Alternatively, you could also load Palatino in the font dialogue
and overwrite the text font with tgpagella in the preamble

\usepackage{tgpagella}

This would result in the standard "mathpazo" symbols and fonts for formulae
and TG Pagella in the text.

With XeTeX/LuaTeX, you can use "unicode-math" with the Asana-Math fonts for
maths and the OpenType Pagella for text.

Günter
Jürgen Spitzmüller
2014-10-04 08:40:31 UTC
Permalink
Post by Guenter Milde
This is how I would do it.
Alternatively, you could also load Palatino in the font dialogue
and overwrite the text font with tgpagella in the preamble
\usepackage{tgpagella}
This would result in the standard "mathpazo" symbols and fonts for formulae
and TG Pagella in the text.
With XeTeX/LuaTeX, you can use "unicode-math" with the Asana-Math fonts for
maths and the OpenType Pagella for text.
It would be pretty trivial to add support for newpxmath to LyX (although it
involves a file format change). You can take this as a model:
http://www.lyx.org/trac/changeset/a84a98b5/lyxgit/

Jürgen

Loading...