obsidian-latex-suite icon indicating copy to clipboard operation
obsidian-latex-suite copied to clipboard

Add snippet options for inline and block math

Open fenjalien opened this issue 1 year ago • 1 comments

I want a way to change how a snippet behaves depending on if its triggered in an inline math block ($$) or a normal math block ($$$$). A notable usage would in snippets for fractions. When in a normal math block I want the frac function to be used, however when in an inline math block I want the flatfrac function to be used. I would guess that this can be achieved by adding a new option symbol, something like i or M.

btw I've come from the quick latex plugin and I'm blown away by how well this works, great work :)

fenjalien avatar Sep 26 '22 15:09 fenjalien

Hello, glad you're liking the plugin :)

Sounds good, I can add two new snippet options for inline and block math.

artisticat1 avatar Sep 27 '22 10:09 artisticat1