-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Process Babel main
option
#391
Comments
main
option is ignoredmain
option
Implemented. Note that using
|
I personally don't agree with then discouragement, but in any case, the last example is actually what I have right now, so my actual workaround was closer to
Thank you very much! |
Feature released in 12.0.0. |
Is your feature request related to a problem? Please describe.
While parsing Babel package options, LTeX ignores the
main
option and instead only uses the order of the language options to select the main document language. For example, a document withis checked as
en-US
, despite the main language for Babel being set tode-DE
(ngerman
).Describe the solution you'd like
LTeX parses and recognizes the
main
option and uses it - instead of language order - to select the main language if present.Describe alternatives you've considered
Option A:
The other option to specify a main language in Babel is to pass the main language last:
This method is parsed correctly by LTeX, however, this way of specifying the main language is less preferable and less beginner friendly, as it requires implicit knowledge of the meaning of the order of options in Babel. Furthermore, the use of a tool like LTeX should ideally not require writing ones LaTeX code differently.
Option B:
Another option may be to prioritize the
% LTeX: language=
magic comment over the document language set by parsing Babel language options.The text was updated successfully, but these errors were encountered: