Commit Graph

828 Commits

Author SHA1 Message Date
Laurenz fa7fbb8274
Tests for jump from click/cursor (#4297) 2024-05-30 12:06:36 +00:00
Yip Coekjan 023b8068f7
Improve CLI help doc about input & output (#4282) 2024-05-30 08:00:10 +00:00
+merlan #flirora b15aa664f2
Allow `measure` to accept available size (#4264) 2024-05-30 07:58:07 +00:00
Yip Coekjan 702271dacb
Allow setting `raw.theme` to `none` to disable syntax highlighting (#4256) 2024-05-30 07:57:12 +00:00
Tulio Martins 06a925a0ee
Add nested import syntax (#4228)
Co-authored-by: LuizAugustoPapa <luiz.papa@aluno.puc-rio.br>
Co-authored-by: PepinhoJp <pepinho.jp@gmail.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-05-30 07:56:40 +00:00
Eric Biedert 5f6d942519
Make block equations breakable (#4226)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-30 07:52:48 +00:00
Laurenz 54604ccb6b
Fix `Default` impls for AST nodes (#4288) 2024-05-29 14:32:20 +00:00
Laurenz e6739ecc2f
Fix figure centering (#4276)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-05-29 13:17:05 +00:00
Laurenz 06433bc95f
Reorder syntax kinds (#4287) 2024-05-29 13:14:01 +00:00
Ana Gelez 2946cde6fa
Refactor PDF export (#4154)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-29 13:01:11 +00:00
Ilia 6d07f702e1
Add ability to choose between minified and pretty-printed JSON (#4161) 2024-05-29 11:06:27 +00:00
LU Jialin b73b3ca335
Trim weak spacing at line start/end in paragraph layout (#4087) 2024-05-27 15:36:41 +00:00
+merlan #flirora 1694327b70
Refactor `Capable::vtable` to return `Option<NonNull<()>>` (#4252) 2024-05-25 19:17:07 +00:00
bluebear94 1fff04f582
Improve macro docs (+ Native*Data docs) (#4240) 2024-05-25 15:33:37 +00:00
Yip Coekjan 485aa2e1ff
Hint for language-region pair on `text.lang` (#4183) 2024-05-25 15:31:04 +00:00
Yip Coekjan 374b82f8ca
Set default value of `raw.theme` to `auto`, and allow setting `raw.theme` to `auto` (#4186) 2024-05-24 23:14:56 +00:00
Laurenz ea4c64a799
Split `BitSet` into two types and make it a bit nicer (#4249) 2024-05-24 21:09:54 +00:00
Laurenz 34f1a23246
Do layout short-circuit in flow instead of realization (#4231) 2024-05-23 09:55:00 +00:00
Malo a6cf584ee9
Allow somewhat arbitrary characters as `mat`, `vec` and `cases` `delim` (#4211) 2024-05-22 19:36:53 +00:00
Malo babf641c3a
`layout` documentation improvements (#4196)
Co-authored-by: Eric Biedert <github@ericbiedert.de>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-22 18:35:53 +00:00
Leedehai 53c306e32c
Fix equation resizing when adding the equation number (#4179) 2024-05-22 17:04:46 +00:00
Tobias Schmitz b0306785d5
Add `windows` method to array (#4136)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-22 15:58:06 +00:00
Laurenz 6c9bcd83ae
Optimize counters and state (#4223) 2024-05-22 15:07:25 +00:00
Laurenz e715def088
Require `Send` and `Sync` for worlds (#4219) 2024-05-22 10:30:05 +00:00
Laurenz a52987a8c2
Refactor frame metadata into tags (#4212) 2024-05-22 09:26:03 +00:00
Malo daf3ccbe04
Mention how to get the current compiler version in version documentation (#4170) 2024-05-18 08:42:31 +00:00
Laurenz ad598f559e
Fix show rules on queried elements (#4166) 2024-05-17 10:59:31 +00:00
Laurenz 6a1a58a2d4
Mention that raw and equation syntax works in both markup and code mode (#4164) 2024-05-17 09:39:29 +00:00
Laurenz 00f7588755
Tweak `usvg` options (#4163) 2024-05-17 09:27:05 +00:00
Laurenz 2188a4bf48
Fix equations in RTL text (#4150) 2024-05-17 08:36:07 +00:00
Wenzhuo Liu 4ae376f2c7
Fix raw block has extra space when end with backtick (#4162)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-17 08:35:51 +00:00
Laurenz 7c4a199918
Fix dangling mention of locate (#4147) 2024-05-16 12:24:21 +00:00
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