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

(Wrong) suggestion to gather equations across different \items #3321

Closed
Lichtschalter-5000 opened this issue Nov 18, 2023 · 1 comment · Fixed by #3386
Closed

(Wrong) suggestion to gather equations across different \items #3321

Lichtschalter-5000 opened this issue Nov 18, 2023 · 1 comment · Fixed by #3386
Labels
bug Deficiencies in TeXiFy behaviour. more-info-needed More information is needed from the person filing the issue.

Comments

@Lichtschalter-5000
Copy link

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA Ultimate 2023.2.5

Operating System

Win 10 Pro

TeXiFy IDEA version

0.9.1

Minimal example to reproduce the problem

\documentclass{article}
\begin{document}
    \begin{enumerate}
        \item{\[a=b\]}
        \item{\[b=a\]}
    \end{enumerate} 
\end{document}

Actual behavior

The code will be highlighted with the issue "The equations can be gathered." No, they can't, because they are across different items.

Workaround: use $\displaystyle a=b$ instead of \[a=b\]

@Lichtschalter-5000 Lichtschalter-5000 added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Nov 18, 2023
@PHPirates
Copy link
Collaborator

Thanks for reporting this, but can you provide an example which is more realistic? I think your example is the same as this, which is what I would write, and which doesn't raise a warning:

\documentclass{article}
\begin{document}
    \begin{enumerate}
        \item \[a=b\]
        \item \[b=a\]
    \end{enumerate}
\end{document}

The only reason I can think of for using a group is like this, also no warning:

\documentclass{article}
\begin{document}
    \begin{enumerate}
        \item {\Large \[a=b\]}
        \item \[b=a\]
    \end{enumerate}
\end{document}

@PHPirates PHPirates added more-info-needed More information is needed from the person filing the issue. and removed untriaged Issue type still needs to be triaged or verified. labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour. more-info-needed More information is needed from the person filing the issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants