obsidian-latex-suite

Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements

MIT License

Stars
1.3K
Committers
18

Bot releases are visible (Hide)

obsidian-latex-suite - 1.9.5

Published by github-actions[bot] about 2 months ago

  • Improved handling of tabstops, thanks to #306 by @bdm-k.
  • Improved performance of Latex Suite in large files by ~10X, thanks to #323 by @shunby.
obsidian-latex-suite - 1.9.4 Latest Release

Published by github-actions[bot] 4 months ago

  • When backspacing inside empty inline math ($|$), the closing $ symbol will be automatically deleted as well. (#266 by @bdm-k)
obsidian-latex-suite - 1.9.3

Published by github-actions[bot] 6 months ago

  • The math popup preview no longer blocks LaTeX source code for long inline math equations when its position is set to "Below". (#288 by @bdm-k)
  • When an IME is active, snippets are now disabled by default. (#286 by @RyotaUshio)
obsidian-latex-suite - 1.9.2

Published by github-actions[bot] 6 months ago

  • Improved the default snippets.
    • Reorganised snippets into categories and added more comments.
    • Added shortcut " -> \text{}.
    • Added shortcut \sumTab -> \sum_{i=1}^{N}.
    • Added snippets under "Misc" section that enable you to automatically convert lone letters or Greek letters in text to math.
    • Made some snippets less aggressive.
  • You can now choose to load snippet variables from files, as well as snippets from files. (#280 by @itay-raveh)
  • The "highlight matching bracket" highlight is now more visible.
  • Updated the appearance of snippet placeholders.
obsidian-latex-suite - 1.9.1

Published by github-actions[bot] 8 months ago

  • The math popup preview can now be positioned below instead of above your equation source, so it doesn't obscure text above your equation (#257 by @bdm-k)
  • Added lVert and rVert default snippets, auto-enlarge and conceal (#253 by @Comprehensive-Jason)
  • Snippets can now have more than 9 tabstop placeholders (#256 by @git-wil)
  • Default snippets: Added overbrace shortcut (#249 by @you-n-g)
  • Default snippets: Matrix environment snippets (e.g. pmatrix) now take into account block/inline math
obsidian-latex-suite - 1.9.0

Published by github-actions[bot] 9 months ago

Function snippets

You can now run JavaScript code in snippets! To do this, make your replacement a function. For example, the snippet

{trigger: "date", replacement: () => (new Date().toDateString()), options: "t"},

will expand "dateTab" to the current date, such as "Mon Jan 15 2023".

Function snippets work with regex and visual snippets as well.

For regex snippets, Latex Suite will pass in the RegExpExecArray returned by the matching regular expression to your replacement function. This lets you access the value of capture groups inside your function. For example, the regex snippet

{trigger: /iden(\d)/, replacement: (match) => {
    const n = match[1];

    let arr = [];
    for (let j = 0; j < n; j++) {
        arr[j] = [];
        for (let i = 0; i < n; i++) {
            arr[j][i] = (i === j) ? 1 : 0;
        }
    }

    let output = arr.map(el => el.join(" & ")).join(" \\\\\n");
    output = `\\begin{pmatrix}\n${output}\n\\end{pmatrix}`;
    return output;
}, options: "mA"},

will expand "iden4" to a 4×4 identity matrix:

\begin{pmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1
\end{pmatrix}

. More generally, it will expand "idenN" to an N×N identity matrix.

For more information on function snippets, see the docs here. (Closes #16, thanks to #241 by @duanwilliam)

Other minor improvements

  • Added new identity matrix default snippet
  • Fixed/improved snippet placeholder mark decorations appearing when not necessary
obsidian-latex-suite - 1.8.10

Published by github-actions[bot] 11 months ago

  • Auto-enlarge lfloor, rfloor, lceil, rceil (#226 by @m4rch3n1ng)
  • Added default snippets for floor and ceil (#227 by @m4rch3n1ng)
obsidian-latex-suite - 1.8.9

Published by github-actions[bot] 12 months ago

  • Fixed Latex Suite causing cards to be blurry in canvases. (#187)
  • Fixed auto-fraction removing parentheses in (a)(b)/ when it shouldn't. (#206, #220 by @duanwilliam)
obsidian-latex-suite - 1.8.8

Published by github-actions[bot] 12 months ago

  • You can now use Regular Expression literals in snippet triggers! e.g. The regex snippet

    {trigger: "([A-Za-z])(\\d)", replacement: "[[0]]_{[[1]]}", options: "rA"}
    

    will expand x2 to x_{2}.
    The same snippet can now be written using a RegExp literal as

    {trigger: /([A-Za-z])(\d)/, replacement: "[[0]]_{[[1]]}", options: "A"}
    

    .

  • You can now set regex flags in a snippet using the flag property on a snippet, e.g.

    { trigger: "foo", replacement: "bar", options: "rA", flags: "i" },
    

    will replace "foo", "FOO", and "fOo" with "bar".

  • For power users: you can now treat snippet files as javascript modules, with the snippets array being the default export (#219 by @duanwilliam). For example,

    const SHORT_SYMBOL = "to|pm|mp"
    export default [
      { trigger: `([^\\\\])(${SHORT_SYMBOL})`, replacement: "[[0]]\\[[1]]", options: "rmA" },
    ]
    

    is now a valid snippet file. See #219 for more information.

  • Improved setting description for snippet file location.

obsidian-latex-suite - 1.8.7

Published by github-actions[bot] 12 months ago

  • Fixed being unable to install and enable the plugin
obsidian-latex-suite - 1.8.6

Published by github-actions[bot] 12 months ago

  • Conceal \set, improve concealing of operators (#216, #217 by @duanwilliam)
  • Fixed math popup preview sometimes appearing when it shouldn't (#208)
  • \begin{} and \end{} are now treated as text environments (#157)
  • Made the snippet variable text editor larger
obsidian-latex-suite - 1.8.5

Published by github-actions[bot] 12 months ago

  • You can now edit snippet variables such as ${GREEK} and ${SYMBOL} in the plugin settings (#181 by @Benjymack)
  • Added \bigcup, \bigcap, \forall to ${SYMBOLS}
  • Added icons to section headings in settings
obsidian-latex-suite - 1.8.4

Published by github-actions[bot] about 1 year ago

  • Fixed cursor sometimes moving wrongly when using arrow keys (#203, #204)
obsidian-latex-suite - 1.8.3

Published by github-actions[bot] about 1 year ago

  • Fixed: Empty inline equations causing the app to hang
obsidian-latex-suite - 1.8.2

Published by github-actions[bot] about 1 year ago

  • Fixed: Plugin not working wtih equations in blockquotes and lists (#192, #193)
obsidian-latex-suite - 1.8.1

Published by github-actions[bot] about 1 year ago

  • Fixed: Loading snippets from file or folder not working in new files.
obsidian-latex-suite - 1.8.0

Published by github-actions[bot] about 1 year ago

  • Added new snippet options: (#146 by @MultisampledNight)
    • n for inline math
    • M for block math
    • c for codeblocks
  • You can now treat math codeblocks as regular equations
obsidian-latex-suite - 1.7.4

Published by github-actions[bot] about 1 year ago

  • Added setting to change autofraction symbol (e.g. \frac, \dfrac, \tfrac) by @adamhl8 (#167)
obsidian-latex-suite - 1.7.3

Published by github-actions[bot] over 1 year ago

  • Popup preview window for block math in Source mode (#138 by @StrangeGirlMurph)
  • Small conceal bug fixes (#152)
obsidian-latex-suite - 1.7.2

Published by github-actions[bot] over 1 year ago

  • Conceal: Made selecting LaTeX source easier by concealing LaTeX source until the mouse is up.