From bc32ee5898bc2c94e1b3ac97fdbbac64598a53e2 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:53:00 -0300 Subject: [PATCH 01/10] README: replace mentions to 0.0.6 by 0.0.7 --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9f6f0c3..65580f0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# typst-tablex (v0.0.6) +# typst-tablex (v0.0.7) **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!)** @@ -21,7 +21,7 @@ If you'd like to appear here, [consider sponsoring the project!](https://github. * [Basic types and functions](#basic-types-and-functions) * [Gridx and Tablex](#gridx-and-tablex) * [Changelog](#changelog) - * [Unreleased](#unreleased) + * [v0.0.7](#v007) * [v0.0.6](#v006) * [v0.0.5](#v005) * [v0.0.4](#v004) @@ -33,7 +33,7 @@ If you'd like to appear here, [consider sponsoring the project!](https://github. ## Usage -To use this library through the Typst package manager **(for Typst v0.6.0+)**, write for example `#import "@preview/tablex:0.0.6": 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.7": 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). @@ -46,7 +46,7 @@ Here's an example of what `tablex` can do: Here's the code for that table: ```typ -#import "@preview/tablex:0.0.6": tablex, rowspanx, colspanx +#import "@preview/tablex:0.0.7": tablex, rowspanx, colspanx #tablex( columns: 4, @@ -98,7 +98,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: ```typ -#import "@preview/tablex:0.0.6": tablex +#import "@preview/tablex:0.0.7": tablex #tablex( columns: (auto, 1em, 1fr, 1fr), // 4 columns @@ -125,7 +125,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`: ```typ -#import "@preview/tablex:0.0.6": tablex, colspanx, rowspanx +#import "@preview/tablex:0.0.7": tablex, colspanx, rowspanx #tablex( columns: 3, @@ -154,7 +154,7 @@ Also, note that, by default, the horizontal lines below the header are transport Example: ```typ -#import "@preview/tablex:0.0.6": tablex, hlinex, vlinex, colspanx, rowspanx +#import "@preview/tablex:0.0.7": tablex, hlinex, vlinex, colspanx, rowspanx #pagebreak() #v(80%) @@ -201,7 +201,7 @@ Something similar occurs for `vlinex()`, which has `start`, `end` (first row and Here's some sample usage: ```typ -#import "@preview/tablex:0.0.6": tablex, gridx, hlinex, vlinex, colspanx, rowspanx +#import "@preview/tablex:0.0.7": tablex, gridx, hlinex, vlinex, colspanx, rowspanx #tablex( columns: 4, @@ -245,7 +245,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: ```typ -#import "@preview/tablex:0.0.6": tablex, colspanx, rowspanx +#import "@preview/tablex:0.0.7": tablex, colspanx, rowspanx #tablex( columns: 3, @@ -277,7 +277,7 @@ Additionally, instead of specifying content to the cell, you can specify a funct For example: ```typ -#import "@preview/tablex:0.0.6": tablex, cellx, colspanx, rowspanx +#import "@preview/tablex:0.0.7": tablex, cellx, colspanx, rowspanx #tablex( columns: 3, @@ -309,7 +309,7 @@ To customize multiple cells at once, you have a few options: Example: ```typ -#import "@preview/tablex:0.0.6": tablex, colspanx, rowspanx +#import "@preview/tablex:0.0.7": tablex, colspanx, rowspanx #tablex( columns: 4, @@ -632,7 +632,7 @@ Another example (summing columns): ## Changelog -### Unreleased +### v0.0.7 [You can now sponsor my work on tablex and Typst tables! Consider taking a look :)](https://github.com/sponsors/PgBiel) From bd5a26f82826d419426863dfb0567e24a8481ef6 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:53:16 -0300 Subject: [PATCH 02/10] README: update GitHub Sponsors note --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 65580f0..e0715d9 100644 --- a/README.md +++ b/README.md @@ -634,7 +634,7 @@ Another example (summing columns): ### v0.0.7 -[You can now sponsor my work on tablex and Typst tables! Consider taking a look :)](https://github.com/sponsors/PgBiel) +[You can now sponsor my work on tablex and improving Typst tables via GitHub Sponsors! Consider taking a look :)](https://github.com/sponsors/PgBiel) - Allow gradients and patterns in fills (https://github.com/PgBiel/typst-tablex/pull/87) - Fixed negative line expansion within a single cell (https://github.com/PgBiel/typst-tablex/pull/84) From 7993f885aab90f8743fd0af39210b903908deb7c Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:21:13 -0300 Subject: [PATCH 03/10] add #94 to 0.0.7 changelog --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e0715d9..0dc2ada 100644 --- a/README.md +++ b/README.md @@ -640,8 +640,8 @@ Another example (summing columns): - Fixed negative line expansion within a single cell (https://github.com/PgBiel/typst-tablex/pull/84) - Negative line expansion across multiple cells isn't yet supported. - Thanks GitHub user @dixslyf for the great work on fixing and testing this! -- Fixed length measuring code when `repr` of an em length isn't exact (https://github.com/PgBiel/typst-tablex/issues/92) - - Solves a potential incompatibility with (unreleased) Typst 0.11.0 +- Made internal length calculation procedures more robust (https://github.com/PgBiel/typst-tablex/issues/92, https://github.com/PgBiel/typst-tablex/issues/94) + - Fixes a potential incompatibility with (currently unreleased) Typst 0.11.0 - Added missing support for boolean types in Typst 0.8.0+ (https://github.com/PgBiel/typst-tablex/issues/73) - Added some keywords to tablex's `typst.toml` for better discoverability (https://github.com/PgBiel/typst-tablex/issues/91) From 76d31d4a10234b03ab0fccc1ec92f75b060f4c7d Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:28:25 -0300 Subject: [PATCH 04/10] add line bug fix to 0.0.7 changelog --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0dc2ada..90022c5 100644 --- a/README.md +++ b/README.md @@ -637,6 +637,7 @@ Another example (summing columns): [You can now sponsor my work on tablex and improving Typst tables via GitHub Sponsors! Consider taking a look :)](https://github.com/sponsors/PgBiel) - Allow gradients and patterns in fills (https://github.com/PgBiel/typst-tablex/pull/87) +- Fixed a critical bug where lines in tablex would misbehave (https://github.com/PgBiel/typst-tablex/issues/80) - Fixed negative line expansion within a single cell (https://github.com/PgBiel/typst-tablex/pull/84) - Negative line expansion across multiple cells isn't yet supported. - Thanks GitHub user @dixslyf for the great work on fixing and testing this! From 83982a345d5dc9c435d963e8c0472180d64f50c8 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:37:12 -0300 Subject: [PATCH 05/10] update line fix in 0.0.7 changelog --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90022c5..7fc0d8e 100644 --- a/README.md +++ b/README.md @@ -637,7 +637,7 @@ Another example (summing columns): [You can now sponsor my work on tablex and improving Typst tables via GitHub Sponsors! Consider taking a look :)](https://github.com/sponsors/PgBiel) - Allow gradients and patterns in fills (https://github.com/PgBiel/typst-tablex/pull/87) -- Fixed a critical bug where lines in tablex would misbehave (https://github.com/PgBiel/typst-tablex/issues/80) +- Fixed a critical bug where `line` in tablex cells would misbehave (https://github.com/PgBiel/typst-tablex/issues/80) - Fixed negative line expansion within a single cell (https://github.com/PgBiel/typst-tablex/pull/84) - Negative line expansion across multiple cells isn't yet supported. - Thanks GitHub user @dixslyf for the great work on fixing and testing this! From 48bdaae4b4ec4729e6ee3dda3664d2a7d08b0ba1 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:52:11 -0300 Subject: [PATCH 06/10] mention upstreaming work in 0.0.7 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7fc0d8e..5f699f3 100644 --- a/README.md +++ b/README.md @@ -634,7 +634,7 @@ Another example (summing columns): ### v0.0.7 -[You can now sponsor my work on tablex and improving Typst tables via GitHub Sponsors! Consider taking a look :)](https://github.com/sponsors/PgBiel) +I have begun work on bringing many tablex improvements to built-in Typst tables! In that regard, [you can now sponsor my work on tablex and improving Typst tables via GitHub Sponsors! Consider taking a look :)](https://github.com/sponsors/PgBiel) - Allow gradients and patterns in fills (https://github.com/PgBiel/typst-tablex/pull/87) - Fixed a critical bug where `line` in tablex cells would misbehave (https://github.com/PgBiel/typst-tablex/issues/80) From fc756bb1c8fd31e187494459b7000de054aeea0c Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 16 Dec 2023 13:25:20 -0300 Subject: [PATCH 07/10] mention cetz / drawing in 0.0.7 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f699f3..e58aa72 100644 --- a/README.md +++ b/README.md @@ -634,10 +634,11 @@ Another example (summing columns): ### v0.0.7 -I have begun work on bringing many tablex improvements to built-in Typst tables! In that regard, [you can now sponsor my work on tablex and improving Typst tables via GitHub Sponsors! Consider taking a look :)](https://github.com/sponsors/PgBiel) +I have begun [work on bringing many tablex improvements to built-in Typst tables](https://github.com/PgBiel/typst-improv-tables-planning)! In that regard, [you can now sponsor my work on tablex and improving Typst tables via GitHub Sponsors! Consider taking a look :)](https://github.com/sponsors/PgBiel) - Allow gradients and patterns in fills (https://github.com/PgBiel/typst-tablex/pull/87) - Fixed a critical bug where `line` in tablex cells would misbehave (https://github.com/PgBiel/typst-tablex/issues/80) + - CeTZ and drawing in general should now work properly within tablex cells. - Fixed negative line expansion within a single cell (https://github.com/PgBiel/typst-tablex/pull/84) - Negative line expansion across multiple cells isn't yet supported. - Thanks GitHub user @dixslyf for the great work on fixing and testing this! From a1984b9905841dc30b21d17e5d16875d9b758f4e Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:55:33 -0300 Subject: [PATCH 08/10] update typst.toml version --- typst.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typst.toml b/typst.toml index d13bdf7..a6a84a4 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "tablex" -version = "0.0.6" +version = "0.0.7" authors = ["PgBiel "] license = "MIT" description = "More powerful and customizable tables in Typst." From b14243798e75db25800ec8e83b90f2ccb653f8fe Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 16 Dec 2023 13:38:22 -0300 Subject: [PATCH 09/10] mention nested table fix for 0.0.7 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e58aa72..42e821c 100644 --- a/README.md +++ b/README.md @@ -639,6 +639,7 @@ I have begun [work on bringing many tablex improvements to built-in Typst tables - Allow gradients and patterns in fills (https://github.com/PgBiel/typst-tablex/pull/87) - Fixed a critical bug where `line` in tablex cells would misbehave (https://github.com/PgBiel/typst-tablex/issues/80) - CeTZ and drawing in general should now work properly within tablex cells. + - Also fixes a problem with nested tables (https://github.com/PgBiel/typst-tablex/issues/34) - Fixed negative line expansion within a single cell (https://github.com/PgBiel/typst-tablex/pull/84) - Negative line expansion across multiple cells isn't yet supported. - Thanks GitHub user @dixslyf for the great work on fixing and testing this! From 44cd8107124afddc9f906b8cbc2e30e3dcd01f6a Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 16 Dec 2023 13:39:29 -0300 Subject: [PATCH 10/10] mention cetz issue link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 42e821c..d766919 100644 --- a/README.md +++ b/README.md @@ -638,7 +638,7 @@ I have begun [work on bringing many tablex improvements to built-in Typst tables - Allow gradients and patterns in fills (https://github.com/PgBiel/typst-tablex/pull/87) - Fixed a critical bug where `line` in tablex cells would misbehave (https://github.com/PgBiel/typst-tablex/issues/80) - - CeTZ and drawing in general should now work properly within tablex cells. + - CeTZ and drawing in general should now work properly within tablex cells (see https://github.com/johannes-wolf/cetz/issues/345). - Also fixes a problem with nested tables (https://github.com/PgBiel/typst-tablex/issues/34) - Fixed negative line expansion within a single cell (https://github.com/PgBiel/typst-tablex/pull/84) - Negative line expansion across multiple cells isn't yet supported.