mathlive
Advanced tools
Changelog
0.94.2 2023-05-22
Changelog
0.94.1 2023-05-21
,
) did not
include the digits before the decimal.Changelog
0.94.0 2023-05-18
\raise
, \lower
and \raisebox
commands. Those commands
were necessary to render some chemical bonds.(
, [
or {
with a selection will enclose the selection with this
delimiter.\ce{ O\bond{~-}H}
\mathtooltip{}
and \texttip{}
commands are
now displayed when used with a static formula.unstyled-latex
).
This strips any color/background-color/font sizing commands from the ouput.\cos^2
(operators
with a superscript).Changelog
0.93.0 2023-05-08
\the
command. For example, \the\year
. Its argument can be a
literal or a register, preceded by an optional factor literal.label
property, the key
property can also now be used
for keycap shortcuts. This allow overriding of the shortcut label. For example
{key: "[undo]", label: "undo"}
--keyboard-row-padding-left
and
--keyboard-row-padding-right
as an option to account for shadows or other
decoration that may spill outside the box of a keycap.em
units relative to the font size
of the math-field
. The default value is 0, which allows the math-field
to
use its default sizing logic.keydown
/keyup
event pair. Add an event listener to the keyboard to receive
those events.\mskip
command\space
, ~
\left...\right
command did not display the visual
indicator that the caret was inside the argument of the command.Changelog
0.92.1 2023-04-19
(x)
ASCIIMath inline shortcut with (*)
x^{}
Changelog
0.92.0 2023-04-18
\not{\in}
, \not{}\in
and \not\in
all render differently.
Previously they were all rendered as \not\in
. They now render as in LaTeX."sandboxed"
mathVirtualKeyboardPolicy
which causes the
iframe in which the mathfield is to be treated as a top-level browsing
context, i.e. to display a virtual keyboard instance in that iframe.mathVirtualKeycap.actionKeycap
, mathVirtualKeycap.shiftKeycap
,
mathVirtualKeycap.tabKeycap
, mathVirtualKeycap.backspaceKeycap
to
customize the appearance of action keys without having to define new layouts.
This can be used to change the "Return" glyph to "Continue" for example, or to
use the word "Shift" for the shift key instead of the default shift glyph.(
+
<kbd>alt/option</kbd>+<kbd>Tab</kbd> to create 2x1 matrix. If at the root,
type <kbd>alt/option</kbd>+<kbd>Return</kbd> for a multi-line expression.x^\frac12
is now
parsed correctly.arraystretch
register is now supported to customize the vertical spacing
of matrixes and other multi row environments.mathVirtualKeyboardPolicy
is set to "manual"
, the
keyboard is not hidden, even when losing focus.\boldsymbol
command was serialized incorrectly after its
content was modified.\Huge\mathbb{R}
and \Huge\R
render identically.\not
. Fun fact: in LaTeX, \not=
renders with a
different spacing from \not{=}
.\text{}
commands) containing
non-applicable commands, for example \text{\frac12}
.\left...\right
, the style of the closing
delimiter should match the style of the last atom before the \right
command.
For example, with a\left(b\color{red} c\right)d
, c
and )
should be red.\middle
commands when preceded with a style-changing
commands, for example: a\left(b\color{red}\middle| \frac34\right)d
\underline
, \overline
\left...\right
command after deleting part of the
formula.\dot{\vec{v}}
. In
general, various edge cases were not handled correctly.Changelog
0.91.2 2023-04-06
Changelog
0.91.1 2023-04-05
Changelog
0.91.0 2023-04-04
In this release the UI of the virtual keyboards has been significantly updated. This includes new virtual keyboards as well as updated layout for existing virtual keyboards and support for shift key modifier for many keycaps.
--keycap-modifier-background
,
--keycap-modifier-background-hover
, --keycap-modifier-text
,
--keycap-modifier-border
and --keycap-modifier-border-bottom
have been
renamed --keycap-secondary-background
, -keycap-secondary-background-hover
,
--keycap-secondary-text
, --keycap-secondary-border
and
--keycap-secondary-border-bottom
, respectively.modifier
to shift
data-shifted
and data-shifted-command
attributes are no
longer supported.classes
property in the JSON description of custom layouts has been
renamed to labelClass
styles
property in the JSON description of a custom layer has been
renamed to style
[left]
keycap shortcut represent the left arrow key. See the
documentation
for more details.width
propertyminimalist
: a small keyboard with only two rows of keycaps containing
digits and basic operations.compact
: similar layout to minimalist
, but the keycaps include variantsnumeric-only
: a keyboard with only digits, the decimal marker and the
minus sign. To use them, use mathVirtualKeyboard.layouts = "minimalist"
--keycap-max-width
: define the maximum with of a keycap, including its
margin--keycap-gap
: define the space between keycapsmathVirtualKeyboard.show()
function now has an optional argument to
animate or not the virtual keyboard. The default is to animate, as per
previous behavior.file://
protocol, that is from
a local file, the keyboard will now work, as long as the mathfields are in the
main document, and not in another browsing context such as an iframe.