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

"gather" environment not recognized #229

Open
iXeRay opened this issue Jul 18, 2023 · 1 comment
Open

"gather" environment not recognized #229

iXeRay opened this issue Jul 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@iXeRay
Copy link

iXeRay commented Jul 18, 2023

Hi,

I have started using textidote recently and I came across what looks like an unwanted behavior.
The "gather" environment doesn't seem to be recognized contrary to "align" or "equation" for instance.

As a result, the \begin{gather} line is flaged as a spelling mistake, and multiple warnings are raised inside the environment.

@sylvainhalle
Copy link
Owner

sylvainhalle commented Jul 18, 2023

That's right, gather should be added to the environment names on these lines:

if (line.matches(".*\\\\begin\\s*\\{\\s*(align|displaymath|equation|table|tabular|verbatim|lstlisting|IEEEkeywords|figure|wrapfigure|eqnarray).*") || line.matches(".*\\\\\\[[^\\]]*"))

if (line.matches(".*\\\\end\\s*\\{\\s*(align|equation|table|tabular|verbatim|lstlisting|IEEEkeywords|figure|wrapfigure|eqnarray).*") || line.matches(".*\\\\\\].*"))

@sylvainhalle sylvainhalle added the enhancement New feature or request label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants