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 math environment empheq from package empheq #2643

Closed
kiryph opened this issue Feb 23, 2023 · 2 comments
Closed

Add math environment empheq from package empheq #2643

kiryph opened this issue Feb 23, 2023 · 2 comments

Comments

@kiryph
Copy link
Contributor

kiryph commented Feb 23, 2023

Currently, the environment empheq is not considered a math environment:

\begin{empheq}{align*}
a&=b \tag{*}\\
E&=mc^2 + \int_a^a x\, dx
\end{empheq}

The package is hosted on github in the repository https://github.com/latex3/mathtools

Affected parts of vimtex are concealment, the options

  • g:vimtex_syntax_custom_cmds with the parameter mathmode
  • g:vimtex_syntax_custom_cmds_with_concealed_delims with the parameter mathmode

and the helper function

@kiryph
Copy link
Contributor Author

kiryph commented Feb 23, 2023

I have added myself:

❯ cat autoload/vimtex/syntax/p/empheq.vim
" VimTeX - LaTeX plugin for Vim
"
" Maintainer: Karl Yngve Lervåg
" Email:      karl.yngve@gmail.com
"

scriptencoding utf-8

function! vimtex#syntax#p#empheq#load(cfg) abort " {{{1
  call vimtex#syntax#core#new_region_math('empheq')
endfunction

@lervag
Copy link
Owner

lervag commented Feb 24, 2023

I see no reason to not just add this...

lervag added a commit that referenced this issue Feb 24, 2023
@lervag lervag closed this as completed Feb 24, 2023
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