Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs(guide): document formatting equations
Elian Dorandd477258a9e2
diff --git 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.htmlindex dd41d19ab2..598f08cc73 100644--- 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@@ -6,12 +6,6 @@the<img src="1_Math Equations_image.png" width="20" height="15">button from the <a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a> (generallyfound under the <a class="reference-link" href="#root/_help_CohkqWQC1iBv">Insert buttons</a>).</p>-<p>If inserting equations frequently, using the <kbd>Ctrl</kbd>+<kbd>M</kbd> keyboard- shortcut can be more comfortable. Alternatively, type <code>$$</code> or <code>\[</code> to- trigger the popup directly.</p>-<p>There is currently no quick way to insert an equation, such as surrounding- it with <code>$</code> or pressing <kbd>Ctrl</kbd>+<kbd>M</kbd> on an already- typed-out equation.</p><p>The mathematical expression must be written in the TeX format. There isno visual editor for the math equations, only a preview. </p><p>Enabling <em>Display mode</em> will render the equation slightly bigger@@ -19,6 +13,12 @@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 equationscan be part of the text.</p>+<h2>Keyboard shortcuts</h2>+<p>If inserting equations frequently, using the <kbd>Ctrl</kbd>+<kbd>M</kbd> keyboard+ shortcut can be more comfortable. Alternatively, type <code>$$</code> or <code>\[</code> to+ trigger the popup directly.</p>+<p>There is currently no quick way to turn an already typed-out equation,+ such as surrounding it with <code>$</code> or pressing <kbd>Ctrl</kbd>+<kbd>M</kbd>.</p><h2>Supported math features</h2><p>Technically we are using the KaTeX library which allows for a subset ofthe TeX format. To see the full list of supported features, consult the@@ -27,8 +27,12 @@the official documentation.</p><h2>Markdown support</h2><p>Math equations will be preserved when exporting to or importing from Markdown,- surrounded by <code>\(</code> characters for inline math expressions, and <code>$\)</code> for+ surrounded by <code>$</code> characters for inline math expressions, and <code>$$</code> fordisplay mode.</p><p>If you notice any issue with the Markdown import/export for equations,feel free to <a href="#root/_help_wy8So3yZZlH9">report</a> it while providing- the equation that causes issues.</p>\ No newline at end of file+ the equation that causes issues.</p>+<h2>Formatting the equation</h2>+<p>It is possible to customize the font size and foreground color for both+ inline and display-mode equations, just like any other text. For inline+ equations, the background color/highlight can also be adjusted.</p>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Logging.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Logging.htmlindex 8cf47c2c7f..c7db77f63a 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Logging.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Logging.html@@ -16,9 +16,9 @@<p>For logs that are not directly visible to the user, the standard <code>console.log</code> canbe used as well.</p><ul>- <li data-list-item-id="ec01fd8ccf51930dda1c2f707e78c0842">For front-end scripts, the log will be shown in the Developer Tools (also+ <li>For front-end scripts, the log will be shown in the Developer Tools (alsoknown as Inspect).</li>- <li data-list-item-id="e62355c5371735daf1c436b4d65ba3549">For back-end scripts, the log will be shown in the server output while+ <li>For back-end scripts, the log will be shown in the server output whilerunning but <strong>will not</strong> be visible in the <a class="reference-link"- href="#root/pOsGYCXsbNQG/BgmBlOIl72jZ/qzNzp9LYQyPT/_help_bnyigUA2UK7s">Backend (server) logs</a>.</li>+ href="#root/_help_bnyigUA2UK7s">Backend (server) logs</a>.</li></ul>\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Text/Math Equations.md b/docs/User Guide/User Guide/Note Types/Text/Math Equations.mdindex 0bcb5af7ad..c8cfa94e5a 100644--- a/docs/User Guide/User Guide/Note Types/Text/Math Equations.md+++ b/docs/User Guide/User Guide/Note Types/Text/Math Equations.md@@ -3,20 +3,26 @@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>).-If inserting equations frequently, using the <kbd>Ctrl</kbd>+<kbd>M</kbd> keyboard shortcut can be more comfortable. Alternatively, type `$$` or `\[` to trigger the popup directly.--There is currently no quick way to insert an equation, such as surrounding it with `$` or pressing <kbd>Ctrl</kbd>+<kbd>M</kbd> on an already typed-out equation.-The mathematical expression must be written in the TeX format. There is no visual editor for the math equations, only a 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.+## Keyboard shortcuts++If inserting equations frequently, using the <kbd>Ctrl</kbd>+<kbd>M</kbd> keyboard shortcut can be more comfortable. Alternatively, type `$$` or `\[` to trigger the popup directly.++There is currently no quick way to turn an already typed-out equation, such as surrounding it with `$` or pressing <kbd>Ctrl</kbd>+<kbd>M</kbd>.+## Supported math featuresTechnically we are using the KaTeX library which allows for a subset of the TeX format. To see the full list of supported features, consult the [Supported Functions](https://katex.org/docs/supported) and the [Support Table](https://katex.org/docs/support_table) from the official documentation.## Markdown support-Math equations will be preserved when exporting to or importing from Markdown, surrounded by `\(` characters for inline math expressions, and `$\)` for display mode.+Math equations will be preserved when exporting to or importing from Markdown, surrounded by `$` characters for inline math expressions, and `$$` for display mode.++If you notice any issue with the Markdown import/export for equations, feel free to [report](../../Troubleshooting/Reporting%20issues.md) it while providing the equation that causes issues.++## Formatting the equation-If you notice any issue with the Markdown import/export for equations, feel free to [report](../../Troubleshooting/Reporting%20issues.md) it while providing the equation that causes issues.\ No newline at end of file+It is possible to customize the font size and foreground color for both inline and display-mode equations, just like any other text. For inline equations, the background color/highlight can also be adjusted.\ No newline at end of file