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

Can't input \supset #244

Open
zzhixin opened this issue Jan 8, 2024 · 3 comments
Open

Can't input \supset #244

zzhixin opened this issue Jan 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@zzhixin
Copy link

zzhixin commented Jan 8, 2024

obsvimissue

My snippet is default.

I can't input \supset. How can I modify the snippets to enable inputing it.

By the way, considering input subset bring about \subset, it seems there should be a snippet of subset in place of \\subset but I can't find it. It is confusing.

@zzhixin zzhixin added the bug Something isn't working label Jan 8, 2024
@PhysicsInformedNoodle
Copy link

This is not a bug, but go to your snippet file (for example through settings).

Here you can remove the line: {trigger: "set", replacement: "\\{ $0 \\}$1", options: "mA"},, which will prevent the string set from triggering anything.

By the way, considering input subset bring about \subset, it seems there should be a snippet of subset in place of \subset but I can't find it. It is confusing.

I'm not entirely sure about what you mean, and I'm not sure my tip will work, but I think you can do this: Go to Settings>LatexSuite>AdvancedSnippetSettings>SnippetVariables. Do you see |subset| somewhere in there? If you replace that |subset| with |subset|supset|, then I think it should work. The strings subset and supset behave differently because subset is part of a snippet variable, but supset is not. This change ensures they're both part of that snippet variable.

I hope it still helps.

@zzhixin
Copy link
Author

zzhixin commented Jan 31, 2024

Thanks

This is not a bug, but go to your snippet file (for example through settings).

Here you can remove the line: {trigger: "set", replacement: "\\{ $0 \\}$1", options: "mA"},, which will prevent the string set from triggering anything.

By the way, considering input subset bring about \subset, it seems there should be a snippet of subset in place of \subset but I can't find it. It is confusing.

I'm not entirely sure about what you mean, and I'm not sure my tip will work, but I think you can do this: Go to Settings>LatexSuite>AdvancedSnippetSettings>SnippetVariables. Do you see |subset| somewhere in there? If you replace that |subset| with |subset|supset|, then I think it should work. The strings subset and supset behave differently because subset is part of a snippet variable, but supset is not. This change ensures they're both part of that snippet variable.

I hope it still helps.

Thanks, your advice works. Just replace that |subset| with |subset|supset|.

@Levon99
Copy link

Levon99 commented Mar 10, 2024

The same problem is with \times, interfering with "im" snippet. Solution to this problem is detecting whether user has typed backslash and characters without space or not and then applying the snippet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants