summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
AgeCommit message (Collapse)Author
2024-11-29Fix paragraph spacing in Rust 1.82+0.8Laurenz
2023-09-13Fix floating placement within containersLaurenz
Fixes #1879
2023-09-13Fix box in 100% width blockLaurenz
Fixes #2128
2023-09-13Add logical numbering support for PDF export (#1933)Kevin K
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-09-11First-class typesLaurenz
Makes types first-class values.
2023-09-06Interpret vertical page number alignment differentlyLaurenz
The vertical alignment of `number-align` now selects header or footer instead of aligning within the footer. This is a minor breaking change because - top behaves differently now - horizon is now forbidden - bottom (the new default) behaves differently, too Typical number-align usage will likely not use the vertical component at all, though. Fixes #645
2023-09-04Docs fixesLaurenz
Fixes #2059 Fixes #1946 Fixes #1936 Fixes #1862 Fixes #1820 Fixes #1383
2023-09-04Fix improper line wrapping in the presence of medial newlines (#2056)bluebear94
Fixes #2019.
2023-09-04Add a page setup guide (#1911)Martin Haug
2023-08-30Introduce second variant of Ignorant Behaviour and prevent weak page breaks ↵Beiri22
at basically empty pages (#1929)
2023-08-25Add Finnish translations (#1996)Kivi Kaitaniemi
2023-08-25calm down clippy even more (#1997)Beiri22
2023-08-23Render opening smart quote after another opening quote of a different type ↵bluebear94
(#1559)
2023-08-23linebreak_optimized: Handle breakpoints separated only by spaces (#1821)bluebear94
2023-08-08Penalize runts (#1858)Matt Fellenz
2023-08-07Touch up docsLaurenz
2023-08-03layout::par::finalize: Bound allotted width when fitting to width (#1828)bluebear94
Sometimes, optimized line breaking outputs lines that are wider than the allotted width so that spacing between words can be narrowed to fit. However, the width calculation for the fit-to-width case does not account for this, causing the resulting width to exceed the width of the region. This commit takes the minimum of the calculated width with the width of the region. Fixes #1825.
2023-07-19Resolve `place` deltas relative to real container sizeLaurenz
2023-07-19Positions placed elements relative to real container size (#1745)Laurenz
This positions placed elements relative to the real container size instead of relative to the base size of the region. This makes its usage more versatile. Fixes #82 Fixes #685 Fixes #1705
2023-07-19Support OpenType writing script (#1697)damaxwell
2023-07-11Add fields and methods to several primitives (#790)Pg Biel
2023-07-10Basic floating placementLaurenz
2023-07-06Add alternative smartquotes (#1631)T0mstone
2023-07-06Raw syntax definition loading (#1655)Sébastien d'Herbais de Thun
2023-07-06Add Japanese translation for LocalName (#1662)Shogo Takata
2023-07-06Make default margin behavior more precise (#1666)lolstork
2023-07-05Clarify docs: Weak spacings eat markup space (#1648)raphCode
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-07-02Move everything into `crates/` directoryLaurenz