smartparens
smartparens copied to clipboard
Mismatch of the `$` pair in LaTeX math mode
Hi,
I have this simple LaTeX code and see that when putting the cursor at the last $ sign (of b), that $ is matched with the first $ (of a).
$a$ \texttt{$b$}
Hence when I do actions like sp-splice-sexp, smartparens removes the first and the last $ sign to obtain a$ \texttt{$b}, which is unexpected.
Could you advise how can I make it work properly in this case?
Expected behavior
The last two $ signs should be matched
Environment & version information
The content of the buffer underneath the line was copied to your clipboard. You can also edit it in this buffer and then copy the results manually.
smartparensversion: 20201229.1937- Active
major-mode:latex-mode - Smartparens strict mode: nil
- Emacs version (
M-x emacs-version): GNU Emacs 27.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2020-10-22 - Starterkit/Distribution: Spacemacs
- OS: gnu/linux