Rename math symbols (#1124)

Co-authored-by: Ryan Pitasky <111201305+rpitasky@users.noreply.github.com>
Co-authored-by: Daniel Csillag <15617291+dccsillag@users.noreply.github.com>
This commit is contained in:
KG 2023-07-17 09:54:26 -04:00 committed by GitHub
parent ed15e1062a
commit 31efd542cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 20 deletions

View File

@ -71,7 +71,7 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
triple: '', triple: '',
small: '', small: '',
circle: '', circle: '',
sq: '', square: '',
], ],
at: '@', at: '@',
backslash: ['\\', circle: '', not: ''], backslash: ['\\', circle: '', not: ''],
@ -118,12 +118,12 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
eq: '', eq: '',
eq.not: '', eq.not: '',
eq.rev: '', eq.rev: '',
eqq: '', equiv: '',
eqq.not: '', equiv.not: '',
neqq: '', nequiv: '',
not: '', not: '',
rev: '', rev: '',
rev.eqq: '', rev.equiv: '',
triple: '', triple: '',
], ],
@ -218,20 +218,33 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
quest: '', quest: '',
small: '', small: '',
succ: '', succ: '',
triple: '',
quad: '',
], ],
gt: [ gt: [
'>', '>',
circle: '', circle: '',
curly: '',
curly.approx: '',
curly.double: '',
curly.eq: '',
curly.eq.not: '',
curly.equiv: '',
curly.napprox: '',
curly.nequiv: '',
curly.not: '',
curly.ntilde: '',
curly.tilde: '',
dot: '', dot: '',
double: '', double: '',
eq: '', eq: '',
eq.slant: '', eq.slant: '',
eq.lt: '', eq.lt: '',
eq.not: '', eq.not: '',
eqq: '', equiv: '',
lt: '', lt: '',
lt.not: '', lt.not: '',
neqq: '', nequiv: '',
not: '', not: '',
ntilde: '', ntilde: '',
small: '', small: '',
@ -247,16 +260,27 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
lt: [ lt: [
'<', '<',
circle: '', circle: '',
curly: '',
curly.approx: '',
curly.double: '',
curly.eq: '',
curly.eq.not: '',
curly.equiv: '',
curly.napprox: '',
curly.nequiv: '',
curly.not: '',
curly.ntilde: '',
curly.tilde: '',
dot: '', dot: '',
double: '', double: '',
eq: '', eq: '',
eq.slant: '' , eq.slant: '' ,
eq.gt: '', eq.gt: '',
eq.not: '', eq.not: '',
eqq: '', equiv: '',
gt: '', gt: '',
gt.not: '', gt.not: '',
neqq: '', nequiv: '',
not: '', not: '',
ntilde: '', ntilde: '',
small: '', small: '',
@ -276,9 +300,9 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
double: '', double: '',
eq: '', eq: '',
eq.not: '', eq.not: '',
eqq: '', equiv: '',
napprox: '', napprox: '',
neqq: '', nequiv: '',
not: '', not: '',
ntilde: '', ntilde: '',
tilde: '', tilde: '',
@ -289,17 +313,18 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
double: '', double: '',
eq: '', eq: '',
eq.not: '', eq.not: '',
eqq: '', equiv: '',
napprox: '', napprox: '',
neqq: '', nequiv: '',
not: '', not: '',
ntilde: '', ntilde: '',
tilde: '', tilde: '',
], ],
ident: ['≡', not: '', strict: ''], equiv: ['≡', not: ''],
prop: '', prop: '',
// Set theory. // Set theory.
emptyset: ['∅', rev: ''],
nothing: ['∅', rev: ''], nothing: ['∅', rev: ''],
without: '', without: '',
complement: '', complement: '',
@ -381,7 +406,7 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
double: '', double: '',
quad: '', quad: '',
sect: '', sect: '',
sq: '', square: '',
surf: '', surf: '',
times: '', times: '',
triple: '', triple: '',
@ -798,8 +823,11 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
Zeta: 'Ζ', Zeta: 'Ζ',
// Hebrew. // Hebrew.
aleph: 'א',
alef: 'א', alef: 'א',
beth: 'ב',
bet: 'ב', bet: 'ב',
gimmel: 'ג',
gimel: 'ג', gimel: 'ג',
shin: 'ש', shin: 'ש',

View File

@ -23,7 +23,7 @@ $a"is"b, a "is" b$
// Test predefined spacings. // Test predefined spacings.
$a thin b, a med b, a thick b, a quad b$ \ $a thin b, a med b, a thick b, a quad b$ \
$a = thin b$ \ $a = thin b$ \
$a - b ident c quad (mod 2)$ $a - b equiv c quad (mod 2)$
--- ---
// Test spacing for set comprehension. // Test spacing for set comprehension.
@ -33,8 +33,8 @@ $ { x in RR | x "is natural" and x < 10 } $
--- ---
// Test spacing for operators with decorations and modifiers on them // Test spacing for operators with decorations and modifiers on them
#set page(width: auto) #set page(width: auto)
$a ident b + c - d => e log 5 op("ln") 6$ \ $a equiv b + c - d => e log 5 op("ln") 6$ \
$a cancel(ident) b overline(+) c arrow(-) d hat(=>) e cancel(log) 5 dot(op("ln")) 6$ \ $a cancel(equiv) b overline(+) c arrow(-) d hat(=>) e cancel(log) 5 dot(op("ln")) 6$ \
$a overbrace(ident) b underline(+) c grave(-) d underbracket(=>) e circle(log) 5 caron(op("ln")) 6$ \ $a overbrace(equiv) b underline(+) c grave(-) d underbracket(=>) e circle(log) 5 caron(op("ln")) 6$ \
\ \
$a attach(ident, tl: a, tr: b) b attach(limits(+), t: a, b: b) c tilde(-) d breve(=>) e attach(limits(log), t: a, b: b) 5 attach(op("ln"), tr: a, bl: b) 6$ $a attach(equiv, tl: a, tr: b) b attach(limits(+), t: a, b: b) c tilde(-) d breve(=>) e attach(limits(log), t: a, b: b) 5 attach(op("ln"), tr: a, bl: b) 6$