Compare commits

..

4 Commits

Author SHA1 Message Date
Max
6b6f8b442d
Merge 33ae9305b2803b2d4a39e73f6943975d01cee62e into d1deb80bb8b4d5fad348c23a3e079e4854aa57e4 2025-07-05 14:34:13 +02:00
mkorje
33ae9305b2
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-06-30 21:50:47 +10:00
mkorje
b4c7b0dc00
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-06-30 21:50:44 +10:00
mkorje
6233d7ad0d
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-06-30 21:50:41 +10:00

Diff Content Not Available