Skip to content

Build your personal knowledge base with Trilium Notes

feat(math): add user toggle for mathlive (#8980)

Elian Doran41e0e5828713
diff --cc apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Math Equations.html
index 26ed402746,bca39007ba..caf84b0840
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Math Equations.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Math Equations.html
@@@ -3,11 -3,12 +3,12 @@@
height="193">
</figure>
<p>Within text notes, it's possible to enter mathematical equations using
- the
- <img src="1_Math Equations_image.png" width="20" height="15">button from the&nbsp;<a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a>&nbsp;(generally
+ the&nbsp;<span class="tn-icon cke cke-trilium-math"></span> button from
+ the&nbsp;<a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a>&nbsp;(generally
found under the&nbsp;<a class="reference-link" href="#root/_help_CohkqWQC1iBv">Insert buttons</a>).</p>
- <p>The mathematical expression must be written in the TeX format. There is
- no visual editor for the math equations, only a preview.&nbsp;</p>
+ <p>By default, the math dialog includes a MathLive visual editor and a TeX
+ field. Disable <em>MathLive visual editor</em> under Options → Text Notes
+ → Features to use only the TeX field and preview.</p>
<p>Enabling <em>Display mode</em> will render the equation slightly bigger
(especially if using big operators such as summation, or fractions) and
center it. Display mode equations will act as blocks (i.e. like paragraphs,
diff --cc docs/User Guide/User Guide/Note Types/Text/Math Equations.md
index 731440a436,171f6107bf..c317257c7e
--- a/docs/User Guide/User Guide/Note Types/Text/Math Equations.md
+++ b/docs/User Guide/User Guide/Note Types/Text/Math Equations.md
@@@ -1,9 -1,9 +1,9 @@@
# Math Equations
<figure class="image image-style-align-right"><img style="aspect-ratio:350/193;" src="Math Equations_image.png" width="350" height="193"></figure>
-Within text notes, it's possible to enter mathematical equations using the <img src="1_Math Equations_image.png" width="20" height="15"> button from the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a> (generally found under the <a class="reference-link" href="Insert%20buttons.md">Insert buttons</a>).
+Within text notes, it's possible to enter mathematical equations using the <span class="tn-icon cke cke-trilium-math"></span> button from the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a> (generally found under the <a class="reference-link" href="Insert%20buttons.md">Insert buttons</a>).
- The mathematical expression must be written in the TeX format. There is no visual editor for the math equations, only a preview. 
+ By default, the math dialog includes a MathLive visual editor and a TeX field. Disable _MathLive visual editor_ under Options → Text Notes → Features to use only the TeX field and preview.
Enabling _Display mode_ will render the equation slightly bigger (especially if using big operators such as summation, or fractions) and center it. Display mode equations will act as blocks (i.e. like paragraphs, or tables) and can be inserted for example in lists. Non-display equations can be part of the text.