Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fontspec cannot be loaded after babel any longer #312

Closed
ralessi opened this issue Nov 6, 2017 · 2 comments
Closed

fontspec cannot be loaded after babel any longer #312

ralessi opened this issue Nov 6, 2017 · 2 comments

Comments

@ralessi
Copy link

ralessi commented Nov 6, 2017

With the latest versions of both babel and fontspec, this mwe compiled with lualatex:

\documentclass{article}
\usepackage[english]{babel}

\usepackage{fontspec}

\begin{document}
Hello world.
\end{document}

gives me this error:

ERROR: LaTeX error: "kernel/command-already-defined"

--- TeX said ---
! 
! Control sequence \latinencoding already defined.
! 
! See the LaTeX3 documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.121 \tl_new:N \latinencoding

pointing to l. 121 of fontspec-luatex.sty

If fontspec is loaded before babel, the mwe compiles. Are we now supposed to mind the load order of the two packages?

@wspr
Copy link
Collaborator

wspr commented Nov 6, 2017 via email

@ralessi
Copy link
Author

ralessi commented Nov 6, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants