-
Notifications
You must be signed in to change notification settings - Fork 391
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
IEEEeqnarray
not recognized as math environment
#2675
Comments
|
Hi Lervag, Thanks for the quick response, and apologies for the vagueness of my issue yesterday. I've made it more precise now. A minimum non-working example is: \documentclass{ieeeconf}
\begin{document}
\begin{IEEEeqnarray*}{rCl}
\int_{-\infty}^\infty u(t)^2 dt < \infty.
\end{IEEEeqnarray*}
\end{document} A minimum fix is: \documentclass{article}
\usepackage{IEEEtrantools}
\begin{document}
\begin{IEEEeqnarray*}{rCl}
\int_{-\infty}^\infty u(t)^2 u(t) dt < \infty.
\end{IEEEeqnarray*}
\end{document} Adding
|
No problem!
I think it should work as expected after you've compiled this document. Can you check that? The problem here is that the syntax rules are applied only when VimTeX recognizes the package. If there is no If I'm right: I may consider to make an update where |
I'm afraid it doesn't work: I tried compiling both from vimtex and using pdflatex in the terminal, no luck...
Which source file(s) would I have to patch to get something like this to work? Edit: in the meantime, is there a method to manually add |
Yes: You can do this: let g:vimtex_syntax_packages = {
\ 'ieeetrantools': {'load': 2},
\} |
I'm trying to reproduce. Is this the source of the template you are using? |
I'm using the template provided here by the IEEE Control Systems Society: https://css.paperplaza.net/conferences/support/files/ieeeconf.cls |
It's interesting to note that this template is not part of common texlive distributions, whereas I believe I've pushed a fix for this now. Please update and test. |
Wonderful! It's working well now. This is surely some ancient template that should be abandoned, but I expect it would involve some committee approval or something, so much less work to just keep using the old template! |
Great, glad to hear it. And yes, I would also not be surprised if this is "old cruft", but adding the support was trivial and doesn't really hurt anything, so I think it was OK to add it. |
IEEEeqnarray
is not being recongnized as a math environment by vimtex.Previously, I manually added
IEEEeqnarray
as a math environment. Originally, this was done by placing the commandcall TexNewMathZone("M", "IEEEeqnarray", 1)
in a file in~/.vim/after/syntax/tex/
. After some updates, the method changed tocall vimtex#syntax#core#new_region_math('IEEEeqnarray')
in.vimrc
. This is no longer working.I see that support for
IEEEtrantools
should now be standard, as per this feature request: #1796. I've updated to the latest versions of vim and vimtex for OS X, but still have the problem.The text was updated successfully, but these errors were encountered: