LaTeX Equations
TeX
is an ISLE element that can be used to display LaTeX equations.
Options
- raw |
(string|number) (required)
: The literal LaTeXstring
to render. Also acceptsnumbers
. Default:none
. - displayMode |
boolean
:boolean
indicating whether to display the equation inline or in display mode. Default:false
. - numbered |
boolean
: controls whether to display an equation number for display mode equations. Default:false
. - style |
object
:object
with CSS key-value pairs to be applied to the equation container. Default:{}
. - tag |
string
: Custom characters displayed for display equations at the right side. Defaults to the number of the equation inside the lesson. Default:none
. - elems |
object
:object
withkeys
denoting LaTeX characters and their corresponding values being configurationobjects
to make them interactive. Setting atooltip
option will show a tooltip when hovering over the LaTeX characters. Setting avariable
property will display an input slider to change the respective state variable; in this case, additional propertieslegend
,min
,max
, andstep
are supported. Default:{}
. - popoverPlacement |
string
: popover position for the specifiedelems
(eithertop
,right
,bottom
, orleft
). Default:'bottom'
. - onPopover |
function
: callbackfunction
when a control popover is toggled on or off; receives the display status as a boolean as its sole argument. Default:onPopover() {}
. - onClick |
function
: callbackfunction
invoked whenever a user clicks on the equation. Default:none
.
Examples
Live Editor
Result
ReferenceError: Provider is not defined