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

Add syntax highlighting for LuaLaTeX-CAS #3050

Closed
ArtemChandragupta opened this issue Dec 5, 2024 · 6 comments
Closed

Add syntax highlighting for LuaLaTeX-CAS #3050

ArtemChandragupta opened this issue Dec 5, 2024 · 6 comments

Comments

@ArtemChandragupta
Copy link

There is a really good thing for small calculations inside $\LaTeX$ documents, LuaLaTeX-CAS. I would really like to see the environment that this computer algebra package adds supported by VimTeX.

image

@lervag
Copy link
Owner

lervag commented Dec 7, 2024

There is a really good thing for small calculations inside L A T E X documents, LuaLaTeX-CAS. I would really like to see the environment that this computer algebra package adds supported by VimTeX.

Ok, I might add it. But I would like some help:

  1. Can you provide a short example document for this (please provide it inline instead of a screenshot - use the triple backquotes, e.g. ```tex ... ```).

  2. If you were to edit a LuaCAS file directly, which syntax does it use? Does Neovim support it out of the box? If not, then I can't add it.

@ArtemChandragupta
Copy link
Author

This is the documentation with a lot of examples of Luacas code, that can be copied from pdf-file; My own example from screenshot is also from this file.

About syntax, seems that it is custom and do not have any highlights now. Also in the pdf it is not highlighted. So I think the good way is just make the code inside \begin{CAS}...\end{CAS} unhighlighted so that VimTeX doesn't complain about it.

@lervag
Copy link
Owner

lervag commented Dec 8, 2024

This is the documentation with a lot of examples of Luacas code, that can be copied from pdf-file; My own example from screenshot is also from this file.

Ok, thanks. I can use the docs, but notice that if you were to copy the relevant examples here it would save me some time looking up and reading the docs for this. 🤷

About syntax, seems that it is custom and do not have any highlights now. Also in the pdf it is not highlighted. So I think the good way is just make the code inside \begin{CAS}...\end{CAS} unhighlighted so that VimTeX doesn't complain about it.

Ok, great; then I'll add it as a normal verbatim-like environment.

lervag added a commit that referenced this issue Dec 8, 2024
@lervag
Copy link
Owner

lervag commented Dec 8, 2024

Please update and test; I didn't read the docs. I've added support for the CAS environment, but nothing else right now.

@lervag lervag closed this as completed Dec 8, 2024
@ArtemChandragupta
Copy link
Author

Update was delivered for me.

The environment works well. Thank you for brilliant plugin!

@lervag
Copy link
Owner

lervag commented Dec 13, 2024

Glad to hear it works and thanks for the kind words!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants