Laurenz
e0122a5b50
Add HTML export format
2024-12-04 10:12:07 +01:00
Laurenz
885c7d96ee
A few basic HTML show rules
...
These are very incomplete and ignore various properties. They are just to get things started.
2024-12-04 10:12:07 +01:00
Laurenz
0ef97c104a
HTML DOM types
2024-12-04 10:12:07 +01:00
Laurenz
497446944c
Add `document.description` field
2024-12-04 10:12:07 +01:00
Laurenz
d00a5d6c9b
Add contextual `target` function
2024-12-04 10:12:07 +01:00
Laurenz
2b8dc9b14d
Add HTML feature flag
2024-12-04 10:12:07 +01:00
Laurenz
008b59839f
Add some more spans
2024-12-04 10:12:07 +01:00
Laurenz
f8f2ba6a5f
Rename `Document` to `PagedDocument`
2024-12-04 10:12:07 +01:00
Nikolai Neff-Sarnow
76c24ee6e3
Add documentation example to `array.sorted()` ( #5475 )
...
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
2024-11-30 09:10:22 +00:00
Laurenz
d40c8ab6ab
Compile-time `PicoStr` interning ( #5491 )
2024-11-29 15:03:08 +00:00
+merlan #flirora
89d96c623d
Let decimal constructor accept decimal values ( #5481 )
2024-11-27 16:36:04 +00:00
3w36zj6
27cc489a1d
Add missing full stop to documentation of `ImageElem` struct ( #5484 )
2024-11-27 15:38:41 +00:00
Deyan Ginev
c29c96562d
Add Bulgarian translation entries ( #5476 )
2024-11-27 11:14:20 +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
6d35972c3d
Update NewCM fonts to version 7.0.0 ( #5465 )
2024-11-26 12:36:53 +00:00
Johann Birnick
580e6811b0
Docs: note `par.linebreaks` in `text.costs` ( #5434 )
2024-11-26 12:35:45 +00:00
Iagoba Apellaniz
3d7284fc1b
Support for Basque language ( #5429 )
2024-11-26 12:34:53 +00:00
Malo
5c37a1cfea
Use `codex` for symbols ( #5421 )
2024-11-17 19:08:23 +00:00
Sébastien d'Herbais de Thun
5db179d67a
Timings for `state.at` and `state.get` ( #5411 )
2024-11-17 09:05:01 +00:00
Laurenz
525154a730
Add support for raw range spans
2024-11-13 10:21:40 +01:00
Laurenz
a5a4b0b72f
Introduce `IdeWorld` trait
2024-11-13 10:21:40 +01:00
Max
8d4f01d284
Add support for page references through new `ref.form` property ( #4729 )
2024-11-12 12:54:25 +00:00
Pascal Quach
dadc2176e2
Add `asymp` and `asymp.not` symbols ( #5391 )
2024-11-12 12:46:40 +00:00
Andrew Voynov
cb8eaddf98
Removed deprecated `diff` symbol ( #5388 )
2024-11-12 12:44:45 +00:00
Johann Birnick
115b0a7ffd
Add `sym.eq.triple.not` ( #5372 )
2024-11-05 08:42:44 +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
fac7583745
Basic feature flag mechanism ( #5350 )
2024-11-01 20:02:27 +00:00
LU Jialin
23313b0af0
Support Greek Numbering ( #4273 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-11-01 09:20:10 +00: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
Andrew Voynov
30427ac842
Added Numero Sign № (U+2116) ( #5326 )
2024-10-31 11:56:37 +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
Laurenz
2634a8402c
Fix type of plugin ( #5321 )
2024-10-29 13:59:22 +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
lucaslugao
6dd05cc17a
Add explicit notice about unicode minus sign in the str function ( #5301 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:26:32 +00:00
Giacomo Stevanato
83927686d9
Fix wrong drop order for self-referential struct ( #5306 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:23:43 +00:00
Chad Skeeters
ead6c03a98
Corrects link to wasi-stub in plugin documentation ( #5308 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:21:11 +00:00
Laurenz
be7cfc85d0
Split out four new crates ( #5302 )
2024-10-27 18:04:55 +00:00
Laurenz
7eebafa783
Merge `typst` and `typst-library`
2023-11-24 12:30:02 +01:00
Laurenz
36c7301608
Tidy up some imports
2023-11-21 15:20:49 +01:00
Laurenz
c1bc529986
Support arbitrary content for document title
...
For PDF, they will be immediately turned into plain text. However, it's still useful because templates can now accept content titles (with math or such things) instead of forcing strings because of set document. Moreover, it will be useful with "get rules" in the future.
2023-11-20 18:31:29 +01:00
Sébastien d'Herbais de Thun
9b5b3b2557
Added `ghost` attr to `elem` macro ( #2718 )
2023-11-19 19:23:00 +01:00
Laurenz
c641044380
Workaround for show set propagation on citations
...
Fixes #2531
2023-11-19 18:57:28 +01:00
Laurenz
c97a01616a
More useful `Debug` impls
2023-11-19 18:16:18 +01:00
Laurenz
2da619e17c
Streamline imports
2023-11-19 16:34:38 +01:00
Laurenz
ea987ef4a3
Fix linebreaking at the end of links
...
Fixes #2689
2023-11-19 15:53:48 +01:00
frozolotl
43f90b2159
Implement euclidean division and remainder ( #2678 )
2023-11-17 19:55:57 +01:00
Sébastien d'Herbais de Thun
5aaaacbf47
Allow `elem` synthesized fields to take a default value ( #2687 )
2023-11-17 10:39:08 +01:00
Sébastien d'Herbais de Thun
f39a8bc015
Add span information to realized `ParElem` ( #2675 )
2023-11-15 14:49:29 +01:00
Dimitri Kokkonis
897447e859
Translate local names to Greek ( #2684 )
...
Additionally, add support for single and double quotes in Greek.
2023-11-14 15:59:30 +01:00
Sébastien d'Herbais de Thun
d77356a16f
Fix potential line splitting issue in `raw` ( #2674 )
2023-11-13 16:56:51 +01:00
Sébastien d'Herbais de Thun
c427ca9e4e
Assign spans to `raw.line` ( #2672 )
2023-11-13 15:49:38 +01:00
frozolotl
67422e664b
Allow non-string contents for math operators ( #2663 )
2023-11-13 12:26:58 +01:00
Malo
8219ec2595
Improve documentation for figure kind ( #2654 )
2023-11-13 12:18:05 +01:00
Wenzhuo Liu
e07275163f
Filter out meta items when adding CJK-Latin ( #2655 )
...
spacing.
2023-11-13 12:13:05 +01:00
frozolotl
97bb0fbce3
Fix bug where inline equations were displayed in the outline ( #2662 )
2023-11-13 12:04:34 +01:00
Laurenz
778802e5a8
Fix links in bibliographies again
...
Fixes #2667
2023-11-13 11:50:27 +01:00
Andrew Voynov
a44141be2e
Changed default `image` Russian supplement to short form ( #2637 )
2023-11-11 10:46:25 +01:00
MALO
13f1a4386f
Improve French and Chinese localization for figures ( #2542 )
2023-11-10 17:17:39 +01:00
frozolotl
d93ed1b3d8
Implement Oklch support ( #2611 )
2023-11-10 10:31:06 +01:00
Laurenz
7f0fcda376
Move some things out of `util`
2023-11-08 23:42:45 +01:00
Anton Wetzel
ba05164bb6
Change rectangle clip to use the inside of the stroke, not the middle. ( #2626 )
2023-11-08 15:30:00 +01:00
Laurenz
46846a337e
Extract `typst-pdf` crate
2023-11-08 15:09:55 +01:00
Joseph Wilson
2ce9d76025
Add constructor for `stroke`. ( #2518 )
2023-11-08 11:08:38 +01:00
KronosTheLate
3a1e47913d
Make reference to spreading in arguments of `grid` ( #2593 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-11-07 16:56:09 +01:00
Sébastien d'Herbais de Thun
241a6d9e5a
Gradient Part 5b: Fix gradients in math ( #2604 )
2023-11-07 12:09:51 +01:00
tingerrr
4d5255d9cb
Synthesize `block` and `quotes` & improve documentation for `quote` ( #2532 )
2023-11-07 11:49:28 +01:00
Peng Guanwen
4a7d3585d9
Improve reshape condition ( #2547 )
2023-11-06 21:43:15 +01:00
Sébastien d'Herbais de Thun
c0f6d2004a
Content rework 2 - Electric Boogaloo ( #2504 )
2023-11-06 21:37:50 +01:00
MALO
51d9fe2d02
Documentation fixes ( #2543 )
2023-11-02 11:01:46 +01:00
Andrew Voynov
c47757d6d4
fix(figure separator): `. ` is now default for Russian ( #2540 )
2023-11-02 11:00:42 +01:00
Andrew Voynov
0f274f8edb
Fixed doc typo for math > cancel > angle ( #2535 )
2023-10-31 20:50:21 +01:00
Laurenz
c177a63c9b
Fix citation grouping bug with spaces
2023-10-31 12:19:30 +01:00
Laurenz
ab5dd2a1cb
CSL support
2023-10-31 01:33:06 +01:00
Joseph Wilson
27ab2bb9a2
Documentation improvements ( #2492 )
2023-10-31 01:32:08 +01:00
Fritz Rehde
c3114fa380
Fixed typos ( #2524 )
2023-10-30 23:25:28 +01:00
Laurenz
90cd1a5a09
Add a bit more detail to `font` parameter docs
2023-10-30 22:55:52 +01:00
Laurenz
995fc40363
Remove duplicated lookup
2023-10-29 22:41:28 +01:00
Laurenz
29130a26f8
Linebreaking for links
2023-10-29 00:52:15 +02:00
Laurenz
4c75adbb04
Simplify linebreaking
...
Switches from an iterator to callback style, which significantly increases the clarity of the whole thing.
2023-10-28 23:03:09 +02:00
Laurenz
0f4f37cc09
Bump ICU data
2023-10-28 20:35:38 +02:00
Laurenz
aa62d05453
Fix justification with hanging indent and negative spacing
...
Fixes #2419
2023-10-28 20:05:51 +02:00
Laurenz
c3b1e32d11
Fix justified linebreaking without justifiables
2023-10-28 18:02:16 +02:00
Martin Haug
f78a8f5d48
Add IDs and creation date to PDFs ( #2374 )
2023-10-27 18:33:23 +02:00
tingerrr
1603e2df26
Fix trailing mandatory breaks being swallowed ( #2502 )
2023-10-27 00:17:47 +02:00
Francisco J. Sanchez
c29a31b6c5
Fix pagebreak.to check ( #2475 )
2023-10-25 17:16:34 +02:00
Thomas Aldrian
866bd27d2e
Add `csch` and `sech` operators ( #2378 )
2023-10-25 17:12:11 +02:00
Laurenz
69191b6b20
Remove unnecessary backticks
...
Fixes #2447
2023-10-22 14:47:19 +02:00
LU Jialin
f81a8d00e3
Refactor `cancel`, now able to take absolute angle or functions ( #2466 )
2023-10-22 14:07:30 +02:00
Wenzhuo Liu
b97ee93b8f
Support adjustment of more CJK punctuation ( #2456 )
2023-10-22 13:45:51 +02:00
MALO
cf9ca6cb59
Fix compiler panic for float with no vertical alignment ( #2437 )
2023-10-22 13:43:24 +02:00
Eric Biedert
3ed6462ee0
Don't hyphenate on no-break characters ( #2396 )
2023-10-22 13:36:33 +02:00
MALO
aaac1dbd68
Adapt default figure separator to the current locale ( #2390 )
2023-10-22 13:33:00 +02:00
SekoiaTree
7f185f21e0
Add date to document ( #2371 )
2023-10-22 13:29:48 +02:00
SekoiaTree
3faad6bc5d
Add support for negative augment indexes ( #2372 )
2023-10-22 13:22:34 +02:00
Joseph Wilson
06ba535c45
Clarified docs for `calc.perm,rem,quo` ( #2408 )
2023-10-19 10:12:28 +02:00
Sébastien d'Herbais de Thun
838b56e72b
removed `update_justifiable` ( #2426 )
2023-10-18 13:36:24 +02:00
Sébastien d'Herbais de Thun
77b84675e5
Cache `is_justifiable` ( #2399 )
2023-10-17 18:12:34 +02:00