0

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. enter image description here

How do I fix this?

Sukan
  • 849

2 Answers2

0

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}
Sukan
  • 849
  • No it doesn't work. You are resetting the encoding to something that doesn't work with xetex. Try some words with non-ascii char. E.g. Straße. – Ulrike Fischer Sep 03 '19 at 07:48
0

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}

enter image description here

MadyYuvi
  • 13,693