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

0.6.0 #387

Merged
merged 3 commits into from
Nov 16, 2024
Merged

0.6.0 #387

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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: tinytable
Type: Package
Title: Simple and Configurable Tables in 'HTML', 'LaTeX', 'Markdown', 'Word', 'PNG', 'PDF', and 'Typst' Formats
Description: Create highly customized tables with this simple and dependency-free package. Data frames can be converted to 'HTML', 'LaTeX', 'Markdown', 'Word', 'PNG', 'PDF', or 'Typst' tables. The user interface is minimalist and easy to learn. The syntax is concise. 'HTML' tables can be customized using the flexible 'Bootstrap' framework, and 'LaTeX' code with the 'tabularray' package.
Version: 0.5.0.7
Version: 0.6.1
Imports:
methods
Depends:
Expand Down
7 changes: 5 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# News

## Development
## 0.6.1

* Bug fix: d-column LaTeX generated an error in some cases.

## 0.6.0

* Major refactor of the style internals. HTML, LaTeX, and Typst documents should be much more concise and efficient.
* `theme_tt("spacing")`: Change the row and column spacing to create more compact or airy tables. LaTeX and HTML only. Thanks to @statzhero for feature request #353.
Expand All @@ -14,7 +18,6 @@ Bugs:
* Typst notes returned an error since the last release. Thanks to @DominikVogel for report #357.
* Duplicate group labels are allowed in LaTeX with `group_tt()`. Thanks to @eeemda for report #362.


## 0.5.0

New:
Expand Down
2 changes: 1 addition & 1 deletion R/style_tabularray.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ setMethod(
dcol_j <- if (length(dcol_j) == 0) NULL else unique(dcol_j)
for (idx_j in dcol_j) {
spec <- get_dcolumn(idx_j, x)
spec <- sprintf("column{%s}={%s}\n", dcol_j, spec)
spec <- sprintf("column{%s}={%s}\n", idx_j, spec)
x@table_string <- tabularray_insert(x@table_string, content = spec, type = "inner")
for (idx_i in seq_len(x@nhead)) {
spec <- paste(sprintf("cell{%s}{%s}={guard,halign=c,},", idx_i, idx_j), collapse = "\n")
Expand Down
Loading