-
-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description of the Problem
When I try to use the modular operation with "\bmod", it is converted into "\b||" instead. It seems that the absolute value snippet was mistakenly assigned to the "mod" trigger.
Description of the Solution
I suggest correcting the trigger for absolute value to "abs" and adding a proper snippet for "mod".
The relevant code is located at
obsidian-latex-suite/src/default_snippets.js
, line 257:
{trigger: "mod", replacement: "|$0|$1", options: "mA"},
I propose changing it to:
{trigger: "mod", replacement: "$0 \\bmod $1", options: "mA"},
{trigger: "abs", replacement: "|$0|$1", options: "mA"},
This would clarify the triggers and make the snippets more intuitive for both modular arithmetic and absolute value.
Additional
...
quocjq and Sondeyy
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request