Skip to content

Releases: gtg922r/obsidian-numerals

1.4.1

02 Mar 09:57
Compare
Choose a tag to compare
1.4.1 Pre-release
Pre-release

🧪 Beta Release 1.4.1 🧪 (Bug fix only)

  • Fixes bug with result insertion. Result insertion can now be used on the same line as initial assignment to a variable:
a = 1
b = 2
@[result] = a + b

Once rendered, will become:

a = 1
b = 2
@[result::3] = a + b

1.4.0

01 Mar 18:37
Compare
Choose a tag to compare
1.4.0 Pre-release
Pre-release

🧪 Beta Release 1.4 🧪

Support for frequently requested features!

  • "Sum" (or "Total") feature
  • Page "Globals" (i.e. shared variables)
  • Result Insertion: Calculation result added to note source using dataview syntax

🚧 Note to Beta Testers: Supporting sums/totals requires some additional pre-processing by Numerals. "Globals" is dependent on when blocks get rendered. Please report any bugs you see as I may have missed some corner cases! 🚧

Numerals 1.4 (Beta) includes support for one of the most commonly requested features: The ability to quickly sum previous lines. Numerals now offers a magic variable @sum or @total, which will always be populated with the sum of all previous lines up to a blank line or header/comment. As a magic variable it can be used in equations, conversions, or assignment to other variables.

Numerals 1 4 Beta Screenshot Sum-Total

Numerals 1.4 (Beta) includes support for "globals" - variable values that keep their value across code blocks. This should be considered experimental - please report any issues! In a code block, create a new variable prefixed with a $. That variable will be available in later math codeblocks.

Warning: Numerals can't ensure a consistent ordering of math block evaluation. If you assigned a value to a global in multiple code blocks you may get unexpected results. Its best to only assign the value in one place.

Numerals 1 4 Beta Screenshot - Globals

Numerals 1.4 (Beta) has 🚨 experimental 🚨 support for "result insertion". Wrapping a variable name in @[...] (e.g. @[result]), will tell Numerals to insert the value of the variable into the source of the note itself using dataview notation (e.g. variable::value). This allows you to ensure calculation results are saved to the source of the note (in case you ever use outside of Obsidian), as well as setting dataview values using Numerals.

Numerals 1 4 Beta Screenshot - Result Insertion

Numerals 1.4 (Beta) also adds a convenience feature for autocomplete of greek characters, by typing : in a math block and then starting to type the name of the character. Greek characters are fully supported by Numerals' math engine, so you can name your variables using math characters. This includes in -tex mode, where subscript support is also included, and ω_n will render as $ω_n$
Numerals 1 4 Beta Screenshot Greek
Note: this feature can be disabled in settings if it conflicts with any autocomplete tools you already have

1.3.1

14 Sep 09:36
Compare
Choose a tag to compare
1.3.1 Pre-release
Pre-release

Beta Release

  • Fixes annoying math-tex rendering bug for some users (#60, #57, #45)

1.3.0

03 Sep 06:55
Compare
Choose a tag to compare
1.3.0 Pre-release
Pre-release

🧪 Beta Release 1.3

  • Access frontmatter or dataview inline variables inside code blocks
  • Math code block auto-update after metadata or settings change
  • Render subscripts in TeX mode

1.2.1

13 Mar 14:25
Compare
Choose a tag to compare
1.2.1 Pre-release
Pre-release

Beta release

  • Switch font colors to be based on --code- variants. Should allow for better consistency with themes
  • Please open an issue if this negatively affects any styling

1.2.0

12 Mar 08:00
Compare
Choose a tag to compare

🎉 Numerals 1.2

  • Adds auto-completion to all variables with an option to auto-complete on all functions and constants!
  • Adds user setting to specify rendered number formatting
  • Fixes bugs with comma decimal separators: #19, #23, #28
  • Fixes a bug causing issues on iOS

Auto-completion Suggestions

By default, Numerals will provide auto-completion suggestions for variables that have been defined in a particular math codeblock. Turning on Include Functions and Constants in Suggestions will also provide suggestions for all functions, math constants, and physical constants supported in Numerals.

Auto-completion of Functions

Formatting Options

  • System Formatted: Use your local system settings for number formatting
  • Fixed: No thousands separator and full precision
  • Exponential: Always use exponential notation.
  • Engineering: Exponential notation with exponent a multiple of 3.
  • Formatted: Forces a specific type of formatted notation.

    • Formatted: 100,000.1
    • Formatted: 100.000,1
    • Formatted: 100 000,1
    • Formatted: 1,00,000.1
  • Note: math-tex mode will always use period as decimal separator, regardless of locale.

1.0.10

12 Mar 07:29
Compare
Choose a tag to compare
1.0.10 Pre-release
Pre-release

Release Changes

  • Adds user setting to specify rendered number formatting
  • Fixes bugs with comma decimal separators: #19, #23, #28

Formatting Options

  • System Formatted: Use your local system settings for number formatting
  • Fixed: No thousands separator and full precision
  • Exponential: Always use exponential notation.
  • Engineering: Exponential notation with exponent a multiple of 3.
  • Formatted: Forces a specific type of formatted notation.

    • Formatted: 100,000.1
    • Formatted: 100.000,1
    • Formatted: 100 000,1
    • Formatted: 1,00,000.1

Note:  math-tex  mode will always use period as decimal separator, regardless of locale.

1.0.9

04 Feb 08:42
Compare
Choose a tag to compare
1.0.9 Pre-release
Pre-release

Rewrite result annotation regex which was crashing Numerals on iOS

1.0.8

19 Jan 15:58
Compare
Choose a tag to compare
1.0.8 Pre-release
Pre-release

Add support for auto-completion suggestions (#15)

1.0.7

10 Dec 08:06
Compare
Choose a tag to compare

Renamed "emitted" syntax to "Result Annotation"

Result Annotation:
=> at the end of a line (but before a comment) will tell Numerals that a result should be highlighted. Any line in that code block without a => annotation will be rendered faintly (or hidden depending on settings).