Closed pablgonz closed 3 years ago
hyphenrules is an environment and in the case of polyglossia the end code is highly relevant as polyglossia writes \bgroup
and \egroup
commands to toc/lof/lot (this will perhaps change again: https://github.com/reutenauer/polyglossia/issues/505). So lipsum shouldn't use \hyphenrules
as command.
@u-fischer Oh, that's it. Thanks!
It's a tricky spot, because an environment will add \begingroup
..\endgroup
and we'll be back to #1, but \hyphenrules
..\endhyphenrules
doesn't work either because it relies on the grouping to restore the previous language. polyglossia is not making life easier...
With babel
I can just do \hyphenrules
again with the old language and be good to go...
I wonder how evil would it be if I just override \xpg@set@group@aux
and \xpg@set@group@aux
before doing \hyphenrules
... That'd prevent the \bgroup
being written: that grouping doesn't seem to be useful for \lipsum
...
Hi, this file compiles without problems using
XeLaTeX
orLuaLaTeX
:but when adding the lipsum package (no matter the order):
you get:
As a note, if the
\lipsum
macro is commented the file compiles without errors.