Commit Graph

796 Commits

Author SHA1 Message Date
Laurenz e874e2ea64
Fix link in metadata docs (#4146) 2024-05-16 12:20:29 +00:00
Gabriel Araújo 017f2f4566
Fix hyphen duplication rule for some languages (#4058) 2024-05-15 13:42:13 +00:00
Leedehai 484a0e60d8
`show math.equation: set align(..)` shall not break alignment points (#4094) 2024-05-15 07:48:35 +00:00
Laurenz 2d32ac73b6
Replace all `Prehashed` with `LazyHash` (#4127) 2024-05-13 17:54:34 +00:00
Laurenz 95cd6adf24
Factor out `typst-utils` crate (#4125) 2024-05-13 15:25:43 +00:00
bluebear94 7b656b3deb
Revise docs for `place` element (#4105) 2024-05-13 12:14:07 +00:00
John Skottis e8ee15277d
Add crossmark symbol sym.rs (#4113) 2024-05-13 10:05:39 +00:00
bluebear94 d859218b90
Layout API docs (#4103) 2024-05-13 09:06:21 +00:00
PepinhoJp 36040d93ef
Refactor grid/layout.rs (#4100) 2024-05-13 08:37:06 +00:00
PgBiel 7905de67bc
Add parameter to select pages to be exported by CLI (#4039) 2024-05-10 14:47:02 +00:00
Laurenz 4bca472210
Produce location variants more efficiently (#4096) 2024-05-08 10:54:58 +00:00
Laurenz 560791afe8
Fix footnote migration (#4095) 2024-05-08 09:31:28 +00:00
Yip Coekjan cf393f97dc
Rename existing symbols (`≽`, `⋡`, `≼`, `⋠`), add new symbols (`⪰`, `⪲`, `⪯`, `⪱`), remove all `{lt,gt}.curly*` symbols for consistency (#4059) 2024-05-07 16:49:40 +00:00
Leedehai cbb01fc81a
Make more characters stretchable by mid() (#4092) 2024-05-07 14:08:42 +00:00
Leedehai aa38b96849
Fix: `number-align` should align line/number baselines (#4024) 2024-05-07 13:46:18 +00:00
Anton Gusev c0576c6b55
Add shorthands for symbols U+22B6 (Original Of) and U+22B7 (Image Of) (#4083) 2024-05-07 13:22:09 +00:00
Laurenz 01b791da83
Add region to `TextItem` (#4091) 2024-05-07 13:20:30 +00:00
Laurenz 96b04a7e1a
Add `LazyHash` to frame (#4090) 2024-05-07 13:18:51 +00:00
Leedehai 182508658d
Fix comments swapped by mistake, and other nits (#4055) 2024-05-07 10:04:46 +00:00
Tulio Martins c49c0955be
Refactor typst-svg (#4074) 2024-05-07 09:55:59 +00:00
LuizAugustoPapa c9e91d4cf1
Refactor typst-render (#4068) 2024-05-07 09:55:38 +00:00
bluebear94 2f390c5317
Add `auto` option for page headers/footers (#4051)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-06 15:23:32 +00:00
HaeNoe 6d0c159e97
Indent configuration for multiline headings (#3459) 2024-05-06 15:21:35 +00:00
bluebear94 102e6717e8
Transpose `Option` and `Smart` (#4052) 2024-05-06 14:11:38 +00:00
Wenzhuo Liu f120932bcd
Add support for circled number numbering (#4049) 2024-05-06 14:09:35 +00:00
T0mstone c4c53ab52e
Add `exact` argument to `array.zip` (#4030) 2024-05-06 14:02:27 +00:00
Myriad-Dreamin 329b0f9b8d
Slice the before_window at char boundaries (#4028)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-06 14:00:51 +00:00
Andrew Voynov b302ecc1e8
Added a couple of examples and `fill: none` support for `highlight()` (#3668) 2024-05-06 13:00:26 +00:00
Yip Coekjan 556979c83b
Change `smallcaps` into an element function (#3981)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-06 12:57:16 +00:00
Ana Gelez 061319425b
Handle RTL text correctly in TextItemView (#4060)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-06 12:30:41 +00:00
bluebear94 d27414937a
Add support for Eastern Arabic numerals (#4036) 2024-05-01 08:07:45 +00:00
Laurenz 2c678e8228
Fix variable name (#4042) 2024-04-30 13:55:45 +00:00
PgBiel 1247c6d8e1
Add `std` module for names in the standard library (#4038) 2024-04-30 12:49:18 +00:00
Leedehai 44bc51ba4f
Let let-binding raise error on unexpected keywords (#4034) 2024-04-30 12:30:38 +00:00
3w36zj6 eac2200c97
Add the list of built-in fonts in the documentation (#4026) 2024-04-30 12:24:38 +00:00
hardlydearly 6ba94c4518
Remove repetitive words (#3991)
Signed-off-by: hardlydearly <799511800@qq.com>
2024-04-30 12:22:59 +00:00
QuarticCat 9f8cb27aef
Fix suffix computation for Source::replace (#3989) 2024-04-30 12:22:38 +00:00
Malo c8cc252a45
Add keywords for `emph` and `strong` functions (#3980) 2024-04-30 12:22:20 +00:00
Leedehai 6e73406244
Fix the Chinese translation for 'equation' used as a supplement (#3964) 2024-04-30 12:21:58 +00:00
JustForFun88 d7838ab128
Add `reduce` method to `array` (#3911) 2024-04-30 12:21:40 +00:00
Matt Fellenz 97de0a0595
Various text layout config improvements (#3787) 2024-04-30 12:18:19 +00:00
Ana Gelez 0bb45b335f
Fix subset tag for color fonts (#3960) 2024-04-19 14:33:49 +00:00
Karthik Nishanth b9457421de
CLI: Support more page number templates in output file name (#3933) 2024-04-19 14:32:06 +00:00
Ian Wrzesinski 45245f0695
Fix empty 2-d math args with whitespace/trivia (#3786)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-04-19 14:31:45 +00:00
Heinenen d65d9d0fe6
Localization with custom key-value format (#3728) 2024-04-19 14:26:49 +00:00
Malo c5c73ec931
Fix compiler panic on stack with infinite spacing (#3918) 2024-04-18 12:20:05 +00:00
Laurenz 02285e8b1f
Fix path in sized container (#3954) 2024-04-18 09:33:36 +00:00
Rik Huijzer 4c8a8f122a
Fix header query example (#3903)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-04-17 15:35:13 +00:00
Niklas Mohrin 0523f22d83
Warn about unknown font families during parsing (#3854) 2024-04-17 15:25:16 +00:00
Ana Gelez 21c78abd6e
Emojis in PDF (#3853) 2024-04-17 15:11:20 +00:00
unclebean 4c99d6c8b3
Add datetime duration example in datetime document #3178 (#3931)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-04-16 12:05:07 +00:00
Laurenz 401ba82927
Make some changes that were deferred until after 0.11 (#3934) 2024-04-15 09:00:48 +00:00
Rik Huijzer f25874640e
Mention `typst fonts` for `font` parameter (#3919) 2024-04-13 08:48:07 +00:00
Laurenz 020294fca9
Better test runner (#3922) 2024-04-13 08:39:45 +00:00
Matthew Toohey 72dd792106
Add --make-deps CLI argument (#2877) (#3890) 2024-04-09 11:50:41 +00:00
A-Walrus 847b710480
Fix raw bidi text (#3885) 2024-04-09 11:49:38 +00:00
Rik Huijzer 7ea55ec9a0
Document how to import func (#3889)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-04-09 08:31:31 +00:00
frozolotl 2663f42442
Rename `turtle` to `shell` (#3870) 2024-04-08 10:39:11 +00:00
frozolotl 36dcabe692
Fix gradient sample example (#3868) 2024-04-08 10:36:36 +00:00
Leedehai 9289d9334b
SyntaxKind::Eof => SyntaxKind::End to better express its usage (#3872) 2024-04-08 10:21:06 +00:00
José Lopes 351cf127f2
Fix missing blackboard bold letters (#3759) 2024-04-08 08:46:31 +00:00
Tomás Cruz 5de36f7b97
Deformed stroke for some length values fix (#3860) 2024-04-06 11:21:38 +00:00
frozolotl ffc9570c64
Remove SOURCE_DATE_EPOCH CLI argument (#3859) 2024-04-04 15:00:02 +00:00
tingerrr 8013f69714
Implement `World` for common pointer types of `World` (#3838)
Co-authored-by: Ilia <43654815+istudyatuni@users.noreply.github.com>
2024-04-04 09:37:23 +00:00
Leedehai 8c28f67504
Let the lexer respect linebreaks within inline raw (#3756) 2024-04-04 08:18:37 +00:00
frozolotl d4b3ae0925
Read `SOURCE_DATE_EPOCH` for better reproducibility (#3809) 2024-04-03 10:34:17 +00:00
Leedehai 0619ae98a8
Fix newline parsing behavior in code mode (#3780) 2024-04-03 09:01:50 +00:00
Gabriel Araújo 0b9878ed31
Fix wrong PDF page labels (#3836) (#3837) 2024-04-03 08:39:47 +00:00
Laurenz b3615ccd49
A few CI and crate config changes (#3852) 2024-04-02 14:16:44 +00:00
Malo c4001662b6
Improve `repr` for `SequenceElem` (#3584) 2024-04-02 12:47:56 +00:00
Ana Gelez 29af23663d
Support negative dimensions in rectangles (#3807) 2024-04-02 12:17:10 +00:00
Ana Gelez c413bef11d
Never shrink lines in raw blocks (#3796) 2024-04-02 12:16:00 +00:00
Leedehai c225adb22b
Fix tab rendering for raw block with lang "typ(c)" (#3847) 2024-04-02 09:07:00 +00:00
Etienne Collin f461b2059d
Fixed interaction of first_line_indent with outline (#3745) 2024-04-02 08:13:13 +00:00
Leedehai 1e645b3964
Fix `str.trim(regex,at:end)` when the whole string is matched (#3730) 2024-04-01 21:01:26 +00:00
Myriad-Dreamin 092f6dc462
Fix source path resolution in import analysis (#3842) 2024-04-01 20:54:49 +00:00
Lucy-73 d672080e85
Changed equation reference customization example to include a link (#3812) 2024-04-01 20:50:28 +00:00
Eric Biedert 72c5b42a30
Fix patterns with spacing in PDF (#3793) 2024-04-01 20:37:05 +00:00
Wenzhuo Liu eef3c3c5ff
Remove unsafe flag usage in typst-timing (#3788) 2024-04-01 20:36:25 +00:00
Matthew Toohey dee8ccf048
Add side parameter to leaf_at (#3767) 2024-04-01 20:22:54 +00:00
Ran Luo 16c3af7c92
Fix compression of punctuation marks at line start of end (#3744) 2024-04-01 20:22:00 +00:00
Kamack38 7b9faa81bf
Add parallelogram symbols (#3740) 2024-04-01 20:20:05 +00:00
Ilia e91baaca82
Support writing document to stdout (#3632) 2024-04-01 19:36:21 +00:00
frozolotl 82717b2869
Implement `to-dict` method on arrays (#3575) 2024-04-01 17:21:19 +00:00
Leedehai 0d7fa1747e
Change sym.triangle from ▷ to △ (#3628) 2024-04-01 16:41:44 +00:00
Ana Gelez 105d7156f8
Better handle large numbers from external data files (#3791)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-03-25 16:51:35 +00:00
Ana Gelez 2efa86cbdf
Fix smart quotes in PDF outline (#3790) 2024-03-25 13:32:02 +00:00
frozolotl a33d8bf322
Escape path and entrypoint in `typst init` output (#3753) 2024-03-23 11:54:50 +00:00
Leedehai d1568a5583
Let `Repr` for `Relative<T>` print both abs + ratio (#3721) 2024-03-23 11:51:43 +00:00
frozolotl 0a917aba98
Fix warnings introduced by rust 1.77 (#3754) 2024-03-22 12:35:02 +00:00
Matt Fellenz 41db766b83
Unify ops match arms (#3720) 2024-03-19 09:37:30 +00:00
Malo c125125080
Documentation improvements (#3698)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-03-19 09:37:16 +00:00
frozolotl 9dfc54d726
Fix color documentation (#3688) 2024-03-19 09:36:30 +00:00
Malo 65ae369f2c
Add stroked variants of suits (#3612) 2024-03-19 09:35:26 +00:00
A-Walrus e6f7cc126c
Fix all cargo doc warnings (#3684) 2024-03-16 09:25:40 +00:00
Laurenz faca50a240
Final touches (#3678) 2024-03-15 14:47:41 +00:00
Martin Haug 9bd1451452
Add a guide for the new tables (#3655)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-03-15 14:02:56 +00:00
Andrew Voynov 1084bce4e8
Small improvements to heading parameter docs (#3660)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-03-15 13:58:31 +00:00
Leedehai bd8a029725
Fix `Reflect` for `SpecificAlignment` (#3672)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-03-15 13:55:03 +00:00
PgBiel 23ec13718f
Small table footer and hline placement improvements (#3659) 2024-03-14 09:26:27 +00:00