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
Laurenz
b036fd97ab
Reformat with 2024 edition
2025-07-21 15:22:29 +02:00
Robin
b1a091a236
Use "whitespace" instead of "space" to denote block-level equation in docs ( #6591 )
2025-07-14 13:26:10 +00:00
Max
f9b01f595d
Move math styling to codex and add math.scr
( #6309 )
2025-07-09 13:08:49 +00:00
Laurenz
e5e1dcd9c0
Target-specific native show rules ( #6569 )
2025-07-09 08:16:36 +00:00
Laurenz
0a3c6939dd
Rewrite foundations of native elements ( #6547 )
2025-07-08 08:52:43 +00:00
Max
899de6d5d5
Use ICU data to check if accent is bottom ( #6393 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-24 10:03:10 +00:00
Max
dd95f7d594
Fix bottom accent positioning in math ( #6187 )
2025-06-03 14:08:18 +00:00
Andrew Voynov
3e6691a93b
Fix frac syntax section typo ( #6193 )
2025-04-18 14:27:07 +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
Laurenz
029ae4a5ea
Export target docs ( #5812 )
...
Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com>
2025-02-05 13:24:10 +00:00
Laurenz
eee903b0f8
Refactor Scope
( #5797 )
2025-02-03 16:04:54 +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
fecdc39846
Use SymbolElem in more places and add char
cast for content
2025-01-23 16:28:29 -05:00
Ian Wrzesinski
c47b71b435
Basic SymbolElem addition
2025-01-23 16:28:29 -05:00
SekoiaTree
58dbbd48fe
Add lcm as an operator in math mode ( #5718 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-23 12:35:29 +00:00
Laurenz
52ee33a275
Rework outline ( #5735 )
2025-01-23 11:50:51 +00:00
Laurenz
b90ad470d6
Remove redundant doc comments on standard arguments ( #5725 )
2025-01-21 11:10:06 +00:00
Laurenz
6b9b78596a
Don't generate accessors for required fields ( #5680 )
2025-01-10 16:54:11 +00:00
Max
be6629c7cb
Better math argument parsing ( #5008 )
2025-01-09 10:49:06 +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
Malo
5c37a1cfea
Use codex
for symbols ( #5421 )
2024-11-17 19:08:23 +00:00
Laurenz
be7cfc85d0
Split out four new crates ( #5302 )
2024-10-27 18:04:55 +00:00
Laurenz
7eebafa783
Merge typst
and typst-library
2023-11-24 12:30:02 +01:00
Laurenz
36c7301608
Tidy up some imports
2023-11-21 15:20:49 +01:00
Laurenz
2da619e17c
Streamline imports
2023-11-19 16:34:38 +01:00
Sébastien d'Herbais de Thun
f39a8bc015
Add span information to realized ParElem
( #2675 )
2023-11-15 14:49:29 +01:00
Dimitri Kokkonis
897447e859
Translate local names to Greek ( #2684 )
...
Additionally, add support for single and double quotes in Greek.
2023-11-14 15:59:30 +01:00
frozolotl
67422e664b
Allow non-string contents for math operators ( #2663 )
2023-11-13 12:26:58 +01:00
frozolotl
97bb0fbce3
Fix bug where inline equations were displayed in the outline ( #2662 )
2023-11-13 12:04:34 +01:00
Sébastien d'Herbais de Thun
241a6d9e5a
Gradient Part 5b: Fix gradients in math ( #2604 )
2023-11-07 12:09:51 +01:00
Sébastien d'Herbais de Thun
c0f6d2004a
Content rework 2 - Electric Boogaloo ( #2504 )
2023-11-06 21:37:50 +01:00
Andrew Voynov
0f274f8edb
Fixed doc typo for math > cancel > angle ( #2535 )
2023-10-31 20:50:21 +01:00
Thomas Aldrian
866bd27d2e
Add csch
and sech
operators ( #2378 )
2023-10-25 17:12:11 +02:00
LU Jialin
f81a8d00e3
Refactor cancel
, now able to take absolute angle or functions ( #2466 )
2023-10-22 14:07:30 +02:00
SekoiaTree
3faad6bc5d
Add support for negative augment indexes ( #2372 )
2023-10-22 13:22:34 +02:00
tingerrr
372476323f
Add reverse
parameter to cases
( #2370 )
2023-10-17 11:48:46 +02:00
TheJosefOlsson
6dab95473b
Multinomial coefficients ( #2237 )
2023-10-09 13:46:16 +02:00
HydroH
b584617c8d
Add size:
argument for abs
, norm
, floor
, ceil
and round
( #2292 ) ( #2322 )
2023-10-06 17:13:38 +02:00
Sébastien d'Herbais de Thun
a4e357fb37
Gradient Part 2 - Linear gradients ( #2279 )
2023-10-03 19:31:02 +02:00
LU Jialin
34ebbaeb10
Passing color to the augment line in matrix ( #2281 )
2023-10-02 16:22:33 +02:00
DVDTSB
e84cd13ce7
initial Romanian support ( #2246 )
2023-09-28 11:15:45 +02:00
DVDTSB
34b3f72370
Add wide
spacing for math ( #2224 )
2023-09-26 10:29:43 +02:00
FlyinPancake
44bbfded5f
feat: inital Hungarian language support ( #2229 )
2023-09-25 13:52:26 +02:00
LU Jialin
04b4536772
Fixing the baseline in math content ( #2220 )
2023-09-25 13:13:16 +02:00
SekoiaTree
3dcbe859fb
Add gaps for matrix, case, and vector ( #2186 )
2023-09-21 10:26:47 +02:00