I tried to compile this code using xelatex.
\documentclass[a4paper,12pt]{scrartcl}
\usepackage{fontspec}
\usepackage{mathpazo}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}
It seems the font is not loading.

How do I fix this?
I tried to compile this code using xelatex.
\documentclass[a4paper,12pt]{scrartcl}
\usepackage{fontspec}
\usepackage{mathpazo}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}
It seems the font is not loading.

How do I fix this?
Maybe this is not the proper way to do it, but it works.
\documentclass[a4paper,12pt]{scrartcl}
\usepackage{arabxetex} %thanks to this guy
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{mathpazo}
\usepackage{lipsum}
\begin{document}
\lipsum[3]
\begin{equation}
f(a) = \frac{1}{2\pi i} \oint\frac{f(z)}{z-a}dz
\end{equation}
\end{document}
Straße.
– Ulrike Fischer
Sep 03 '19 at 07:48
mathpazo package mainly designed for LaTeX->dvips->PS2PDF or PDFLaTeX, its
better to use the packages newpxtext and newpxmath to get Palatino by using xeLaTeX, and the codes are:
\documentclass{book}
\usepackage{fontspec}
\usepackage{newpxtext,newpxmath}
\begin{document}
This is for test
\[
a+b=c1
\]
\end{document}
mathpazo. -1
– Henri Menke
Sep 03 '19 at 06:57
fontspecwith packages likemathpazo. see the linked question for possibilities to use Palatino (like) fonts for text and math. – Ralf Stubner Sep 03 '19 at 05:37