Symbol improvements
This commit is contained in:
parent
69985e59bc
commit
c2bd114914
@ -34,7 +34,7 @@ const ACCENT_SHORT_FALL: Em = Em::new(0.5);
|
||||
/// | ------------ | --------------- | --------- |
|
||||
/// | Grave | `grave` | <code>`</code> |
|
||||
/// | Acute | `acute` | `´` |
|
||||
/// | Circumflex | `circum` | `^` |
|
||||
/// | Circumflex | `hat` | `^` |
|
||||
/// | Tilde | `tilde` | `~` |
|
||||
/// | Macron | `macron` | `¯` |
|
||||
/// | Breve | `breve` | `˘` |
|
||||
|
@ -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
|
||||
/// ```
|
||||
|
@ -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) };
|
||||
|
@ -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: '∂',
|
||||
|
@ -150,7 +150,7 @@ symbols! {
|
||||
breve: '˘',
|
||||
caret: '‸',
|
||||
caron: 'ˇ',
|
||||
circum: '^',
|
||||
hat: '^',
|
||||
diaer: '¨',
|
||||
grave: '`',
|
||||
macron: '¯',
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
$ grave(a),
|
||||
acute(a),
|
||||
circum(a),
|
||||
hat(a),
|
||||
tilde(a),
|
||||
macron(a),
|
||||
breve(a),
|
||||
|
Loading…
x
Reference in New Issue
Block a user