From 7e0a9b20e7871dcc899f0250d5ca7fd439d410bf Mon Sep 17 00:00:00 2001
From: dae
Date: Sun, 12 Jan 2025 07:48:11 +0000
Subject: [PATCH] deploy: ae90d3ed14e962ed1827674612f0528e258073ce
---
math.html | 27 ++++++++++++++++++++++-----
print.html | 27 ++++++++++++++++++++++-----
searchindex.js | 2 +-
searchindex.json | 2 +-
4 files changed, 46 insertions(+), 12 deletions(-)
diff --git a/math.html b/math.html
index 9a066866..62839561 100644
--- a/math.html
+++ b/math.html
@@ -151,7 +151,11 @@
-- MathJax
+- MathJax
+
+
- LaTeX
-
-
If you click the Cards… button, you’ll see a preview of how the
-equation will appear when the card is reviewed.
+Click the Cards... button. You’ll see a preview of how the
+equation will appear when the card is reviewed.
+\[\sqrt{x}\]
Anki’s MathJax support expects content in TeX format. If you’re not
familiar with TeX formatting, please see this cheatsheet.
-Please note that point 2 does not apply in Anki - Anki uses \(
and
+Please note that point 1 does not apply in Anki - Anki uses \(
and
\)
for inline equations, and \[
and \]
for display equations.
If you want to use newlines in a MathJax expression, please use
Shift+Enter instead of just Enter, as a normal newline will prevent
@@ -204,7 +209,19 @@
equations. Please see the 'chemical equations' section and the following
sections for more information:
https://mhchem.github.io/MathJax-mhchem/
-It is possible to customize some settings.
+
+Anki's bundled MathJax support is loaded before card content, so if you wish to customise MathJax you'll have to do so in a specific way. An example is provided here.
+<script>
+MathJax.config.tex['macros'] = {
+ R: '{\\mathbb {R}}',
+};
+if (typeof is_already_run == 'undefined') {
+ is_already_run = true
+ MathJax.startup.getComponents();
+}
+</script>
+
+Note that Anki has special logic for cloze deletions that might not work if you change the standard delimiters for MathJax equations.
LaTeX is a powerful typesetting system, useful for entering mathematical
formulas, chemical formulas, musical notation and so on. Anki provides
diff --git a/print.html b/print.html
index fa01df3a..2e91a352 100644
--- a/print.html
+++ b/print.html
@@ -5762,7 +5762,11 @@