Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.0.7 #93

Merged
merged 10 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!)**
Expand All @@ -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)
Expand All @@ -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).

Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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%)
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -632,16 +632,19 @@ 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)
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 (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.
- 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)

Expand Down
2 changes: 1 addition & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tablex"
version = "0.0.6"
version = "0.0.7"
authors = ["PgBiel <https://github.com/PgBiel>"]
license = "MIT"
description = "More powerful and customizable tables in Typst."
Expand Down