Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/mathfield/05-latex-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,20 @@ Mathfields support over **800** LaTeX commands.
**To enter a LaTeX command in mathfield** press the <kbd>ESC</kbd> key or <kbd>\\</kbd>
to enter LaTeX editing mode. Press <kbd>ESC</kbd> to exit LaTeX editing mode.


**To examine the LaTeX code for an expression**, select it, then press <kbd>ESC</kbd>.

:::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();})
```

<ReadMore path="https://mathlive.io/mathfield/guides/interacting/#listening-for-changes-to-a-mathfield" >
Learn more about changes on a MathField.
</ReadMore>
:::

<ReadMore path="/mathfield/reference/keybindings" >
The most common symbols can be entered using **keyboard shortcuts**.<Icon name="chevron-right-bold" />
Expand Down Expand Up @@ -2223,4 +2235,4 @@ TeX packages or macros.
| `\csname` <br/> `\endcsname` | Turn the next tokens, until `\endcsname`, into a command |
| `\ensuremath{}` | If in Math Mode, does nothing. Otherwise, switch to Math Mode. |

</div>
</div>