mathlive
Advanced tools
Changelog
0.97.4 2023-11-29
.row
class was defined, it would be applied to the virtual
keyboard rows, resulting in incorrect layout.mf.queryStyle()
method to query the style of a selection or the
current style if no selection.Changelog
0.97.3 2023-11-28
The mode-change
event is now dispatched more consistently when the mode
changes.
When the mathfield loses focus, if some of the content is in LaTeX mode, it remains in LaTeX mode. Previously, it would switch to math mode when losing focus.
Changing the user-select
CSS property before inserting the mathfield in the
DOM would not always be respected.
Use the DOM Popover API when available, which should ensure menus are displayed on top of other elements more consistently.
Added support for accented characters in the virtual keyboard (press and hold a vowel on an alphabetic keyboard to get accented variants), including a modified AZERTY layout (<kbd>SHIFT</kbd>+digits to get common accented characters).
Improved rendering of the menu for CJK and LTR languages.
If there were multiple mathfield elements on the page, only the last one would display tooltips.
#2184 Pressing the <kbd>TAB</kbd> key when in a prompt (fill-in-the-blank) would not move to the next prompt
#2183 The MathML serialization of factorial was incorrect.
#2181 The MathML serialization of limits was incorrect.
Changelog
0.97.2 2023-11-21
Changelog
0.97.1 2023-11-20
#2180 Allow the context menu to get turned off by setting
mf.menuItems = []
Fixed a layout issue with the positioning of the context menu in some cases.
Improved dark mode appearance of context menu
Changelog
0.97.0 2023-11-20
Context Menu Right-clicking on a mathfield or clicking the menu icon next to the virtual keyboard icon will bring up a context menu.
The keyboard shortcut <kbd>ALT</kbd>+<kbd>SPACE</kbd> will also bring up the context menu. This keyboard shortcut previously toggled the virtual keyboard. This keyboard shortcut to toggle the virtual keyboard is now <kbd>ALT</kbd>+<kbd>SHIFT</kbd>+<kbd>SPACE</kbd>.
The menu includes commands to:
The content of the menu may change in future versions, and feedback is welcome.
The menu can be customized by setting the mf.menuItems
property of the
mathfield. The value of this property is an array of menu items. See
the documentation for details.
\pmod5
is now correctly parsed as \pmod{5}
. Macros that
used an argument that was not a literal group were not parsed correctly.Changelog
0.96.2 2023-11-16
MathfieldELement.locale
or MathfieldElement.strings
would not affect existing mathfields.mf.locale
instead
of MathfieldElement.locale
) will now throw an error.smartFence
was on, an inline shortcut that conflicted with a
delimiter was ignored.\mapsfrom
.user-select
CSS property.
If it is set to none
, the mathfield will not be selectable.Changelog
0.96.1 2023-11-15
mf.registers.arraystretch = 1.5
instead of mf.registers = {...mf.registers,
arraystretch: 1.5}`\renewcommand
, for example
\renewcommand{\arraystretch}{1.5}
[up]
and [down]
to move the selection up or down in
a matrix.\left...\right
was vertically offset.[hide-keyboard]
virtual keycap would cause a runtime
error.geometrychange
event is
dispatched.Changelog
0.96.0 2023-11-14
serializeMathJsonToLatex()
has been renamed to
convertMathJsonToLatex()
for consistency.(f(x))
would be parsed as (f(x)
.(
was interpreted as \lparen`. This could cause some
interoperability issues.\operatorname
command, some of the commands could fail to render. For
example, typing "1mm + 2mm" in a mathfield would result in "1 + 2mm" to be
displayed.verbatimLatex
associated with the
atom, so that the value
property of the atom is correctly serialized.moveToMathfieldEnd
command, the selection was not changed
if it was not collapsed and already at the end of the mathfield. Similarly for
moveToMathfieldStart
.mathtools
, actuarialangle
,
colonequals
, statmath
and amsopn
packageslongdiv
enclosure (\mathenclose{longdiv}{...}
).
) in the virtual keyboard was displayed as a
blank key.shift +
in the numeric keyboard was inserting a sum
with limits contrary to what the keycap label indicated.,
key now produces a semicolon when
shifted and has a variant panel with additional punctuation.\cdot
instead of \times
. Use shift to produce \times
.\displaystyle
and \textstyle
to MathMLChangelog
0.95.5 2023-08-18
7
key was the variant panel for 4
.sen[backspace][backspace]in
will be corrected to \\sin
.\operator*{}
command\class{}{}
command in a mathfield was not working correctly.prompt
CSS part to the mathfield element. This allows styling of
prompts (placeholders) in a fill-in-the-blank mathfield.w40
keycap class (4-wide)renderMathInElement()
preserve the LaTeX as a data-
attribute
on the element.\imaginaryI
, \imaginaryJ
, \ne
and \neq
PointerEvent
supportmf.mathVirtualKeyboard
. The virtual
keyboard is now a singleton, accessible as window.mathVirtualKeyboard
.command
attribute is associated with a keycap, a
math-virtual-keyboard-command
event is dispatched when the keycap is
pressed.Changelog
0.95.4 2023-08-11
x^{#?}
in the virtual keyboard variant panel for x
\int
was triggered with sint
. Note that in case
of similar conflicts, pressing the spacebar will prevent the shorcuts from
taking effect, i.e. "sin t".