Commit Graph

1118 Commits

Author SHA1 Message Date
+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
Laurenz db9debca6d
Fix warning in proc macro (#5150) 2024-10-07 13:56:45 +00:00
Malo 142c9dff49
Refactor sub- and superscript substitution (#5120) 2024-10-07 10:57:20 +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
PgBiel 2a40eb518c
Fix excluded PDF pages being written (#5133) 2024-10-07 08:23:59 +00:00
Eric Biedert 82a2c3619a
Add exception for NewCM Math Bold (#5126) 2024-10-07 08:23:32 +00:00
Armin Brauns deb0308980
Fix "thumbnail" key in manifest files not being optional (#5122) 2024-10-07 08:22:59 +00:00
Eric Biedert 20ce48dc36
Fix panic for empty breakable block equations (#5116) 2024-10-07 08:13:09 +00:00
Laurenz 60f9f66950
Serialize and Deserialize for `PdfStandard` (#5108) 2024-10-03 19:40:42 +00:00
Laurenz 10eff1d6d5
Tweak default ignorable fix (#5105) 2024-10-03 16:16:44 +00:00
Laurenz 340b892d79
Update changelog (#5033) 2024-10-03 13:20:57 +00:00
Laurenz cbd251f474
Tweak docs (#5089) 2024-10-03 13:20:48 +00:00
Laurenz 0343e038d3
Fix default ignorables (#5099) 2024-10-03 13:00:58 +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 ae7787c820
Better return type for `download_index` (#5086) 2024-10-01 13:35:02 +00:00
Laurenz 3ec5d442d7
Fix panic in spilled block layout (#5085) 2024-10-01 13:32:02 +00:00
Laurenz 04df1264ef
Fix duration formatting precision (#5082) 2024-10-01 12:32:27 +00:00
Laurenz 9a71e7263d Improve region progression handling
Fixes #5044
2024-10-01 14:27:00 +02:00
Laurenz d03af848eb
Prevent double allocation due to `Content::sequence` (#5084) 2024-10-01 10:47:59 +00:00
Laurenz 63e6150ca1
Fix order of tags in text show rules matches (#5083) 2024-10-01 10:44:27 +00:00
emilylime f0ada7ba0c
Check that an output format is available before compiling (#5080) 2024-10-01 09:26:12 +00:00
Laurenz a0093ad8a7
Minimal PDF/A support (#5075)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-10-01 09:24:18 +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
emilylime 1a24b29d86
Remove `Case`s from NumberingPatterns (#5059) 2024-09-30 15:22:46 +00:00
Laurenz 7ff83db757
Change default font to Libertinus Serif (#4969) 2024-09-30 15:19:22 +00:00
Laurenz d94acd615e
Add internal URL type (#5074) 2024-09-30 12:45:44 +00:00
Laurenz 788ae10a07
PDF export diagnostics (#5073) 2024-09-30 12:43:29 +00:00
Aaron Manning d5b1bf314e
Fix reference documentation mathematical error (#5072) 2024-09-30 11:41:59 +00:00
PgBiel 0b151b866a
Revert return type change in floor, ceil, trunc, quo (#5064) 2024-09-30 07:55:34 +00:00
Martin Haug ada9650a06
Write the font name for Type 3 fonts (#5070) 2024-09-30 07:54:08 +00:00
Martin Haug 66147979ba
Do not write empty destination name tree root (#5066) 2024-09-30 07:53:23 +00:00
Malo 7262ef3c74
Fix a typo introduced in #5053 (#5055) 2024-09-27 15:30:48 +00:00
Malo 53135a0813
Implement symbol Proposal 21 (iteration 1) (#5053) 2024-09-27 13:10:34 +00:00
emilylime 2a1fbd4101
Fix numbering documentation (#5051) 2024-09-27 10:37:36 +00:00
Alex Rawson ba95baa7e1
Don't include "update" in help output if self-update disabled (#4940)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-27 08:52:52 +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
Laurenz 01af4308d3
Better block caching (#5046) 2024-09-27 08:24:59 +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
Malo 3c90878460
Miscellaneous `sym.rs` improvements (#5045) 2024-09-26 17:30:36 +00:00
ssotoen 584e4585f1
Add Unicode 16 emoji (#4935) 2024-09-26 14:57:50 +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
Dmytro Kravchenko-Loznia cf35c2f44c
Clarify the path argument of the image element (#4892)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Co-authored-by: Martin Haug <mhaug@live.de>
2024-09-26 14:07:39 +00:00
Jeremie Knuesel d1379d8bd9
Clarify place documentation (#5031) 2024-09-26 13:17:28 +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
Sébastien d'Herbais de Thun 8d38bd4066
Single thread support (#4988) 2024-09-26 09:02:44 +00:00
Eric Biedert 59d65bbdc0
Fix spacing after bibliography heading (#4964) 2024-09-26 09:01:36 +00:00
Sébastien d'Herbais de Thun a5b506c424
Make `jump_from_cursor` return a vector of `Position` (#4886) 2024-09-26 08:53:31 +00:00
ClementMabileau 57895ad725
Fix example in table.rs (#5035) 2024-09-26 08:40:40 +00:00
Jeremie Knuesel 85b45435e0
Fix two doc typos (#5032) 2024-09-26 08:40:29 +00:00
+merlan #flirora 30a301f8ff
`CellGrid::resolve`: Clarify comment about `resolve_breakable` (#5010) 2024-09-26 08:39:52 +00:00
Max 79558f44a0
Clarify syntactical difference in `label` function docs (#4957) 2024-09-26 08:39:39 +00:00
Laurenz e25389a85e
New flow layout, with multi-column floats (#5017) 2024-09-25 08:26:41 +00:00
Bruce Mitchener f283995c3d
Reduce typo count. (#4923) 2024-09-22 12:14:56 +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
Laurenz 0abd46c379
More robust ratio computation (#4976) 2024-09-17 12:11:57 +00:00
Laurenz c145e05f01
Fix bad bound in forcibly overflowing optimal paragraph layout (#4975) 2024-09-17 11:56:23 +00:00
Laurenz ea145ff33b
Do not surface warnings from non-last layout iterations (#4970) 2024-09-16 16:17:24 +00:00
Malo d48293f1c6
Add `copyleft`, `trademark`, and `registered` symbols (#4883) 2024-09-14 10:40:17 +00:00
Laurenz a2f91c4bc6
Extract page layout from flow layout (#4937) 2024-09-11 16:46:33 +00:00
Laurenz Stampfl 8501a65566
Add warning when SVG with foreign object is included (#4932)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-10 17:18:40 +00:00
Andrew Voynov ac982f5856
Unified and fixed `Duration` formatting in the CLI (#4587)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-09-10 13:49:37 +00:00
Laurenz a82256c585
Flow collection phase (#4931) 2024-09-10 13:47:22 +00:00
Yip Coekjan 40fcd97d58
Make `QuoteElem` locatable (#4909) 2024-09-08 08:29:58 +00:00
inferiorhumanorgans 4cddb48584
Fix a few doc typos. (#4914)
Co-authored-by: Alex Zepeda <srht@inferiorhumanorgans.com>
2024-09-08 08:28:49 +00:00
Jacob Garm 8a8c4cec77
Fix typo in `block.clip` documentation (#4895) 2024-09-04 11:11:25 +00:00
Nixon 4fda03abdc
Animation-friendly export (#4822) 2024-09-03 12:05:20 +00:00
Laurenz cfde809feb
New realization / Text show rules now work across elements (#4876) 2024-09-02 18:43:59 +00:00
Malo 9fd796e0e2
Add `at` method to `arguments` (#4864) 2024-09-02 16:22:43 +00:00
Sébastien d'Herbais de Thun 1ccfaba88e
Better hint for non-zero em length (#4873)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-02 13:33:43 +00:00
Sébastien d'Herbais de Thun 1997db00f3
Parenthesized imports (#4869)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-02 13:27:33 +00:00
Sébastien d'Herbais de Thun ecad396cc8
Nuked custom PDF Oklab colorspace code (#4871) 2024-09-02 13:16:33 +00:00
Florent Michel 51df7aee76
Add Devanagari numbering (#4850) 2024-09-02 13:12:57 +00:00
Max c644dce81b
Add warnings when labels are ignored or unattached (#4783) 2024-09-02 12:58:33 +00:00
Daniel Fleischer a2628ac970
Hebrew Translation + Smart Quotes (#4842)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-02 12:56:19 +00:00
Bzero 95740ac2ab
Add a skew function (#4803) 2024-09-02 12:56:08 +00:00
tingerrr 799eb8004e
Improve unknown variable diagnostics (#4858) 2024-09-02 12:45:50 +00:00
Sébastien d'Herbais de Thun 39b47060cc
Added example to `box.clip` & `block.clip` (#4870) 2024-09-02 12:43:07 +00:00
ssotoen 89521c2066
Add two-em and three-em dash symbols (#4874) 2024-09-02 12:39:44 +00:00
PgBiel e6cdcc53f3
Line numbers (#4516) 2024-08-29 14:32:18 +00:00
Laurenz ef4482ce4b
Better smartquotes (#4849) 2024-08-28 08:21:21 +00:00
Laurenz 4e4c5175e5
Merge the two realization functions (#4852) 2024-08-27 23:50:45 +00:00
Laurenz b5ef9244eb
Bump dependencies (#4846) 2024-08-27 09:56:19 +00:00
Laurenz 92f2c7b470
Refactor depth checks and apply them in math (#4845) 2024-08-27 08:43:12 +00:00
Laurenz 4365e18454
Improve realization and page layout (#4840) 2024-08-26 17:17:58 +00:00
Malo cb98eec609
Add more `angle` symbol variants (#4827) 2024-08-26 17:10:00 +00:00
Max 373163dba4
Implement math kerning and fix various `math.attach` bugs (#4762) 2024-08-26 17:04:02 +00:00
Malo c38d01e4c5
Add new variants to `parallel` symbol (#4834) 2024-08-26 17:03:52 +00:00
Malo 307b8a5c72
Add more `emptyset`/`nothing` symbol variants (#4826) 2024-08-26 16:39:10 +00:00
Malo c57593c94c
Add checkmark ballot symbols (#4825) 2024-08-26 16:18:34 +00:00
Malo 3d980fe4a3
Add miscellaneous symbols from Miscellaneous Mathematical Symbols-B (#4831) 2024-08-26 16:17:33 +00:00
Malo cd62a19344
Add U-shaped arrows (#4807) 2024-08-26 15:59:50 +00:00
Eric Biedert 326fd33801
Don't number empty regions of broken block equations (#4836) 2024-08-26 15:26:50 +00:00
Malo d926e8c17d
Add double parentheses, braces and shell variants (#4830) 2024-08-26 15:25:17 +00:00
Max 0b31f6039f
Fix nested attachments when the base in `math.attach` has attachments (#4832) 2024-08-26 14:49:24 +00:00
Max 77b6c8481f
Add back release targets `aarch64-pc-windows-msvc` and `riscv64gc-unknown-linux-gnu` (#4821) 2024-08-26 13:39:39 +00:00
Yip Coekjan b85217ef14
Improve documents for the `--font-path` arg & `TYPST_FONT_PATHS` env (#4776)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-26 13:37:21 +00:00
Yip Coekjan 88325d7d01
Add `clap::ValueHint` for input & output CLI arguments (#4765) 2024-08-23 21:37:03 +00:00
Baldur Kristinsson 4dc2034eee
Add Icelandic translation (#4799) 2024-08-22 10:48:49 +00:00
PgBiel 238f1fad49
Fix docstring in package manifest code (#4801) 2024-08-22 10:38:54 +00:00
Andrew Voynov 0facb75e6d
Fixed typo in docs for `ProgressSink` (#4785) 2024-08-20 15:12:22 +00:00
Max cefca7a7d8
Fix typos (#4784) 2024-08-20 15:12:12 +00:00
Laurenz 986d624b3a
Share allocations for singletons (#4794) 2024-08-20 10:56:54 +00:00
Laurenz a30b681251
Move columns handling directly into `FlowLayouter` (#4792) 2024-08-19 15:06:59 +00:00
Laurenz eb0e0fec00
Split behaved building and StyleVec building (#4782) 2024-08-18 10:22:23 +00:00
Laurenz 2ba59e8c5f
Move column layout into flow (#4774) 2024-08-16 15:22:47 +00:00
Laurenz b0687198b1
Consolidate flow layout (#4772) 2024-08-16 14:00:25 +00:00
Laurenz d97d71948e
Fix document set rules (#4768) 2024-08-16 10:53:12 +00:00
Laurenz feb0c91395
Move paragraph widow and orphan prevention into flow (#4767) 2024-08-16 09:18:45 +00:00
Eric Biedert 4853726e5b
Add `gap` and `justify` parameters to `repeat` (#4644)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-15 20:21:42 +00:00
Leedehai d221a89a40
Adjust the baseline of root radicand frame (#4736) 2024-08-15 20:08:40 +00:00
Malo c43997de0a
Move `calc.nan` to `float.nan` and add `float.inf` (#4733) 2024-08-15 20:04:50 +00:00
Lingkang 0edd8ec93d
Improve `repr` for `type(none)` and `type(auto)` (#4730)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-15 19:53:59 +00:00
Yip Coekjan ccd4524106
Fix lexer on sth followed by comments (#4739) 2024-08-15 19:53:15 +00:00
Laurenz 351bac8b68
Turn `repeat` into a single layouter (#4758) 2024-08-15 14:00:15 +00:00
ssotoen d84a7e423b
Document exact sizes of mathematical spaces (#4738) 2024-08-12 11:37:55 +00:00
Yip Coekjan 3dbaf3a4ca
Check cyclic-import when importing package (#4737) 2024-08-12 08:16:56 +00:00
Malo 324c937dcd
Improve documentation for `float` and `int` types (#4725) 2024-08-12 08:12:06 +00:00
Malo 79fb2c3689
Fix `calc.inf`, `-calc.inf`, and `calc.nan` reprs and displays (#4724) 2024-08-11 20:18:57 +00:00
Florent Michel 70931ac1f6
Fix crash when local package is missing and make OpenSSL optional in typst-kit (#4720) 2024-08-11 20:16:40 +00:00
Jakob Peters d06f3f180c
Implement math mode language for `raw` (#4687) 2024-08-11 20:15:30 +00:00
Laurenz 831062a588
Fix system font loading (#4714) 2024-08-09 14:44:18 +00:00
Max b07607d35e
Split shorthands into math and markup, add tilde shorthand (#4706) 2024-08-09 07:41:01 +00:00
Max a6a8cdaa28
Make under/overlines behave the same as accents in attach base (#4695) 2024-08-09 07:40:29 +00:00
+merlan #flirora a88899ed75
Bail out of reparse in `expr_with_paren` if we land on a different char (#4577) 2024-08-08 16:06:22 +00:00
Laurenz cd02ae709f
Move roadmap and community pages out of this repository (#4688) 2024-08-06 08:37:15 +00:00
+merlan #flirora 6856d5e672
Support multiple stylistic sets in text (#4685) 2024-08-05 19:19:56 +00:00
Eric Biedert 18ce3f111d
Automatically get footnote numbering in counter display (#4686) 2024-08-05 19:03:45 +00:00
tingerrr 672f6e5f97
Add typst-kit crate (#4540) 2024-08-05 18:49:02 +00:00
mkorje 810491c9d3
Add missing under/over-delimiters (#4637) 2024-08-05 11:28:17 +00:00
Johann Birnick 211b546e4e
Fixes counter stepping behavior (#4631)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-05 11:02:04 +00:00
Laurenz 9909f12d4f
Bump to Rust 1.80 (#4681) 2024-08-05 10:54:30 +00:00
Malo 6fbba6d73f
Better document numbering functions (#4648) 2024-08-05 10:43:15 +00:00
Eric Biedert ed247797ac
Fix alignment of gradients and patterns on strokes in PNG (#4634) 2024-08-05 10:24:22 +00:00
Johann Birnick 51102da926
Fixed docs typo (#4628) 2024-08-05 10:04:49 +00:00
Leedehai 1f81281118
Fix the show rule effect for bibliography heading level (#4622) 2024-08-05 10:04:35 +00:00
Leedehai d06a26e3d8
Export `ty` and `scope` macros before mod decls to sidestep a rust-analyzer issue (#4619) 2024-08-05 10:03:23 +00:00
Leedehai 5e187a5d05
Add font exceptions for Kaiti SC and Kaiti TC (#4616) 2024-08-05 10:02:48 +00:00