diff --git a/docs/mathfield/05-latex-commands.md b/docs/mathfield/05-latex-commands.md index 8832af6..59841e8 100644 --- a/docs/mathfield/05-latex-commands.md +++ b/docs/mathfield/05-latex-commands.md @@ -16,8 +16,20 @@ Mathfields support over **800** LaTeX commands. **To enter a LaTeX command in mathfield** press the ESC key or \\ to enter LaTeX editing mode. Press ESC to exit LaTeX editing mode. + **To examine the LaTeX code for an expression**, select it, then press ESC. +:::info[Note] +If you want to prevent users from entering into the LaTeX mode, you can add the following event listener to the MathField: + +```ts +mf.addEventListener('mode-change', (ev)=>{ev.preventDefault();}) +``` + + +Learn more about changes on a MathField. + +::: The most common symbols can be entered using **keyboard shortcuts**. @@ -2223,4 +2235,4 @@ TeX packages or macros. | `\csname`
`\endcsname` | Turn the next tokens, until `\endcsname`, into a command | | `\ensuremath{}` | If in Math Mode, does nothing. Otherwise, switch to Math Mode. | - \ No newline at end of file +