mkorje
333dfd505c
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-08 21:05:37 +10:00
mkorje
ba3f525624
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-08 21:03:06 +10:00
mkorje
08f1d93f9e
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-08 21:00:31 +10:00
Laurenz
0a3c6939dd
Rewrite foundations of native elements ( #6547 )
2025-07-08 08:52:43 +00:00
Malo
09c831d3b3
Use "subs" and "sups" font features for typographic scripts ( #5777 )
2025-07-02 08:00:45 +00:00
Max
74b1b10986
Bump typst-dev-assets
( #6514 )
2025-06-27 10:35:05 +00:00
+merlan #flirora
584dd5fec6
Fix panic when sampling across two coincident gradient stops ( #6166 )
2025-06-27 09:26:15 +00:00
+merlan #flirora
b9f3a95e03
Sort line items by logical order when constructing frame ( #5887 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-27 08:36:46 +00:00
Laurenz
9311f6f08e
Basic support for text decoration functions in HTML ( #6510 )
2025-06-26 13:44:45 +00:00
Laurenz
7420ec972f
Fix nested HTML frames ( #6509 )
2025-06-26 13:20:22 +00:00
Said A.
5dd5771df0
Disallow empty labels and references ( #5776 ) ( #6332 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-26 09:18:51 +00:00
Malo
04fd0acaca
Allow deprecating symbol variants ( #6441 )
2025-06-26 08:24:21 +00:00
Laurenz
35809387f8
Support in
operator on strings and modules ( #6498 )
2025-06-26 08:06:22 +00:00
Laurenz
f2f527c451
Also fix encoding of <textarea>
( #6497 )
2025-06-24 15:52:15 +00:00
Wannes Malfait
38dd6da237
Fix stroke cap of shapes with partial stroke ( #5688 )
2025-06-23 14:58:04 +00:00
Laurenz
bf8ef2a4a5
Properly handle raw text elements
2025-06-23 15:59:22 +02:00
Laurenz
f8dc1ad3bd
Handle pre elements that start with a newline
2025-06-23 15:56:01 +02:00
Laurenz
9050ee1639
Turn non-empty void element into export error
2025-06-23 14:22:09 +02:00
Laurenz
c1b2aee1a9
Test runner support for HTML export errors
2025-06-23 14:21:35 +02:00
Laurenz
e9dc4bb204
Typed HTML API ( #6476 )
2025-06-23 09:12:58 +00:00
Laurenz
d821633f50
Generic casting for Axes<T>
2025-06-20 17:32:37 +02:00
Laurenz
0bc68df2a9
Hint for label in both document and bibliography ( #6457 )
2025-06-19 07:29:38 +00:00
cAttte
4a638f41cd
Consume data
argument in pdf.embed()
( #6435 )
2025-06-12 14:10:04 +00:00
Lachlan Kermode
1f5846ce24
Render #super
as <sup>
, #sub
as <sub>
in HTML ( #6422 )
2025-06-11 14:07:25 +00:00
T0mstone
d7e0c52dd5
Use codex::ModifierSet
( #6159 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-11 13:28:03 +00:00
Tobias Schmitz
d1c7757da8
Fix panic when test source is not found in world ( #6428 )
2025-06-11 10:19:41 +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
Laurenz
98034903e4
Adjust source file API surface ( #6423 )
2025-06-10 18:13:33 +00:00
Andrew Voynov
a6ab6ac99a
Specify which CSL style is not suitable for bibliographies ( #6306 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-10 17:59:06 +00:00
Max
44d410dd00
Use the shaper in math ( #6336 )
2025-06-10 14:44:38 +00:00
PgBiel
7c7b962b98
Table multiple headers and subheaders ( #6168 )
2025-06-10 14:41:16 +00:00
Tobias Schmitz
a18ca3481d
Report errors in external files ( #6308 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-10 12:46:27 +00:00
Ian Wrzesinski
82da96ed95
Improve number lexing ( #5969 )
2025-06-10 09:11:27 +00:00
PgBiel
6725061841
Pin colspan and rowspan for blank cells ( #6401 )
2025-06-09 13:46:29 +00:00
Sam Ireson
494e6a6422
Numbering implementation refactor ( #6122 )
2025-06-04 13:31:06 +00:00
Max
aee99408e1
Apply short fall consistently in math when stretching ( #6377 )
2025-06-04 10:14:24 +00:00
Linus Unnebäck
1de2095f67
Add support for WebP images ( #6311 )
2025-06-04 09:54:03 +00:00
Max
128c40d839
Apply script-style to numbers consistently in math ( #6320 )
2025-06-04 08:20:54 +00:00
Nazar Serhiichuk
4a8367e90a
Fix Ukrainian secondary smart quotes ( #6372 )
2025-06-04 08:13:39 +00:00
Andrew Voynov
f7f163a8fa
Change Russian secondary smart quotes & remove alternatives ( #6331 )
2025-06-03 14:42:22 +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
frozolotl
300a782451
Always run tests from workspace directory ( #6307 )
2025-05-20 13:54:49 +00:00
Tobias Schmitz
91cadbf307
Underline file path of failed test ( #6281 )
2025-05-20 12:57:19 +00:00
Tobias Schmitz
d204a28818
Expand text link boxes vertically by half the leading spacing ( #6252 )
2025-05-12 18:12:35 +00:00
Tobias Schmitz
22a117a091
Prohibit some line break opportunities between LTR-ISOLATE and OBJECT-REPLACEMENT-CHARACTER ( #6251 )
...
Co-authored-by: Max <max@mkor.je>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-05-12 09:16:38 +00:00
Tobias Schmitz
54c5113a83
Catch indefinite loop in realization due to cycle between show and grouping rule ( #6259 )
2025-05-12 08:06:18 +00:00
Tobias Schmitz
9b09146a6b
Use list spacing for attach spacing in tight lists ( #6242 )
2025-05-06 14:03:48 +00:00