I've now solved the problem with adding auto-pst-pdf
to the code
\documentclass{article}
\usepackage{auto-pst-pdf}
\usepackage{fontenc,unicode-math}
\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
\setmathfont[Ligatures=TeX]{TeX Gyre Pagella Math}
\begin{document}
Test in Pagella
\[\sum_{k=1}^n k=\frac{n(n+1)}{2}\]
\end{document}
And compiling it with lualatex -shell-escape file.tex
produces the following out put containing just TeX Gyre Pagella and TeX Gyre Pagella Math.
Great thanks to @egreg for providing this hint.
Improved due to @Ulrike Fischer's comment
There is obiously no way to solve the problem as I wanted, so I edited my code once again
\documentclass{article}
\usepackage{pstricks}
\usepackage{xltxtra}
\usepackage{xunicode}
\usepackage{fontenc}
\usepackage{unicode-math}
\setromanfont[Ligatures=TeX]{texgyrepagella-regular.otf}
\setmathfont[Ligatures=TeX]{texgyrepagella-math.otf}
\begin{document}
Test in Pagella
\[\sum_{k=1}^n k=\frac{n(n+1)}{2}\]
\begin{pspicture}(3,3)
\psline{->}(1,1)(3,2)
\psline{->}(1,1)(3,1)
\rput(2,2){$x$}
\end{pspicture}
\end{document}
Processing it with xelatex file.tex
produces the wanted PDF-file, containing the TeX Gyre Pagella and Pagella Math
Thanks to @egreg and @Ulrike Fischer for their hints. More improvement is welcome, I think there's a lot to learn for me.
For the sake of closing the question, here is a summary of the comments:
No, the TeX Gyre fonts are not meant to be used together. They are just a high quality Type1 and OpenType replacement of standard fonts that used to be provided by the URW collection in Type1.
The TeX Gyre collection of fonts consists of:
TeX Gyre font Original font Old URW replacement font
---------------------------------------------------------------------------
TeX Gyre Adventor ITC Avant Garde Gothic URW Gothic L
TeX Gyre Bonum ITC Bookman URW Bookman L
TeX Gyre Chorus ITC Zapf Chancery URW Chancery L Medium Italic
TeX Gyre Cursor Courier URW Nimbus Mono L
TeX Gyre Heros Helvetica URW Nimbus Sans L
TeX Gyre Pagella Palatino URW Palladio L
TeX Gyre Schola Century Schoolbook URW Century Schoolbook L
TeX Gyre Termes Times (New) Roman URW Nimbus Roman No9 L
As the original fonts that the TeX Gyre collection replaces were not designed to be used together, the TeX Gyre fonts themselves can't be expected to be designed for that purpose.
Best Answer
If you insist on Type 1 fonts (cf. Wikipedia: PostScript fonts), you could use the package
mathpazo
. Load this before loading of TeX Gyre Pagella, becausemathpazo
itself redefines also\rmdefault
to a Palatino variant.If you want to use OTF/TTF fonts – what usually means you must use Lua(La)TeX or Xe(La)TeX –, you could use “DejaVu Sans” as replacement for “Bera Sans” – the whole DejaVu fonts project is derived from the Vera fonts, from whome the Bera fonts themselves are derived (and BTW also the Arev fonts). For loading you do not need directly the
fontspec
call, but can write\usepackage{DejaVuSans}
.