[texhax] polyglossia vs. cleverref

Paulo Ney de Souza pauloney at gmail.com
Sat Dec 1 20:49:10 CET 2018


Ulrike,

Thanks! I was not aware you were not getting the correct language ...

Would you mind sharing why you prefer Babel?

Paulo Ney



On Sat, Dec 1, 2018 at 7:11 AM Ulrike Fischer <news3 at nililand.de> wrote:

> Am Tue, 27 Nov 2018 22:11:31 -0800 schrieb Paulo Ney de Souza:
>
> > 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}
>
> cleveref has an option "brazilian", but polyglossia sets the
> languagename to "brazil".
>
> > and they work fine with Babel.
>
> You don't get an error but not the correct language either. This
> here should work (and I would prefer the babel solution):
>
> \documentclass{article}
>
> %\usepackage[brazil]{babel}
>
> \usepackage{polyglossia}
> \setmainlanguage{brazil}
>
> \usepackage[brazilian]{cleveref}
>
>
> \begin{document}
> \section{abc}\label{section}
> This is a test. \cref{section}
> \end{document}
>
>
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20181201/853e0a7d/attachment.html>


More information about the texhax mailing list