60 Commits

Author SHA1 Message Date
Leedehai
23875a0483
Let type constructor/field access error report the name correctly (#3140)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-01-09 07:45:24 +00:00
Sébastien d'Herbais de Thun
712eaaa5f4
Fix CMYK on gradients (#3142) 2024-01-08 15:53:22 +00:00
Wenzhuo Liu
28a5069f95
Fix linebreak fallback tofu (#3123) 2024-01-03 09:41:41 +00:00
Sébastien d'Herbais de Thun
c4d9b0c3d8
New performance timings (#3096)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-12-30 12:36:15 +00:00
Carson McManus
754e1788b2
Fix a parser bug causing x.) to be treated as a field access (#2962) 2023-12-18 12:33:29 +01:00
Sébastien d'Herbais de Thun
343a423e9f
Fix #2902 (#2913) 2023-12-11 17:03:59 +01:00
Laurenz
0813e05a60 Add regression test for #1597 2023-12-07 17:37:18 +01:00
Sébastien d'Herbais de Thun
3e96f5f75f
Fix label in .fields() accessor (#2884) 2023-12-07 12:22:07 +01:00
Sébastien d'Herbais de Thun
7f10d3282e
Fix defaults on #[synthesized] fields (#2825)
Fixes #2821
2023-12-04 11:44:34 +01:00
Laurenz
63c19a194c Bump hayagriva 2023-11-29 18:40:47 +01:00
Laurenz
c641044380 Workaround for show set propagation on citations
Fixes #2531
2023-11-19 18:57:28 +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
Wenzhuo Liu
e07275163f
Filter out meta items when adding CJK-Latin (#2655)
spacing.
2023-11-13 12:13:05 +01:00
Laurenz
221609b11c Add regression test for #80 2023-10-28 20:35:28 +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
bluebear94
6bb776029e
Fix crashes with infinite lengths (part 2) (#2298) 2023-10-05 10:26:36 +02:00
LU Jialin
34ebbaeb10
Passing color to the augment line in matrix (#2281) 2023-10-02 16:22:33 +02:00
Sébastien d'Herbais de Thun
62f37ad4ab
Color fixes (#2262) 2023-09-29 15:04:08 +02:00
Eric Biedert
0d39fa021f
Prevent block spacing with placed elements (#2244) 2023-09-26 16:59:51 +02:00
LU Jialin
079ccd5e5b
Fixing the styling issues of the empty pages caused by pagebreak (#2182) 2023-09-25 14:13:54 +02:00
LU Jialin
04b4536772
Fixing the baseline in math content (#2220) 2023-09-25 13:13:16 +02:00
Laurenz
3dd12d13f8
Fix invisibles on final page (#2141) 2023-09-14 13:36:39 +02:00
Laurenz
68b365b351 Fix newline in text in math
Fixes #1948
2023-09-13 13:45:05 +02:00
Laurenz
8fb225feb4 Fix box in 100% width block
Fixes #2128
2023-09-13 13:44:28 +02:00
Laurenz
e39be71a54 Fix newline parsing behaviour in markup 2023-09-12 11:45:24 +02:00
Laurenz
305524d005 Update tests for type system changes 2023-09-11 14:42:43 +02:00
LU Jialin
d056280165
Wrap into an equation when a Math expr is evaluated (#2081) 2023-09-11 10:47:08 +02:00
Laurenz
073effc740 Fix font family mismatch between Typst and usvg
Fixes #2051
2023-09-09 22:33:17 +02:00
Laurenz
65aeea3142 Fix spacing after number in math
Fixes #1052
2023-09-06 12:15:27 +02:00
Sébastien d'Herbais de Thun
cd13e55dd1
Fixed numbering hint (#2012) 2023-08-26 16:02:28 +02:00
Laurenz
04bffc4f12 Reintroduce --root 2023-06-28 10:36:53 +02:00
bluebear94
9ef4643ba1
shape_tofus: respect text direction when inserting tofus (#1519)
This ensures that the ranges of the shaped glyphs are monotonically
decreasing in right-to-left-text, thus avoiding nonsensical results
in find_safe_to_break that later causes a panic (see #1373).
Additionally, debug assertions have been added to catch non-monotonic
glyph ranges.
2023-06-26 13:40:21 +02:00
bluebear94
622cef8e00
layout::par::collect: Treat linebreak element as whitespace (#1542)
Fixes #1540.
2023-06-24 14:26:06 +02:00
Laurenz
c5cdbaeaf8 Fix bug with extra table lines
Fixes #183
2023-06-12 17:48:30 +02:00
Laurenz
6720d8c301 Fix bug with missing table row
Fixes #1388
2023-06-12 17:20:54 +02:00
Laurenz
378ebe5f56 Delayed errors
Fixes #785. Thanks to @Dherse for the idea!
2023-06-12 15:42:01 +02:00
Laurenz
56f7ede964 Improve footnote handling for multi-page blocks 2023-06-08 15:51:22 +02:00
Laurenz
a1b0a41883 Fix a bug with footnotes in blocks/lists/etc.
This still not gives the "footnote and entry" are on same page invariant for blocks, but at least we do not get random extraneous page breaks anymore.

Relevant issues: #1275, #1433
2023-06-08 11:51:42 +02:00
Laurenz
f3e3061a7f Fix a bug in footnote together-keeping logic 2023-06-08 11:21:35 +02:00
Laurenz
10ae0a2c2b Fix line alignment
Fixes #1398. How this works for the other shapes is a hack, but the line was missing from that hack.
2023-06-08 10:20:24 +02:00
Laurenz
f90fcd664b Fix pagebreak before place
Fixes #1368
2023-05-30 14:36:34 +02:00
Laurenz
363836a28e Fix layout panic in rounded rectangle
Fixes #1216 both by hardening the rounded rectangle against negative size and by ensuring that the negative size doesn't occur in the first place for this case.
2023-05-23 15:30:28 +02:00
Laurenz
183997d5fe Don't hide introspection metadata
Fixes #622
2023-05-22 16:45:23 +02:00
Marmare314
db6a710638
Parameter pattern bug (#1062) 2023-05-03 12:42:26 +02:00
chris-02
407d8a3ab2
Fix smartquotes in outline (#1047)
Fixes #1041.
2023-05-01 13:29:40 +02:00
Leedehai
ecd589a84f
Add a test checking equations can embed function-built pieces (#1033) 2023-04-29 20:51:29 +02:00
Laurenz
3680c854a2 Touch up docs 2023-04-26 15:37:21 +02:00
jdierkes
249d5fe515
Fix grid-cell misalignment bug (#963) (#978)
Having a table span multiple pages can cause an alignment bug in the
table itself. If the first region in a cell in a grid row is empty, all
other cells in this row will skip the first region. A misalignment bug
can occur, since the calculation of all region sizes happen before the
skip. The overall size allocated for the content of a cell with multiple
regions and content in the first region thus is too little.
Fixes #963
2023-04-26 11:22:35 +02:00
Laurenz
f08ae95b9d Fix argument sinks
Fixes #886.
2023-04-19 17:51:33 +02:00