I’d like to use the microtype
and xeCJK
packages in one document:
\documentclass{scrreprt}
\usepackage{microtype}
\expandafter\let\csname xetex_suppressfontnotfounderror:D\endcsname
\suppressfontnotfounderror
% the above two lines are a necessary fix to a temporary problem
% of a package lagging behind in CTAN
\usepackage{xeCJK}
\setCJKmainfont{Source Han Sans}
\begin{document}
Hello world.
\end{document}
but keep getting this error:
!Undefined control sequence
<argument> \ifpdf
\expandafter \@secondoftwo \else \expandafter \@firstoftwo...
l.7 \begin{document}
I do not get the error if I remove either xeCJK or microtype. None of the packages list an incompatibility in their respective documentation. Is there an error on my side, or a way to solve the problem?