LaTeX Equations
TeX is an ISLE element that can be used to display LaTeX equations.
Options
- raw |
(string|number) (required): The literal LaTeXstringto render. Also acceptsnumbers. Default:none. - displayMode |
boolean:booleanindicating 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:objectwith 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:objectwithkeysdenoting LaTeX characters and their corresponding values being configurationobjectsto make them interactive. Setting atooltipoption will show a tooltip when hovering over the LaTeX characters. Setting avariableproperty will display an input slider to change the respective state variable; in this case, additional propertieslegend,min,max, andstepare supported. Default:{}. - popoverPlacement |
string: popover position for the specifiedelems(eithertop,right,bottom, orleft). Default:'bottom'. - onPopover |
function: callbackfunctionwhen a control popover is toggled on or off; receives the display status as a boolean as its sole argument. Default:onPopover() {}. - onClick |
function: callbackfunctioninvoked whenever a user clicks on the equation. Default:none.
Examples
Live Editor
Result
ReferenceError: Provider is not defined