Yasnippet & aas & laas can't expand in org's inline Latex and texmathp return t
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [x] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [x] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [x] The issue can be reproduced on the **latest** available commit of Doom.
- [x] The issue can be reproduced on a stable release of Emacs, such as 27, 28, 29, or 30. *(Unstable versions end in .50, .60, or .9x)*
### Expected behavior
# press '//' in '$$' it should expand to frac{$1}{$2}$0
### Current behavior
# the cursor jump to the next line and didn't expand even I set the condition as 'auto
# What did I tried
- change the condition in yasnippet '(texmathp)' '(and '(texmathp) 'auto ' ''auto'
- M-:(texmathp) in $$ return t
- M-x yas-expand but not expand
- add a function in config.el to output the message in every step it output message but actually not expand
- try to install the aas and yaas, it expand normally in text but still not expand in inline latex and texmathp return t too
- reinstall the AUCTeX, yasnippet package
- report all the issues to claude but didn't fixed
### Steps to reproduce
1.Open Emacs
2.add below code to yasnippet
```
# -*- mode: snippet -*-
# name: frac
# key://
# condition: (texmathp)
# --
frac{$1}{$2}$0
```
3.press '//' in $$
I'd appreciate that if someone could help me
Thx for ur help!:)
### System Information
https://pastebin.com/n97iDv18
Contributor guide
Assessment
This issue has not been assessed yet.