Compare commits

..

4 Commits

Author SHA1 Message Date
Max
120e56c866
Merge 0e5896671e54091ff429ac35c041a7d0b2aae50e into d1deb80bb8b4d5fad348c23a3e079e4854aa57e4 2025-07-07 03:01:34 +00:00
mkorje
0e5896671e
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-07 13:01:26 +10:00
mkorje
a5170e5fcf
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-07 13:01:23 +10:00
mkorje
d62d249355
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-07 13:01:21 +10:00

Diff Content Not Available