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

language selection via \documentclass[german]{article} and similar #295

Open
Reissner opened this issue Jan 24, 2024 · 0 comments
Open

language selection via \documentclass[german]{article} and similar #295

Reissner opened this issue Jan 24, 2024 · 0 comments
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature

Comments

@Reissner
Copy link

Is your feature request related to a problem? Please describe.
The way ltex prefers to set the language for latex is to define it as a babel option.
There is also a way to do with \selectlanguage or that like, but this is more with multi-language documents.
For single language documents where \selectlanguage is not natural.
Documentation of babel itself suggests to specify language via \documentclass
as described in the headline because that way, language like german is set for related packages simultaneously.
In my special case, I have a header file which shall be uniform and so I load babel without language option to keep generality.
But exactly the form \documentclass[german]{article} preferred by babel is not recognized by ltex.

My workaround is to specify \selectlanguage{german} in addition to \documentclass[german]{article},
which is against single source principle and may introduce inconsistencies.

Describe the solution you'd like
I would like ltex to recognize language options in \documentclass and switch language accordingly.
For details see the documentation of babel.

Describe alternatives you've considered
There is not much alternative.
Maybe an addition: \PassOptionsToPackage{german}{babel} which preceeds \documentclass should work as well.

Additional context
I think no further context is needed.

@Reissner Reissner added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature
Projects
None yet
Development

No branches or pull requests

1 participant