diff --git a/README.md b/README.md index 1b1697b..d39c2e7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# typst-tablex (v0.0.4) +# typst-tablex (v0.0.5) **More powerful and customizable tables in Typst.** **NOTE:** This library still has a few bugs, but most of them shouldn't be noticeable. **Please open an issue if you find a bug** and I'll get to it as soon as I can. **(Do not be afraid to open issues!! Also, PRs are welcome!)** @@ -17,7 +17,7 @@ * [Basic types and functions](#basic-types-and-functions) * [Gridx and Tablex](#gridx-and-tablex) * [Changelog](#changelog) - * [Unreleased](#unreleased) + * [v0.0.5](#v005) * [v0.0.4](#v004) * [v0.0.3](#v003) * [v0.0.2](#v002) @@ -27,7 +27,7 @@ ## Usage -To use this library through the Typst package manager **(for Typst v0.6.0+)**, write for example `#import "@preview/tablex:0.0.4": tablex, cellx` at the top of your Typst file (you may also add whichever other functions you use from the library to that import list!). +To use this library through the Typst package manager **(for Typst v0.6.0+)**, write for example `#import "@preview/tablex:0.0.5": tablex, cellx` at the top of your Typst file (you may also add whichever other functions you use from the library to that import list!). For older Typst versions, download the file `tablex.typ` from the latest release (or directly from the main branch, for the 'bleeding edge') at the tablex repository (https://github.com/PgBiel/typst-tablex) and place it on the same folder as your own Typst file. Then, at the top of your file, write for example `#import "tablex.typ": tablex, cellx` (plus whichever other functions you use from the library). @@ -40,7 +40,7 @@ Here's an example of what `tablex` can do: Here's the code for that table: ```js -#import "@preview/tablex:0.0.4": tablex, rowspanx, colspanx +#import "@preview/tablex:0.0.5": tablex, rowspanx, colspanx #tablex( columns: 4, @@ -92,7 +92,7 @@ Here's the code for that table: In most cases, you should be able to replace `#table` with `#tablex` and be good to go for a start - it should look _very_ similar (if not identical). Indeed, the syntax is very similar for the basics: ```js -#import "@preview/tablex:0.0.4": tablex +#import "@preview/tablex:0.0.5": tablex #tablex( columns: (auto, 1em, 1fr, 1fr), // 4 columns @@ -117,7 +117,7 @@ This is mostly a word of caution in case anything I haven't anticipated happens, Your cells can now span more than one column and/or row at once, with `colspanx` / `rowspanx`: ```js -#import "@preview/tablex:0.0.4": tablex, colspanx, rowspanx +#import "@preview/tablex:0.0.5": tablex, colspanx, rowspanx #tablex( columns: 3, @@ -146,7 +146,7 @@ Also, note that, by default, the horizontal lines below the header are transport Example: ```js -#import "@preview/tablex:0.0.4": tablex, hlinex, vlinex, colspanx, rowspanx +#import "@preview/tablex:0.0.5": tablex, hlinex, vlinex, colspanx, rowspanx #pagebreak() #v(80%) @@ -193,7 +193,7 @@ Something similar occurs for `vlinex()`, which has `start`, `end` (first row and Here's some sample usage: ```js -#import "@preview/tablex:0.0.4": tablex, gridx, hlinex, vlinex, colspanx, rowspanx +#import "@preview/tablex:0.0.5": tablex, gridx, hlinex, vlinex, colspanx, rowspanx #tablex( columns: 4, @@ -237,7 +237,7 @@ Here's some sample usage: You can also *bulk-customize lines* by specifying `map-hlines: h => new_hline` and `map-vlines: v => new_vline`. This includes any automatically generated lines. For example: ```js -#import "@preview/tablex:0.0.4": tablex, colspanx, rowspanx +#import "@preview/tablex:0.0.5": tablex, colspanx, rowspanx #tablex( columns: 3, @@ -269,7 +269,7 @@ Additionally, instead of specifying content to the cell, you can specify a funct For example: ```js -#import "@preview/tablex:0.0.4": tablex, cellx, colspanx, rowspanx +#import "@preview/tablex:0.0.5": tablex, cellx, colspanx, rowspanx #tablex( columns: 3, @@ -301,7 +301,7 @@ To customize multiple cells at once, you have a few options: Example: ```js -#import "@preview/tablex:0.0.4": tablex, colspanx, rowspanx +#import "@preview/tablex:0.0.5": tablex, colspanx, rowspanx #tablex( columns: 4, @@ -598,13 +598,13 @@ Another example (summing columns): ## Changelog -### Unreleased +### v0.0.5 - ⚠️ **Minimum Typst version raised to v0.2.0** - Improved calculation of page/container dimensions by using the `layout()` function. - Fixes tables with fractional columns not displaying properly in blocks with `auto` width (https://github.com/PgBiel/typst-tablex/issues/44; https://github.com/PgBiel/typst-tablex/issues/39) - Fixes some nested tables overflowing the page width (https://github.com/PgBiel/typst-tablex/issues/41) - - Fixes nested tables with fractional columns not displaying properly (https://github.com/PgBiel/typst-tablex/issues/28) + - Fixes bad interaction between tables with fractional columns and nested tables (https://github.com/PgBiel/typst-tablex/issues/28) - Fixes table rotation messing up table size calculation (https://github.com/PgBiel/typst-tablex/issues/52) - Probably fixes other issues not listed here as well. - Added some guards for infinite lengths and `auto`-sized pages (https://github.com/PgBiel/typst-tablex/issues/47). diff --git a/typst.toml b/typst.toml index a1d880a..e8d1bc9 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "tablex" -version = "0.0.4" +version = "0.0.5" authors = ["PgBiel "] license = "MIT" description = "More powerful and customizable tables in Typst."