Compiling this file with xelatex I see the following warnings:
LaTeX Font Warning: Font shape `TU/zpltlf/m/n' undefined
(Font) using `TU/lmr/m/n' instead on input line 20.
LaTeX Font Warning: Font shape `TU/qhv/m/n' undefined
(Font) using `TU/lmr/m/n' instead on input line 20.
What do I need to read to understand and fix this problem?
\documentclass{article}
\usepackage{fontspec}
\usepackage{newpxtext}
\usepackage[advantage,landau]{cryptocode}
\usepackage{titling}
\usepackage{authblk}
\title{Title}
\author{Paul Crowley}
\begin{document}
\maketitle
\begin{abstract}
Abstract.
\end{abstract}
The advantage is at most $\advantage{f}{g}[(q, t')]$
\end{document}
\usepackage{newpxtext}is setting up 8bit fonts so not suitable for xelatex and Unicode (TU) encoding. You coul duse a real Palatino or the TeX-Gyre OpenType clone which are more naturally available as Unicode fonts – David Carlisle May 23 '18 at 22:47newpxtext? It's a package for pdflatex. – egreg May 23 '18 at 22:58\setmainfont{TeX Gyre Pagella}and\usepackage{newpxmath}(or you'd get Computer Modern for math that's incompatible with Palatino). – egreg May 23 '18 at 23:29