LaTeX Equations
TeX
is an ISLE element that can be used to display LaTeX equations. Under the hood, the component uses KaTeX for blazingly fast rendering.
Example:
<TeX
raw="\int f(x) \; dx"
displayMode={true}
/>
Options:
- raw: The literal LaTeX
string
to render. Also acceptsnumbers
. Default:''
. - displayMode:
boolean
indicating whether to display the equation inline or in display mode. Default:false
. - onClick: Callback
function
invoked whenever a user clicks on the equation. Default:null
. - style:
object
with CSS key-value pairs to be applied to the equation container. Default:{}
. - tag: Custom characters displayed for display equations at the right side. Defaults to the number of the equation inside the lesson.