|
| 1 | +--- |
| 2 | +title: 0.10.0 |
| 3 | +description: Changes in Typst 0.10.0 |
| 4 | +--- |
| 5 | + |
| 6 | +# Version 0.10.0 (December 4, 2023) |
| 7 | + |
| 8 | +## Bibliography management |
| 9 | +- Added support for citation collapsing (e.g. `[[1]-[3]]` instead of |
| 10 | + `[[1], [2], [3]]`) if requested by a CSL style |
| 11 | +- Fixed bug where an additional space would appear after a group of citations |
| 12 | +- Fixed link show rules for links in the bibliography |
| 13 | +- Fixed show-set rules on citations |
| 14 | +- Fixed bibliography-related crashes that happened on some systems |
| 15 | +- Corrected name of the GB/T 7714 family of styles from 7114 to 7714 |
| 16 | +- Fixed missing title in some bibliography styles |
| 17 | +- Fixed printing of volumes in some styles |
| 18 | +- Fixed delimiter order for contributors in some styles (e.g. APA) |
| 19 | +- Fixed behavior of alphanumeric style |
| 20 | +- Fixed multiple bugs with GB/T 7714 style |
| 21 | +- Fixed escaping in Hayagriva values |
| 22 | +- Fixed crashes with empty dates in Hayagriva files |
| 23 | +- Fixed bug with spacing around math blocks |
| 24 | +- Fixed title case formatting after verbatim text and apostrophes |
| 25 | +- Page ranges in `.bib` files can now be arbitrary strings |
| 26 | +- Multi-line values in `.bib` files are now parsed correctly |
| 27 | +- Entry keys in `.bib` files now allow more characters |
| 28 | +- Fixed error message for empty dates in `.bib` files |
| 29 | +- Added support for years of lengths other than 4 without leading zeros in |
| 30 | + `.bib` files |
| 31 | +- More LaTeX commands (e.g. for quotes) are now respected in `.bib` files |
| 32 | + |
| 33 | +## Visualization |
| 34 | +- Added support for [patterns]($pattern) as fills and strokes |
| 35 | +- The `alpha` parameter of the [`components`]($color.components) function on |
| 36 | + colors is now a named parameter **(Breaking change)** |
| 37 | +- Added support for the [Oklch]($color.oklch) color space |
| 38 | +- Improved conversions between colors in different color spaces |
| 39 | +- Removed restrictions on [Oklab]($color.oklab) chroma component |
| 40 | +- Fixed [clipping]($block.clip) on blocks and boxes without a stroke |
| 41 | +- Fixed bug with [gradients]($gradient) on math |
| 42 | +- Fixed bug with gradient rotation on text |
| 43 | +- Fixed bug with gradient colors in PDF |
| 44 | +- Fixed relative base of Oklab chroma ratios |
| 45 | +- Fixed Oklab color negation |
| 46 | + |
| 47 | +## Text and Layout |
| 48 | +- CJK text can now be emphasized with the `*` and `_` syntax even when there are |
| 49 | + no spaces |
| 50 | +- Added basic i18n for Greek and Estonian |
| 51 | +- Improved default [figure caption separator]($figure.caption.separator) for |
| 52 | + Chinese, French, and Russian |
| 53 | +- Changed default [figure supplement]($figure.supplement) for Russian to short |
| 54 | + form |
| 55 | +- Fixed [CJK-Latin-spacing]($text.cjk-latin-spacing) before line breaks and in |
| 56 | + [`locate`] calls |
| 57 | +- Fixed line breaking at the end of links |
| 58 | + |
| 59 | +## Math |
| 60 | +- Added [`mid`]($math.mid) function for scaling a delimiter up to the height of |
| 61 | + the surrounding [`lr`]($math.lr) group |
| 62 | +- The [`op`]($math.op) function can now take any content, not just strings |
| 63 | +- Improved documentation for [math alignment]($category/math/#alignment) |
| 64 | +- Fixed swallowing of trailing comma when a symbol is used in a function-like |
| 65 | + way (e.g. `pi(a,b,)`) |
| 66 | + |
| 67 | +## Scripting |
| 68 | +- Any non-identifier dictionary key is now interpreted as an expression: For |
| 69 | + instance, `{((key): value)}` will create a dictionary with a dynamic key |
| 70 | +- The [`stroke`] type now has a constructor that converts a value to a stroke or |
| 71 | + creates one from its parts |
| 72 | +- Added constructor for [`arguments`] type |
| 73 | +- Added [`calc.div-euclid`]($calc.div-euclid) and |
| 74 | + [`calc.rem-euclid`]($calc.rem-euclid) functions |
| 75 | +- Fixed equality of [`arguments`] |
| 76 | +- Fixed [`repr`]of [`cmyk`]($color.cmyk) colors |
| 77 | +- Fixed crashes with provided elements like figure captions, outline entries, |
| 78 | + and footnote entries |
| 79 | + |
| 80 | +## Tooling and Diagnostics |
| 81 | +- Show rules that match on their own output now produce an appropriate error |
| 82 | + message instead of a crash (this is a first step, in the future they will just |
| 83 | + work) |
| 84 | +- Too highly or infinitely nested layouts now produce error messages instead of |
| 85 | + crashes |
| 86 | +- Added hints for invalid identifiers |
| 87 | +- Added hint when trying to use a manually constructed footnote or outline entry |
| 88 | +- Added missing details to autocompletions for types |
| 89 | +- Improved error message when passing a named argument where a positional one is |
| 90 | + expected |
| 91 | +- Jump from click now works on raw blocks |
| 92 | + |
| 93 | +## Export |
| 94 | +- PDF compilation output is now again fully byte-by-byte reproducible if the |
| 95 | + document's [`date`]($document.date) is set manually |
| 96 | +- Fixed color export in SVG |
| 97 | +- Fixed PDF metadata encoding of multiple [authors]($document.author) |
| 98 | + |
| 99 | +## Command line interface |
| 100 | +- Fixed a major bug where `typst watch` would confuse files and fail to pick up |
| 101 | + updates |
| 102 | +- Fetching of the release metadata in `typst update` now respects proxies |
| 103 | +- Fixed bug with `--open` flag on Windows when the path contains a space |
| 104 | +- The `TYPST_FONT_PATHS` environment variable can now contain multiple paths |
| 105 | + (separated by `;` on Windows and `:` elsewhere) |
| 106 | +- Updated embedded New Computer Modern fonts to version 4.7 |
| 107 | +- The watching process doesn't stop anymore when the main file contains invalid |
| 108 | + UTF-8 |
| 109 | + |
| 110 | +## Miscellaneous Improvements |
| 111 | +- Parallelized image encoding in PDF export |
| 112 | +- Improved the internal representation of content for improved performance |
| 113 | +- Optimized introspection (query, counter, etc.) performance |
| 114 | +- The [document title]($document.title) can now be arbitrary content instead of |
| 115 | + just a string |
| 116 | +- The [`number-align`]($enum.number-align) parameter on numbered lists now also |
| 117 | + accepts vertical alignments |
| 118 | +- Fixed selectors on [quote] elements |
| 119 | +- Fixed parsing of `[#return]` expression in markup |
| 120 | +- Fixed bug where inline equations were displayed in equation outlines |
| 121 | +- Fixed potential CRLF issue in [`raw`] blocks |
| 122 | +- Fixed a bug where Chinese numbering couldn't exceed the number 255 |
| 123 | + |
| 124 | +## Development |
| 125 | +- Merged `typst` and `typst-library` and extracted `typst-pdf`, `typst-svg`, and |
| 126 | + `typst-render` into separate crates |
| 127 | +- The Nix flake now includes the git revision when running `typst --version` |
| 128 | + |
| 129 | +## Contributors |
| 130 | +<contributors from="v0.9.0" to="v0.10.0" /> |
0 commit comments