V0.3.1
- Adds the built in
total variable which accumulates on groups of lines
In this example you can see that the total variable takes on the value of the sum of all the preceding lines.
A new syntax is also added which will allow users to explicitly signal that a line is meant to add to (or remove from the total variable
+= 2+2 // Will add 4 to the total variable
-= 2+4 // remove 6 from the total variable
total => -2
The total variable is reset to zero if there is a line break between math lines, or if a new block is started.
I've also started adding examples to the github page. If anyone using this plugin has a good example, please send it my way and I'll add it! (With credit of course)
The update is available now on the Joplin plugin repository!
1 Like