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

Support additional LaTeX commands and environments in ltex-ls #285

Open
m-haug opened this issue Nov 16, 2023 · 0 comments
Open

Support additional LaTeX commands and environments in ltex-ls #285

m-haug opened this issue Nov 16, 2023 · 0 comments
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature

Comments

@m-haug
Copy link

m-haug commented Nov 16, 2023

Is your feature request related to a problem? Please describe.

I'm using ltex-ls with LaTeX and the csquotes package in a German document.
When using the csquotes command \foreignquote to insert quoted text in a foreign language, i.e., \foreignquote{british}{Some English text here}, I get diagnostics from ltex-ls in the English text.
The diagnostic messages indicate that ltex-ls does not recognize the language change and is still applying the German ruleset.

Describe the solution you'd like

I would like ltex-ls to recognize the language changing commands and environments in the csquotes package.

Describe alternatives you've considered

I recognize that it may not be feasible for ltex-ls to support individual packages.
As an alternative, I think my use case, and similar use cases, would be fulfilled by configuration options to add additional language changing commands and environments to ltex-ls.
These could work by specifying a command and either a hardcoded or dynamic language to switch to inside a text argument.

For now, I'm working around the issue by using the roughly equivalent command sequence \foreignlanguage{british}{\enquote{Some English text here}}.
However, the nested commands are not as nice as using a single command to do both things.

@m-haug m-haug added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Nov 16, 2023
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