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

Manage symbols exceptions for auto-subscript #347

Closed
wants to merge 4 commits into from

Conversation

Captainbleu
Copy link

@Captainbleu Captainbleu commented Nov 10, 2024

close #346

@artisticat1
Copy link
Owner

Thank you for the PR!

@@ -50,6 +50,7 @@
{trigger: "ee", replacement: "e^{ $0 }$1", options: "mA"},
{trigger: "invs", replacement: "^{-1}", options: "mA"},
{trigger: /([A-Za-z])(\d)/, replacement: "[[0]]_{[[1]]}", options: "rmA", description: "Auto letter subscript", priority: -1},
{trigger: "\\\\(${MORE_SYMBOLS}|${SYMBOL})(.)", replacement: "\\[[0]] [[1]]", options: "rmA", description: "Manage symbols exceptions"},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to capture all characters here? Can we apply the fix only to numbers typed after a symbol?

Also, do we want make "log" an exception to the rule (i.e. continue to apply auto-subscript to it), so we can type e.g. log2 -> \log_{2}?

@Captainbleu Captainbleu marked this pull request as draft November 24, 2024 22:44
@Captainbleu Captainbleu closed this by deleting the head repository Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Insert space after some symbols
2 participants