mathlive-tera
Advanced tools
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-10-31)
mathVirtualKeyboard.actionKeycap
,
mathVirtualKeyboard.shiftKeycap
, mathVirtualKeyboard.backspaceKeycap
,
and mathVirtualKeyboard.tabKeycap
have been removed. Use the more general
mathVirtualKeyboard.setKeycap()
method to customize these keycaps, that
is mathVirtualKeyboard.setKeycap('[action]', {...})
etc...Macros can now be specified with renderMathInElement()
and renderMathInDocument()
using the macros
option. For example:
renderMathInElement(element, {macros: {RR: '\\mathbb{R}'}})
Performance improvements for pages with many mathfields. The initial rendering can be up to 2x as fast.
Some keycaps in the virtual keyboard can be customized without having to define an entire virtual keyboard layout.
The mathVirtualKeyboard.getKeycap()
give access to the definition of
special keycaps and mathVirtualKeyboard.setKeycap()
can be used to
change that definition.
The keycaps are one of these special shortcuts:
[left]
, [right]
, [up]
, [down]
, [return]
, [action]
,[space]
, [tab]
, [backspace]
, [shift]
,[undo]
, [redo]
, [foreground-color]
, [background-color]
,[hide-keyboard]
,[.]
, [,]
,[0]
, [1]
, [2]
, [3]
, [4]
,[5]
, [6]
, [7]
, [8]
, [9]
,[+]
, [-]
, [*]
, [/]
, [^]
, [_]
, [=]
, [.]
,[(]
, [)]
For example, to change the LaTeX inserted when the multiplication key is pressed use:
mathVirtualKeyboard.setKeycap('[*]', {latex: '\\times'});
contextmenu
event any time the context menu is about to be
displayed. This allows the event to be canceled.alphabeticLayout
, the current keyboard would not
be updated in some cases.\lnot p
would serialize as \lnotp
.\mathbb{}
command were not styled
correctly.math-virtual-keyboard-command
event was not dispatched when a
mathfield was focused and a keycap was pressed.--keycap-glyph-size
--keycap-glyph-size-lg
--keycap-glyph-size-xl
beforeinput
event was canceled, the text would still
be inserted when using the physical keyboard.{\placeholder{}}
, the placeholder was not automatically selected.