summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-31 13:00:20 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-31 13:00:20 +0100
commitc2bd114914513c8ff450b9dcc67aa9b17cf275e1 (patch)
tree7eab496ff3c1b38afb63881eca400bf7cd553aba /library/src/math
parent69985e59bc13a19ad9aa3530d5e208460528ef1b (diff)
Symbol improvements
Diffstat (limited to 'library/src/math')
-rw-r--r--library/src/math/accent.rs2
-rw-r--r--library/src/math/attach.rs3
-rw-r--r--library/src/math/op.rs4
-rw-r--r--library/src/math/symbols.rs3
4 files changed, 8 insertions, 4 deletions
diff --git a/library/src/math/accent.rs b/library/src/math/accent.rs
index 9183b93b..8cae4268 100644
--- a/library/src/math/accent.rs
+++ b/library/src/math/accent.rs
@@ -34,7 +34,7 @@ const ACCENT_SHORT_FALL: Em = Em::new(0.5);
/// | ------------ | --------------- | --------- |
/// | Grave | `grave` | <code>&DiacriticalGrave;</code> |
/// | Acute | `acute` | `´` |
-/// | Circumflex | `circum` | `^` |
+/// | Circumflex | `hat` | `^` |
/// | Tilde | `tilde` | `~` |
/// | Macron | `macron` | `¯` |
/// | Breve | `breve` | `˘` |
diff --git a/library/src/math/attach.rs b/library/src/math/attach.rs
index 0d774839..3f4d28d2 100644
--- a/library/src/math/attach.rs
+++ b/library/src/math/attach.rs
@@ -5,8 +5,7 @@ use super::*;
///
/// ## Syntax
/// This function also has dedicated syntax: Use the underscore (`_`) to
-/// indicate a bottom attachment and the circumflex (`^`) to indicate a top
-/// attachment.
+/// indicate a bottom attachment and the hat (`^`) to indicate a top attachment.
///
/// ## Example
/// ```
diff --git a/library/src/math/op.rs b/library/src/math/op.rs
index 5665a637..6e52cea5 100644
--- a/library/src/math/op.rs
+++ b/library/src/math/op.rs
@@ -58,6 +58,10 @@ macro_rules! ops {
limits: ops!(@limit $($tts)*),
}.pack()
);)*
+
+ let dif = |d| HNode::strong(THIN).pack() + UprightNode(TextNode::packed(d)).pack();
+ math.define("dif", dif('d'));
+ math.define("Dif", dif('D'));
}
};
(@name $name:ident) => { stringify!($name) };
diff --git a/library/src/math/symbols.rs b/library/src/math/symbols.rs
index 34330d47..c68616fa 100644
--- a/library/src/math/symbols.rs
+++ b/library/src/math/symbols.rs
@@ -330,7 +330,7 @@ symbols! {
// Logic.
forall: '∀',
exists: ['∃', "not": '∄'],
- top: '⟙',
+ top: '⊤',
bot: '⊥',
not: '¬',
and: [
@@ -412,6 +412,7 @@ symbols! {
],
prop: '∝',
divides: ['∣', "not": '∤'],
+ compose: '∘',
// Miscellaneous.
diff: '∂',