61 Commits

Author SHA1 Message Date
mkorje
b30a38046c
Add delim-size parameter to mat, vec, and cases
Takes either a function or a relative length, just like with `lr`,
`stretch`, and `accent` which was changed in the previous two commits.
The short fall was changed in the first commit, so no test updates here.
The default is now much clearer to the user: `x => x * 1.1 - 0.1em`.
2025-04-27 21:04:39 +10:00
mkorje
92d06fbd9a
Allow a function as an argument to size in accent
The short fall is now only applied in the default for `accent`
(`x => x - 0.5em`). This is the reason for the updated tests.
2025-04-25 22:36:21 +10:00
mkorje
3506ef446d
Allow a function as an argument to size in stretch and lr
Previously there was always a short fall when scaling delimiters, even if
the user requested a specific size. This is no longer the case; the short
fall is only present in the default for `lr` (`x => x - 0.1em`), and is
the reason for the updated tests - the size of the delimiters is now
actually what was specified in the size argument. This also makes the
default for `lr` much clearer to the user.

A slight hack was used by exploiting the `name` property in the `func`
attribute macro so that the default value in the docs for `lr.size` would
clearly show what the default function was (instead of just its name
`default_lr_size` which is meaningless and inaccessible to the user).
2025-04-25 22:14:57 +10:00
Max
7e072e2493
Add test for flattened accents in math (#6188) 2025-04-17 14:10:27 +00:00
Ian Wrzesinski
12699eb7f4
Parse multi-character numbers consistently in math (#5996)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-02 09:30:04 +00:00
Max
012e14d40c
Unify layout of vec and cases with mat (#5934) 2025-03-31 09:38:04 +00:00
Max
4f0fbfb7e0
Add dotless parameter to math.accent (#5939)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-03-31 09:17:49 +00:00
Max
96f6957371
Fix math.root frame size (#6021) 2025-03-11 10:18:15 +00:00
Max
55bc5f4c94
Make math shorthands noncontinuable (#5925) 2025-02-23 11:28:24 +00:00
Malo
f239b0a6a1
Change the default math class of U+22A5 ⊥ UP TACK to Normal (#5714) 2025-01-31 10:05:03 +00:00
Laurenz
26e65bfef5
Semantic paragraphs (#5746) 2025-01-24 12:11:26 +00:00
Ian Wrzesinski
6fe1e20afb Update math TextElem layout to separate out SymbolElem 2025-01-23 16:30:29 -05:00
Ian Wrzesinski
c47b71b435 Basic SymbolElem addition 2025-01-23 16:28:29 -05:00
Ian Wrzesinski
f7bd03dd76
Fix delimiter unparen syntax (#5739) 2025-01-23 12:27:38 +00:00
Max
be6629c7cb
Better math argument parsing (#5008) 2025-01-09 10:49:06 +00:00
Malo
a2f685483a
Improve repr for arguments (#5652) 2025-01-06 12:43:41 +00:00
Max
bb38a01d06
Fix math size resolving (#5596) 2024-12-20 12:35:57 +00:00
Max
c3334a55fe
Fix arbitrarily nested equations in the base of math.attach (#5613) 2024-12-20 10:15:18 +00:00
Max
468a60103d
Fix multiline annotations in over- elems in math changing the baseline (#5459) 2024-12-08 16:55:34 +00:00
Max
578ba640f3
Fix weak spacing being ignored unconditionally in math.lr (#5477) 2024-11-27 11:16:25 +00:00
Max
f29fbea2fc
Use extended shape information for glyph text_like-ness (#5483) 2024-11-27 11:11:49 +00:00
Max
8fe8b2a239
Ignore leading and trailing ignorant fragments in math.lr (#5473) 2024-11-26 20:51:22 +00:00
Max
fd5e642fb4
Tags shouldn't affect row height in equations (#5458) 2024-11-26 12:37:53 +00:00
Andrew Voynov
cb8eaddf98
Removed deprecated diff symbol (#5388) 2024-11-12 12:44:45 +00:00
Ian Wrzesinski
88d86714a1 9. Parse math field access in the lexer 2024-10-31 18:26:12 -04:00
Max
f85faf957f
Add math.accent support for flac and dtls OpenType features (#5202) 2024-10-30 15:29:15 +00:00
Max
b5b92e21e9
Fix bug in math.frac layout code (#5177) 2024-10-10 15:52:55 +00:00
Eric Biedert
f1f2de889a
Resolve lengths in math with scaled font size (#5168) 2024-10-10 12:03:11 +00:00
Eric Biedert
20ce48dc36
Fix panic for empty breakable block equations (#5116) 2024-10-07 08:13:09 +00:00
Max
8eee3ec8d1
Fix breakable block equation overflow (#5078) 2024-10-01 08:01:28 +00:00
Max
75f646c975
Fix math.stretch not working vertically with attachments (#5069) 2024-10-01 07:59:31 +00:00
Max
93a5b712b1
Fix math.lr size argument not being applied to enclosed math.mid (#5050) 2024-09-27 08:34:38 +00:00
Josh Soref
ca1f749c08
Spelling (#5020)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-26 17:32:55 +00:00
Max
e00e3e4fbf
Add math.stretch element function (#5030) 2024-09-26 14:46:26 +00:00
Max
a40e068590
Add alignment parameter to matrices and vectors (#4998) 2024-09-26 14:30:47 +00:00
Max
f8f95e5c21
Extend hint for unknown variables in math (#5038) 2024-09-26 11:40:25 +00:00
tingerrr
799eb8004e
Improve unknown variable diagnostics (#4858) 2024-09-02 12:45:50 +00:00
Max
373163dba4
Implement math kerning and fix various math.attach bugs (#4762) 2024-08-26 17:04:02 +00:00
Eric Biedert
326fd33801
Don't number empty regions of broken block equations (#4836) 2024-08-26 15:26:50 +00:00
Max
0b31f6039f
Fix nested attachments when the base in math.attach has attachments (#4832) 2024-08-26 14:49:24 +00:00
Leedehai
d221a89a40
Adjust the baseline of root radicand frame (#4736) 2024-08-15 20:08:40 +00:00
Max
b07607d35e
Split shorthands into math and markup, add tilde shorthand (#4706) 2024-08-09 07:41:01 +00:00
Max
a6a8cdaa28
Make under/overlines behave the same as accents in attach base (#4695) 2024-08-09 07:40:29 +00:00
mkorje
810491c9d3
Add missing under/over-delimiters (#4637) 2024-08-05 11:28:17 +00:00
Leedehai
f0407d4949
Wrapping with parens should not push superscripts higher (#4545)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-15 09:54:54 +00:00
Leedehai
d1c7d08893
Primes should not further raise next superscript's position (#4492)
Co-authored-by: Ian Wrzesinski <133046678+wrzian@users.noreply.github.com>
2024-07-08 19:32:58 +00:00
Eric Biedert
59374f7370
Avoid spaces around ignorant and invisible elements in math (#4348) 2024-07-06 13:45:19 +00:00
Wenzhuo Liu
681badf76a
Pad matrix cell to make matrix have a consistent height (#4153) 2024-06-04 15:42:02 +00:00
Leedehai
df6e347bc5
Align point and linebreak should not increase math row height (#4306) 2024-06-04 15:30:43 +00:00
+merlan #flirora
99b393110e
Align corner brackets to the top and bottom when scaling (#4200) 2024-06-04 15:22:56 +00:00