In my previous question I ended up with
But now I'm using the
fontspec package which redefines
\AtBeginDocument itself. So as my own definition comes before
fontspec is loaded, even putting it in
\AtBeginDocument won't help.
Is there a way to say “Execute this after
fontspec has loaded!” or “Execute this at the very end of