mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 18:40:28 +00:00
6e674fe9db
* add chemParse (mchem extension) * add mchem.min.js * Update tiddlywiki.files * add chemical reference link * Rename mchem.min.js to mhchem.min.js * Update tiddlywiki.files * renaming mchem to mhchem * Update readme.tid * add chemical examples * Update usage.tid
25 lines
944 B
Plaintext
25 lines
944 B
Plaintext
title: $:/plugins/tiddlywiki/katex/usage
|
|
|
|
!! Reference:
|
|
|
|
# Mathematical typesetting: [ext[https://katex.org/docs/supported.html]]
|
|
# Chemical typesetting: [ext[https://mhchem.github.io/MathJax-mhchem/]]
|
|
|
|
<hr>
|
|
|
|
The usual way to include ~LaTeX is to use `$$`. For example:
|
|
|
|
```
|
|
$$\displaystyle f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi$$
|
|
```
|
|
|
|
Single line equations will render in inline mode. If there are newlines between the `$$` delimiters, the equations will be rendered in display mode.
|
|
|
|
The underlying widget can also be used directly, giving more flexibility:
|
|
|
|
```
|
|
<$latex text="f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi" displayMode="true"></$latex>
|
|
```
|
|
|
|
The KaTeX widget is provided under the name `<$latex>` and is also available under the alias `<$katex>`. It's better to use the generic `<$latex>` name unless you are running multiple ~LaTeX plugins and wish to specifically target KaTeX.
|