Commit Graph

1615 Commits

Author SHA1 Message Date
Eric Biedert 51020fcf3c
Get numbering of page counter from style chain (#5589) 2024-12-16 20:23:13 +00:00
Malo 8b1e0d3a23
Improve `symbol` `repr` (#5505) 2024-12-16 14:10:42 +00:00
+merlan #flirora d3620df4c6
Add reversed numbering (#5563) 2024-12-16 13:45:57 +00:00
Laurenz 521ceae889
Fix crash due to consecutive weak spacing (#5562) 2024-12-11 15:46:10 +00:00
Ian Wrzesinski 5e0e58d26e
Add number-syntax edge case tests (#5560) 2024-12-11 11:33:59 +00:00
Ian Wrzesinski ef4fc040b2
Improve raw trimming (#5541) 2024-12-11 11:31:04 +00:00
wznmickey bb0c814095
Forbid base prefix for numbers with a unit (#5548)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-09 10:56:42 +00:00
PgBiel c2cc09e71a
Forbid footnote migration in pending floats (#5497)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-09 09:55:58 +00:00
+merlan #flirora 73dd5a085e
Fix sizing of quadratic shapes (square/circle) (#5451)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-12-09 09:33:30 +00:00
Laurenz 4729d3d3bd
Fix language-dependant figure caption separator in outline (#5550) 2024-12-08 18:36:04 +00:00
Max 468a60103d
Fix multiline annotations in over- elems in math changing the baseline (#5459) 2024-12-08 16:55:34 +00:00
PgBiel 62567fc91e
Fix multiple footnotes in footnote entry (#5545) 2024-12-08 16:35:54 +00:00
Ian Wrzesinski e6de044b1d
Add test for issue #4573 (#5542) 2024-12-08 16:29:49 +00:00
PgBiel a1a5215234
Ensure par and align interrupt cite groups and lists (#5526) 2024-12-08 16:25:47 +00:00
Ian Wrzesinski 50dcacea9a
Convert unopened square-brackets into a hard error (#5414) 2024-12-08 16:23:14 +00:00
PgBiel 884c02872c
Fix text fill within `clip: true` blocks in PNG export (#5502) 2024-12-04 10:00:04 +00:00
Laurenz e0122a5b50 Add HTML export format 2024-12-04 10:12:07 +01:00
Laurenz f8f2ba6a5f Rename `Document` to `PagedDocument` 2024-12-04 10:12:07 +01:00
+merlan #flirora 89d96c623d
Let decimal constructor accept decimal values (#5481) 2024-11-27 16:36:04 +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
+merlan #flirora 6bf1350b16
Add support for interpreting f32 in float.{from-bytes, to-bytes} (#5480) 2024-11-27 11:04:54 +00:00
Sébastien d'Herbais de Thun 85d3a49a1a
Added warning when explicit return in code (not markup) discards joined content (#5413)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-11-26 20:51:46 +00:00
Max 8fe8b2a239
Ignore leading and trailing ignorant fragments in `math.lr` (#5473) 2024-11-26 20:51:22 +00:00
Max 39e41ba3c6
Fix `path` with infinite length causing panic (#5457) 2024-11-26 12:39:00 +00:00
Max fd5e642fb4
Tags shouldn't affect row height in equations (#5458) 2024-11-26 12:37:53 +00:00
Max 6d35972c3d
Update NewCM fonts to version 7.0.0 (#5465) 2024-11-26 12:36:53 +00:00
Malo 5c37a1cfea
Use `codex` for symbols (#5421) 2024-11-17 19:08:23 +00:00
Ian Wrzesinski 5672cc2a29
Update list/enum tests and recognize #762 as already closed (#5433) 2024-11-17 09:18:44 +00:00
wznmickey cce744cf78
Fix unnecessary hyphenation (#5394) 2024-11-17 09:04:07 +00:00
Max 8d4f01d284
Add support for page references through new `ref.form` property (#4729) 2024-11-12 12:54:25 +00:00
Andrew Voynov cb8eaddf98
Removed deprecated `diff` symbol (#5388) 2024-11-12 12:44:45 +00:00
wznmickey ada30cd5b1
Fix unstoppable empty footnote loop (#5354) (#5364) 2024-11-05 08:27:25 +00:00
Sébastien d'Herbais de Thun 692d846d25
Disable justification in `raw(block: true, ...)` (#4889)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-11-04 09:37:29 +00:00
Laurenz cb1aad3a0c
Refactor Parser (#5310) 2024-11-04 10:17:49 +01:00
Ian Wrzesinski 2c9728f53b 18. Restore list indent behavior 2024-11-03 22:04:06 -05:00
Ian Wrzesinski 9d9a1b1e33 17. Replace while loop closures and Parser::end() to use SyntaxSet 2024-11-03 20:28:49 -05:00
Ian Wrzesinski 26c61be1dc 15. Convert Markup mode to use newline modes
(And break out Newline info into separate struct)
2024-11-03 20:28:49 -05:00
Ian Wrzesinski a70b8a56ef
Disallow space between ident and paren in set rule (#5269) 2024-11-01 09:45:08 +00:00
LU Jialin 23313b0af0
Support Greek Numbering (#4273)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-11-01 09:20:10 +00:00
Ian Wrzesinski 88d86714a1 9. Parse math field access in the lexer 2024-10-31 18:26:12 -04:00
Ian Wrzesinski a2761ab75a 2. Allow compiling test-runner with only typst_syntax 2024-10-31 18:26:12 -04:00
Ian Wrzesinski da83f33c4c 1. Add test-runner option to compare parser output 2024-10-31 18:26:12 -04:00
HydroH 066e9349f9
Add `calc.norm()` function to compute euclidean norms (#4581)
Co-authored-by: +merlan #flirora <uruwi@protonmail.com>
Co-authored-by: Yip Coekjan <69834864+Coekjan@users.noreply.github.com>
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 12:41:50 +00:00
Abdul-Rahman Sibahi b969c01b28
Replace `once_cell`'s `Lazy` as much as possible (#4617)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 11:52:11 +00:00
Max f85faf957f
Add `math.accent` support for `flac` and `dtls` OpenType features (#5202) 2024-10-30 15:29:15 +00:00
Kevin K. 33a035ee0d
Fix wrong Greek and Ukrainian language codes (#5261)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:42:25 +00:00
Eric Biedert 45377f25ec
Fix clipping with outset (#5295)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:31:00 +00:00
Laurenz be7cfc85d0
Split out four new crates (#5302) 2024-10-27 18:04:55 +00:00
Ian Wrzesinski b8034a3438
Syntax set macro (#5138)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-22 13:25:52 +00:00
Laurenz 711a2d8807
Fix optimized linebreaks without justification (#5236) 2024-10-18 13:10:22 +00:00
PgBiel 382787d799
(Re-)implement rounding with negative digits (#5198)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-14 16:14:06 +00:00
Laurenz 03a766444a
Put floats back above footnotes instead of below (#5204) 2024-10-14 15:36:29 +00:00
Laurenz 6a8e29b2e5
Fix tag order with `place` and fr block bugs (#5203) 2024-10-14 14:18:25 +00:00
Laurenz 8b6f7298e3
Fix outline with CJK text (#5187) 2024-10-12 12:01:34 +00:00
Laurenz 61d461f080
Refactor and fix bounds metric (#5186) 2024-10-12 12:01:32 +00:00
Laurenz bb0e089474
Fix logical ordering of floats and footnotes (#5185) 2024-10-12 12:01:31 +00:00
PgBiel 16736feb13
Fix hashing of equal decimals with different scales (#5179)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-11 08:19:58 +00:00
Max b5b92e21e9
Fix bug in `math.frac` layout code (#5177) 2024-10-10 15:52:55 +00:00
Laurenz 92aacdb480
Fix scales for unit conversion (#5169) 2024-10-10 15:51:48 +00:00
Eric Biedert f1f2de889a
Resolve lengths in math with scaled font size (#5168) 2024-10-10 12:03:11 +00:00
Laurenz 9ee80762a5
Disable line numbers for block equations (#5163) 2024-10-08 15:58:05 +00:00
Laurenz b7725a7442
Allow unbreakable multi-layouters to expand (#5162) 2024-10-08 15:55:44 +00:00
Laurenz fc5858c982
Allow sticky blocks to be breakable (#5161) 2024-10-08 13:13:14 +00:00
Yip Coekjan 7a96c86487
Fix smartquotes after inline equations (#5149) 2024-10-08 08:37:11 +00:00
+merlan #flirora 037c0c8216
Fix hint for destructuring to an array with at least 1 element (#5154) 2024-10-07 19:28:30 +00:00
Laurenz 1d2a222818
Error for parent-scoped figures without placement (#5151) 2024-10-07 14:13:24 +00:00
Orange bb39d8f10a
Improve hint when provided array for destructuring has fewer elements than expected (#5139)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-07 09:59:49 +00:00
Eric Biedert 82a2c3619a
Add exception for NewCM Math Bold (#5126) 2024-10-07 08:23:32 +00:00
Eric Biedert 20ce48dc36
Fix panic for empty breakable block equations (#5116) 2024-10-07 08:13:09 +00:00
Laurenz cbd251f474
Tweak docs (#5089) 2024-10-03 13:20:48 +00:00
Martin Haug f6406ed901
Update Hayagriva (#5088) 2024-10-02 15:53:23 +00:00
Laurenz fcdccc9cba
Fix textual grouping (#5097) 2024-10-02 11:51:09 +00:00
PgBiel b791aede82
Adjust line number clearance (#5093)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-02 10:17:36 +00:00
Laurenz 3ec5d442d7
Fix panic in spilled block layout (#5085) 2024-10-01 13:32:02 +00:00
Laurenz 9a71e7263d Improve region progression handling
Fixes #5044
2024-10-01 14:27:00 +02:00
Laurenz 63e6150ca1
Fix order of tags in text show rules matches (#5083) 2024-10-01 10:44:27 +00:00
Max 8eee3ec8d1
Fix breakable block equation overflow (#5078) 2024-10-01 08:01:28 +00:00
Laurenz 4ef1096ad9
Hint for `show par: set block(spacing: ..)` (#5076) 2024-10-01 07:59:43 +00:00
Max 75f646c975
Fix `math.stretch` not working vertically with attachments (#5069) 2024-10-01 07:59:31 +00:00
Laurenz 7ff83db757
Change default font to Libertinus Serif (#4969) 2024-09-30 15:19:22 +00:00
Laurenz 788ae10a07
PDF export diagnostics (#5073) 2024-09-30 12:43:29 +00:00
PgBiel 0b151b866a
Revert return type change in floor, ceil, trunc, quo (#5064) 2024-09-30 07:55:34 +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
nz366 ab67eee2d4
Add Bengali-Letter Numbering (#5048) 2024-09-27 08:29:48 +00:00
Max efc6b710bc
Update NewCM fonts to version 6.0.0 (#5005) 2024-09-27 08:17:53 +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
nz366 820750ce21
Add Bengali Numerals (#4997)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-26 14:47: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
PgBiel 320c28844f
Fixed-point decimal type (#4900)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-26 11:39:37 +00:00
Jeremie Knuesel a69ada7889
Rename place scope "page" to "parent" (#5027) 2024-09-26 09:15:31 +00:00
Tim Voßhenrich 5823429a96
Add float to bytes conversion and vice-versa (#4989)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-26 09:14:45 +00:00
Jeremie Knuesel 4827f28a94
Fix smartquotes for Swiss French (#4992) 2024-09-26 09:09:32 +00:00
Eric Biedert 59d65bbdc0
Fix spacing after bibliography heading (#4964) 2024-09-26 09:01:36 +00:00
Josh Soref 7d2142be0a
Connect maximum size with Updating reference images (#5022) 2024-09-26 08:40:15 +00:00
Laurenz e25389a85e
New flow layout, with multi-column floats (#5017) 2024-09-25 08:26:41 +00:00
Laurenz 92ec566018
Fix tags at the start of paragraphs (#4978)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-09-17 15:54:15 +00:00
Laurenz ab8295c07d
Fix repetition of Thai characters (#4977)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-09-17 15:35:56 +00:00