[texhax] polyglossia vs. cleverref

Paulo Ney de Souza pauloney at gmail.com
Wed Nov 28 07:11:31 CET 2018


Would anyone help elucidate what is the problem between these two packages,
when you run it with xelatex, as show in this MWE?

I get an error:

! Undefined control sequence.
\@begindocumenthook ...sname extras\cref at language
                                                  \endcsname }\@ifundefined
...
l.12 \begin{document}

and they work fine with Babel.

Many thanks,
Paulo Ney

%-------------------------------------------------------------
\documentclass{article}

% \usepackage[brazil]{babel}

\usepackage{polyglossia}
\setmainlanguage{brazil}

\usepackage{cleveref}

\begin{document}
This is a test.
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20181127/d69a2d6a/attachment.html>


More information about the texhax mailing list