Changelog
0.89.0 2023-02-12
a(b)^2
was invalid.Changelog
0.87.1 2023-01-26
\operatorname{}
and \mathrm{}
/
after f(x)
will now consider f(x)
as the numerator,
instead of (x)
makeSharedVirtualKeyboard()
was incorrectly
specified as a private type.control
or command
key would
not reset the inline keystroke buffer. As a result, typing s
+ i
+
ctrl
-6
+ n
would yield \sin
instead of \si^n
.textarea
element. Only
dispatch an "input"
event with an inputType
of "insertLineBreak"
when
the user pressed the RETURN or ENTER key. Also dispatch a focusin
and focusout
event when applicable.Changelog
0.87.0 2023-01-20
jsdom
for server-side rendering.rollup
to esbuild
\smallint
command was erroneously displayed as an extensible
symbolChangelog
0.86.1 2023-01-18
renderMathInElement()
to no longer be rendered
correctly (the necessary stylesheet was erroneously removed).\enclose
command could not be displayed in
some cases if the z-index
of the expression they decorated had certain
values.Changelog
0.86.0 2022-12-02
import 'https://unpkg.com/@cortex-js/compute-engine@latest/dist/compute-engine.min.esm.js';
or
import { ComputeEngine } from 'https://unpkg.com/@cortex-js/compute-engine@latest/dist/compute-engine.min.esm.js';
to create custom Compute Engine instances, which can then be associated with a
mathfield using mf.setOptions({computeEngine: ce})
or mf.computeEngine = ce
.
If the Compute Engine library is not loaded, some functionality of the mathfield
will not be available: mf.expression
will always return null
and cannot be
used to change the content of the mathfield, and math-json
is not available as
a format on the clipboard,
\left...\right
command was
incorrect."placeholder-change"
event was not dispatched.Changelog
0.85.0 2022-11-15
\mathtip{math}{tip}
and \texttip{math}{tip}
commands.
These commands are also supported by MathJax.options.enablePopover
option which can be set to false
to prevent
the auto-complete popover from being displayed.\error{}
command which displays its content with a red underline.mf.computeEngine = ce
. If none is provided, a default Compute Engine
instance is created when necessary. Setting the property to null
will
prevent the Compute Engine from being used, but the MathJSON format will not
be available.Audio
element, but browsers have limitations to the number
of Audio
elements which can be instantiated in a page at a time, and this
limit is reached surprisingly quickly wiht multiple mathfields on a page.window.mathlive
global is now globalThis[Symbol.for("mathlive")]
. This
is mostly used internally for coordination between mathfields in the same
context but it also includes the version
property which may be of use for
debugging or to report issues.<math-field>
did not inherit the options from their parent container.Changelog
0.84.0 2022-10-19
renderMathInElement
or renderMathInDocument
to render math
content, the math content can now be provided as MathJSON in addition to LaTeX
by using a <script>
tag with a type of math/json
.<script type="math/json">
["Cos", ["Divide", "Pi", 7]]
</script>
MathfieldElement
now has a setter for expression
, which allows to set
the value of a mathfield to a MathJSON expression.null
as a value for fontsDirectory
and soundDirectory
to prevent
any attempt to resolve these values.Changelog
0.83.0 2022-10-02
When navigating with the keyboard from a numerator to a denominator (or any above/below branch), determine the new position of the caret visually, rather than by its index in the subexpression. Contributed by @manstie
Commands and key bindings to manipulate array/matrix:
| Key Binding | Command |
| :--------------------------------------------------------------------- | :---------------- |
| <kbd>ctrl/⌘</kbd>+<kbd>;</kbd><br/><kbd>ctrl/⌘</kbd>+<kbd>RETURN</kbd> | addRowAfter
|
| <kbd>ctrl/⌘</kbd>+<kbd>shift</kbd>+<kbd>;</kbd> | addRowBefore
|
| <kbd>ctrl/⌘</kbd>+<kbd>,</kbd> | addColumnAfter
|
| <kbd>ctrl/⌘</kbd>+<kbd>shift</kbd>+<kbd>,</kbd> | addColumnBefore
|
| <kbd>ctrl/⌘</kbd>+<kbd>BACKSPACE</kbd> | removeRow
|
| <kbd>shift</kbd>+<kbd>BACKSPACE</kbd> | removeColumn
|
Contributed by @manstie
Updated to Compute Engine 0.8
matrix
, aligned
, etc)
would not be displayed.