mkorje
8c811110f3
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 default is now much clearer to the user: `x => x * 1.1 - 0.1em`.
2025-07-23 17:55:19 +10:00
mkorje
5738c98ff5
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`).
2025-07-23 17:53:13 +10:00
mkorje
24bac30c84
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`) - 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-07-23 17:50:58 +10:00
Max
f9b01f595d
Move math styling to codex and add math.scr
( #6309 )
2025-07-09 13:08:49 +00:00
Malo
04fd0acaca
Allow deprecating symbol variants ( #6441 )
2025-06-26 08:24:21 +00:00
Malo
3a6d5fd6b2
Do not force math.mid
elements to have the Large math class ( #5980 )
2025-06-11 08:29:38 +00:00
Max
44d410dd00
Use the shaper in math ( #6336 )
2025-06-10 14:44:38 +00:00
Max
dd95f7d594
Fix bottom accent positioning in math ( #6187 )
2025-06-03 14:08:18 +00:00
Mikołaj
3e7a39e968
Fix stroking of glyphs in math mode ( #6243 )
2025-05-28 17:29:40 +00:00
Ian Wrzesinski
9a95966302
Remove line break opportunity when math operator precededes a closing paren ( #6216 )
2025-05-28 13:44:44 +00:00
frozolotl
d42d2ed200
Error if an unexpected named argument was received ( #6192 )
2025-05-20 16:24:46 +00: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