Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
5479c4b
:sparkles: Add support for undef cells
ronisbr Aug 28, 2024
e58bfe4
:sparkles: Add function to align a column to a regex
ronisbr Aug 28, 2024
63c9b37
:wrench: Improve HTML highlighters
ronisbr Aug 31, 2024
0d3429b
:wrench: Remove summary columns
ronisbr Sep 1, 2024
7f8f3dd
:books: Fix docstring
ronisbr Sep 1, 2024
9a24d75
:sparkles: Initial version of the Markdown back end
ronisbr Sep 1, 2024
2ff499c
:sparkles: Add `back_end` keyword
ronisbr Sep 2, 2024
038e41f
:wrench: Improve markdown back end
ronisbr Sep 2, 2024
445b16c
:sparkles: Add support to Markdown highlighters
ronisbr Sep 6, 2024
82e1750
:wrench: Improve markdown back end
ronisbr Sep 6, 2024
a598ef8
:bug: Fix footnote support in Markdown
ronisbr Sep 6, 2024
aae5a16
:wrench: Add summary row label decoration in HTML
ronisbr Sep 6, 2024
2677e0e
:bug: Fix merged cells in markdown
ronisbr Sep 6, 2024
e2cf317
:bug: Fix Markdown cell rendering in Markdown back end
ronisbr Sep 6, 2024
a2395bb
:wrench: Option to change the hline char in Markdown
ronisbr Sep 6, 2024
acf9b75
:wrench: Rename back_end => backend
ronisbr Sep 7, 2024
68c0ad5
:rotating_light: Add tests for the HTML back end
ronisbr Sep 7, 2024
da5e9c3
:bug: Fix precompilation
ronisbr Sep 7, 2024
a933cd7
:sparkles: Add support to OffsetArrays
ronisbr Sep 7, 2024
9321cde
:rotating_light: Add missing file
ronisbr Sep 7, 2024
c19e560
:wrench: Rename merge_cells => merge_column_label_cells
ronisbr Sep 7, 2024
1442f54
:rotating_light: Add tests for merged cells
ronisbr Sep 7, 2024
6a0b446
:rotating_light: Fix tests
ronisbr Sep 7, 2024
96de9f1
:wrench: Change type of cell_alignment
ronisbr Sep 7, 2024
63a8bc0
:rotating_light: Alignment tests in HTML
ronisbr Sep 7, 2024
35a4432
:bug: Fix continuation line in Markdown
ronisbr Sep 7, 2024
970763e
:sparkles: Add omitted cell summary in markdown
ronisbr Sep 7, 2024
35bf542
:bug: Fix footnote in markdown
ronisbr Sep 7, 2024
fc60f4f
:bug: Fix newlines without omitted cells in markdown
ronisbr Sep 8, 2024
8f9cf15
:wrench: Rename files
ronisbr Sep 8, 2024
5c2b9bd
:bug: Apply only one highlighter in markdown
ronisbr Sep 8, 2024
a24d10b
:books: Fix comments
ronisbr Sep 8, 2024
6d19c47
:bug: Fix function name in markdown
ronisbr Sep 8, 2024
cd32d44
:rotating_light: Add test cases for Markdown back end
ronisbr Sep 8, 2024
2e2f9e0
:construction: Initial commit of the text back end
ronisbr Sep 9, 2024
4e4adb9
:sparkles: [Text] Options to fit table in display
ronisbr Sep 9, 2024
df47d43
:sparkles: [Text] Add support to vertical lines
ronisbr Sep 9, 2024
1836bae
:wrench: [Markdown] Use StringManipulation to align strs
ronisbr Sep 9, 2024
3c2e362
:bug: [Text] Add missing file
ronisbr Sep 9, 2024
694434c
:sparkles: [Text] Add support to footnotes
ronisbr Sep 9, 2024
c044e47
:construction: [Text] Initial decoration support
ronisbr Sep 9, 2024
04cc728
:wrench: [Text] General improvements
ronisbr Sep 10, 2024
1c34df4
:wrench: [Text] General improvements
ronisbr Sep 10, 2024
07cce26
:wrench: Fix table without data rows
ronisbr Sep 10, 2024
1e302e1
:sparkles: Option to show only the first column label
ronisbr Sep 10, 2024
461ef51
:wrench: [Text] Rename keyword
ronisbr Sep 10, 2024
3fff031
:bug: [Text / MD] Fix problem with table without rows
ronisbr Sep 10, 2024
e27bc5a
:books: [Text] Add documentation
ronisbr Sep 10, 2024
ecc70f3
:sparkles: [Text] Add highlighters
ronisbr Sep 10, 2024
385fb2d
:bug: [Text] Apply decoration to the entire cell
ronisbr Sep 10, 2024
12c9d8d
:sparkles: [Text] Add support to title / subtitle
ronisbr Sep 10, 2024
37d80a9
:wrench: [Text] Create struct to store the table borders
ronisbr Sep 10, 2024
e06b0e8
:bug: [Text] Export TextTableBorders
ronisbr Sep 10, 2024
09d2999
:rotating_light: Minor fix
ronisbr Sep 10, 2024
91a3d1c
:bug: [Text] Fix typo
ronisbr Sep 10, 2024
ec79650
:wrench: [Text] Change source note decoration
ronisbr Sep 10, 2024
c8d8b9f
:books: [Text] Add docs for text back end structs
ronisbr Sep 10, 2024
68a2e8c
:bug: [Text] Consider source notes in vcrop
ronisbr Sep 10, 2024
afd5348
:wrench: [Text] Improve keyword name
ronisbr Sep 10, 2024
03d1b6e
:bug: Fix row group label state
ronisbr Sep 11, 2024
435ccaf
:sparkles: [Text] Initial support for row group labels
ronisbr Sep 11, 2024
d657eed
:books: [Text] Add documentation
ronisbr Sep 11, 2024
be5e068
:wrench: [Text] Apply the correct decorations
ronisbr Sep 11, 2024
33dabe7
:wrench: Reexport Crayons
ronisbr Sep 11, 2024
24ab124
:racehorse: [Text] Decrease time to print first table
ronisbr Sep 11, 2024
ed2c3bb
:wrench: [Text] Fix hline with row group at first line
ronisbr Sep 11, 2024
c8165d6
:wrench: Do not rely on internal state parameters
ronisbr Sep 11, 2024
3110c5e
:books: Add docs for PrintingTableState
ronisbr Sep 11, 2024
1e4538d
:wrench: Rename _has_row_groups => _has_row_group_labels
ronisbr Sep 11, 2024
b305319
:sparkles: [Text] Support for row group labels
ronisbr Sep 12, 2024
9999b24
:wrench: [Text] Rename keyword
ronisbr Sep 12, 2024
003fbf9
:art: [Text] Improve code style
ronisbr Sep 12, 2024
4021058
:sparkles: [Text] Maximum data column widths
ronisbr Sep 14, 2024
404947a
:sparkles: [Text] Crop additional column labels
ronisbr Sep 14, 2024
69c7790
:wrench: [Text] Col. label width based on first line only
ronisbr Sep 14, 2024
e36c175
:wrench: [Text] Rename parameters related with hlines
ronisbr Sep 14, 2024
a275a7c
:bug: [Text] Fix variable name
ronisbr Sep 14, 2024
64e894b
:sparkles: [Text] Support column label merged cells
ronisbr Sep 15, 2024
4e71088
:wrench: [Text] General improvements and bug fixes
ronisbr Sep 15, 2024
fe49ada
:sparkles: Add API to make column merging easier
ronisbr Sep 16, 2024
4aaf0ad
:bug: [HTML] Fix thead pos. with row group labels
Sep 17, 2024
2140390
:sparkles: Add EmptyCells to make easier create col. labels
Sep 19, 2024
f5f547a
:sparkles: [Text] Support line breaks
Sep 19, 2024
e92f029
:books: [Text] Add doc strings
Sep 19, 2024
64eeb63
:wrench: [Text] Add TextTableStyle
Sep 20, 2024
002a62a
:wrench: [HTML] Add HtmlTableStyle
Sep 20, 2024
54de0b7
:sparkles: [HTML] Style for first line merged column label
Sep 20, 2024
c48994c
:sparkles: [Markdown] Add MarkdownTableStyle
Sep 20, 2024
6325b43
:wrench: [Markdown] Rename Decoration => Style
Sep 20, 2024
ede1806
:wrench: [Markdown] Improve code style
Sep 20, 2024
17e6d84
:wrench: Remove unnecessary constants
Sep 20, 2024
d70fc6d
:wrench: Improve funcs to perform regex alignment
Sep 20, 2024
d85420c
:sparkles: [Text] Fixed data column widths
Sep 20, 2024
5b183cd
:sparkles: [Text] Equal data column widths
Sep 21, 2024
52fd80b
:wrench: [Text] General improvements
Sep 21, 2024
03a5754
:bug: [Text] Several bug fixes
Sep 21, 2024
249366f
:rotating_light: Update tests
Sep 21, 2024
3fc43ca
:rotating_light: [Text] Add more tests
Sep 22, 2024
6f1c86b
:books: [Markdown] Fix comment
Sep 22, 2024
a5e12c8
:construction: [Text] Initial support for custom cells
Sep 22, 2024
ce0f156
:books: Update CHANGELOG.md
ronisbr Sep 24, 2024
5af5150
:poop: Drop support for Julia versions lower than 1.10
ronisbr Sep 24, 2024
6cf9218
:bookmark: Version 2.3.3
ronisbr Sep 24, 2024
e977cf3
:wrench: Remove unnecessary dependency
ronisbr Sep 24, 2024
6bfa63d
:sparkles: [Text] Add UrlTextCell
ronisbr Sep 24, 2024
624a91d
:wrench: [Text] Improve CustomTextCell API
ronisbr Sep 25, 2024
cf6f574
:bookmark: Version 2.4.0
ronisbr Sep 24, 2024
aae5146
:sparkles: [Text] Line break support in AnsiTextCell
ronisbr Sep 26, 2024
9aded0d
:books: [Text] Docstring for CustomTextCell
ronisbr Sep 26, 2024
749c600
:sparkles: [Text] Support for fixed columns and line breaks
ronisbr Sep 26, 2024
6c6d704
:wrench: [Text] Support fixed col. width in custom cells
ronisbr Sep 26, 2024
7463634
:wrench: [Text] Algorithm improvements
ronisbr Sep 26, 2024
473bd5f
:bug: [Text] Fix continuation char
ronisbr Sep 26, 2024
e1f9aa4
:sparkles: [Text] Reserved display lines
ronisbr Sep 26, 2024
2f5b8a5
:wrench: Improve column label guessing for Tables.jl
ronisbr Sep 26, 2024
fb98007
:racehorse: Improve precompilation statements
ronisbr Sep 26, 2024
ce0665b
:sparkles: Add option to hide column labels
ronisbr Sep 27, 2024
dad5a10
:sparkles: Algorithm to auto wrap the strings
ronisbr Sep 28, 2024
b2538db
:wrench: [Text] Improve auto wrap
ronisbr Sep 28, 2024
5339ef8
:sparkles: [Text] Pre-defined formats
ronisbr Sep 30, 2024
76b9545
:sparkles: [Text] Overwrite display
ronisbr Sep 30, 2024
47195ae
:bug: [Text] Fixed column width algorithm
ronisbr Oct 7, 2024
f0547c1
:wrench: Add REPL.jl as dependency
ronisbr Oct 13, 2024
e28a8b7
:bug: Fix REPL version
ronisbr Oct 13, 2024
81289d4
:sparkles: [Text] Support for AnnotatedString
ronisbr Oct 13, 2024
8eab57f
:wrench: [Text] Improve line cropping
ronisbr Oct 15, 2024
504c436
:bug: [Text] Fix bugs related to line breaks
ronisbr Oct 15, 2024
e3e2158
:bug: Use unlimited display when converting to String
ronisbr Oct 15, 2024
1ee09d5
:rotating_light: [Text] Add tests for UrlTextCells
ronisbr Oct 15, 2024
e715c4f
:bug: [Text] Reset decoration before the cont char
ronisbr Oct 15, 2024
b22d516
:bug: [Text] Fix max column widths with custom cells
ronisbr Oct 15, 2024
3ef7a28
:bug: [Text] Do not crop omitted cell summary
ronisbr Oct 15, 2024
f286698
:wrench: [Text] Simplify decorations in AnsiTextCell
ronisbr Oct 15, 2024
41af00d
:wrench: [Text] New API to init AnsiTextCell
ronisbr Oct 15, 2024
17767fb
:rotating_light: [Text] Add tests for AnsiTextCell
ronisbr Oct 15, 2024
dfa7ca8
:sparkles: Add support to print to HTML object
ronisbr Oct 16, 2024
7096a0d
:wrench: column_span => number_of_cells in EmptyCells
ronisbr Oct 16, 2024
33267f7
:construction: Documentation
ronisbr Oct 16, 2024
d2029b5
:books: [HTML] Add HTML backend docstring
ronisbr Oct 16, 2024
0b7ddce
:books: Improve docstring
ronisbr Oct 17, 2024
b3f873f
:books: Improve docstring
ronisbr Oct 17, 2024
73a1f01
:books: Update README.md
ronisbr Oct 17, 2024
f2d6a81
:books: Update README.md
ronisbr Oct 17, 2024
7b8c65b
:wrench: [Text] Remove unused parameter
ronisbr Oct 17, 2024
cc7a8e3
:wrench: Update table design for README.md
ronisbr Oct 17, 2024
733b1bb
:wrench: Update table design
ronisbr Oct 17, 2024
7e17c40
:bug: Fix bug when auto. generating column labels
ronisbr Oct 21, 2024
fceb9da
:art: Fix comment
ronisbr Nov 15, 2024
bd9e4f5
:art: Fix comments
ronisbr Nov 15, 2024
7a3816d
:construction: WIP LaTeX backend
ronisbr Nov 15, 2024
eb26e63
:wrench: Initial support for merged column labels
ronisbr Nov 16, 2024
9e67e80
:wrench: [LaTeX] Add support to row group labels
ronisbr Nov 16, 2024
15cb11c
:warning: Rename tf => table_format
ronisbr Dec 7, 2024
5c21d8c
:books: Update HTML backend documentation
ronisbr Dec 7, 2024
a186fed
:books: Add Markdown backend documentation
ronisbr Dec 7, 2024
862ded0
:books: Fix documentation
ronisbr Dec 8, 2024
fe1cdb8
:wrench: Fix HTML keyword name
ronisbr Dec 14, 2024
4484c66
:books: Improve documentation
ronisbr Dec 14, 2024
ccc5678
:books: Add documentation for the text backend
ronisbr Dec 14, 2024
3c59e60
:bug: [Text] Fix keyword types
ronisbr Dec 14, 2024
bb89fd2
:sparkles: [Text] Add helpers
ronisbr Dec 24, 2024
e68b190
:wrench: [Text] Change helpers to macros
ronisbr Dec 26, 2024
cf71ae0
:books: [Text] Add documentation for the helper macros
ronisbr Dec 26, 2024
9ca45bb
:books: Initial version of the documentation
ronisbr Jan 6, 2025
b981e49
:sparkles: [LaTeX] Support vertical lines
ronisbr Jan 11, 2025
19a3d68
:bug: [LaTeX] Fix hline after continuation row
ronisbr Jan 11, 2025
9d804b0
:sparkles: [LaTeX] Add highlighters and table style
ronisbr Jan 11, 2025
697d0c1
:sparkles: [LaTeX] Initial support for footnotes
ronisbr Jan 11, 2025
2dfbf4b
:sparkles: [LaTeX] Add support to source notes
ronisbr Jan 11, 2025
8105f7d
:books: Add documentation for function
ronisbr Jan 25, 2025
a4c1fac
:bug: [LaTeX] Fix cell separation algorithm
ronisbr Jan 25, 2025
95ce4fc
:wrench: [LaTeX] Improve styling
ronisbr Jan 25, 2025
ecca17f
:sparkles: [LaTeX] Add support for cell alignment
ronisbr Jan 25, 2025
5707501
:poop: [LaTeX] Remove wrap_table
ronisbr Jan 25, 2025
a70107e
:wrench: [LaTeX] Improve footnote handling
ronisbr Jan 25, 2025
f8aab73
:sparkles: Add auto backend selection based on table_format
ronisbr Feb 1, 2025
7ed78f4
:sparkles: [LaTeX] Add helpers for drawing lines
ronisbr Feb 1, 2025
13736c0
:sparkles: [LaTeX] Horiz. lines after merged column labels
ronisbr Feb 16, 2025
4dc4a27
:bug: [LaTeX] Fix merged column label cell decoration
ronisbr Feb 16, 2025
930e55e
:wrench: [LaTeX] Improve output style
ronisbr Feb 16, 2025
ec3aa0d
:bug: [LaTeX] Fix LaTeX helpers given the new feature
ronisbr Feb 16, 2025
ecc4395
:rotating_light: [LaTeX] Initial LaTeX tests
ronisbr Feb 16, 2025
66bacf8
:bug: [LaTeX] Fix bottom line print
ronisbr Feb 18, 2025
aa39ad7
:sparkles: [LaTeX] Add predefined formats
ronisbr Feb 18, 2025
7f3cb81
:sparkles: [LaTeX] Support to LatexCell and LaTeXStrings
ronisbr Feb 18, 2025
fb981fb
:sparkles: [LaTeX] Add support to omitted cell summary
ronisbr Feb 18, 2025
b82591a
:wrench: [LaTeX] Fix spacing in multicolumn cells
ronisbr Feb 18, 2025
9d7f89b
:rotating_light: [LaTeX] Add more tests
ronisbr Feb 19, 2025
ec77612
:rotating_light: [LaTeX] Add more tests
ronisbr Feb 19, 2025
622aab5
:rotating_light: [LaTeX] Add more tests
ronisbr Feb 19, 2025
820c180
:art: [HTML] Remove trailing space
ronisbr Feb 19, 2025
16f8380
:rotating_light: [LaTeX] Add more tests
ronisbr Feb 19, 2025
4da4e67
:rotating_light: [LaTeX] Add more tests
ronisbr Feb 21, 2025
2824edc
:books: [LaTeX] Add documentation
ronisbr Feb 22, 2025
a1f4f96
:bug: [Text] Fix typo
ronisbr Feb 22, 2025
3c88e2e
:books: [LaTeX] Add LaTeX documentation
ronisbr Feb 22, 2025
01aeb69
:sparkles: [LaTeX] Allow customization of cline
ronisbr Feb 22, 2025
72cdf5c
:books: [LaTeX] Fix doc string
ronisbr Feb 22, 2025
ff141fc
:books: Update documentation
ronisbr Feb 23, 2025
dbcf431
:wrench: Make easier to build column labels
ronisbr Feb 23, 2025
5520352
:wrench: Simplify circular dependency handling
ronisbr Feb 23, 2025
30467a8
:racehorse: Add more precompilation statements
ronisbr Feb 23, 2025
5ed9be3
:sparkles: Add predefined formatters
ronisbr Mar 4, 2025
ee7d3a3
:books: Add documentation for predefined formatters
ronisbr Mar 5, 2025
b758776
:art: Fix typo
ronisbr Mar 5, 2025
998c772
:rotating_light: Test and coverage for v3 branch
ronisbr Mar 5, 2025
e31f83c
:rotating_light: Fix tests on Windows
ronisbr Mar 5, 2025
47890ab
:rotating_light: Change test name
ronisbr Mar 5, 2025
861463c
:bug: Tables.jl API must have precedence
ronisbr Mar 5, 2025
7b91f08
:rotating_light: Add tests for Tables.jl API
ronisbr Mar 5, 2025
e265b84
:bug: [Text] Fix maximum_data_column_widths algorithm
ronisbr Mar 6, 2025
8e10519
:rotating_light: [Text] Add tests
ronisbr Mar 6, 2025
3c8beb3
:rotating_light: [Text] Add tests for multiline alignment
ronisbr Mar 6, 2025
3160537
:rotating_light: Test auto format detection
ronisbr Mar 6, 2025
f98f779
:rotating_light: [HTML] Test HTML return
ronisbr Mar 6, 2025
c249373
:rotating_light: Test errors
ronisbr Mar 6, 2025
a6da8cd
:bug: [HTML] Fix HTML highlighter signature
ronisbr Mar 6, 2025
60516f3
:rotating_light: [HTML] Increase test coverage
ronisbr Mar 6, 2025
ffa1636
:bug: [Text] Fix problem when no full col is printed
ronisbr Mar 6, 2025
2da542c
:rotating_light: [Text] Add tests with multiline cropping
ronisbr Mar 6, 2025
1793922
:bug: [Text] Fix typo add_sufix! => add_suffix!
ronisbr Mar 6, 2025
ae141ea
:rotating_light: [Markdown] Increase test coverage
ronisbr Mar 6, 2025
19969bc
:rotating_light: [Text] Add tests of errors
ronisbr Mar 6, 2025
44c3f95
:rotating_light: [LaTeX] Increase test coverage
ronisbr Mar 6, 2025
ef0e7f7
:bug: [HTML] Remove unreachable code
ronisbr Mar 6, 2025
ce9653d
:rotating_light: [Markdown] Improve test coverage
ronisbr Mar 6, 2025
475fb06
:rotating_light: Add general tests
ronisbr Mar 6, 2025
c6bbeb5
:rotating_light: Improve test coverage
ronisbr Mar 6, 2025
cdedde3
:rotating_light: [Text] Increase test coverage
ronisbr Mar 7, 2025
a93281d
:rotating_light: Increase test coverage
ronisbr Mar 7, 2025
365e9b0
:rotating_light: Increase test coverage
ronisbr Mar 7, 2025
61efcfc
:books: Update LICENSE.txt
ronisbr Mar 7, 2025
b425452
:books: [Text] Document pre-defined formats
ronisbr Mar 8, 2025
b8cdd14
:books: [Text] Add examples in the documentation
ronisbr Mar 11, 2025
b69b46d
:wrench: Rename right_vertical_lines_ => vertical_lines_
ronisbr Mar 20, 2025
2caa158
:sparkle: Add struct `PrettyTable` to comprise data, backend and config
hhaensel Apr 3, 2025
4be5d37
:wrench: Simplify PrettyTable structure
ronisbr May 12, 2025
afa01be
:sparkles: [Text] Horizontal line at column labels
ronisbr Jun 27, 2025
42c11b5
:books: [Text] Update documentation
ronisbr Jun 27, 2025
9826554
:wrench: Allow additional kwargs when using PrettyTable
ronisbr Jun 27, 2025
47fcf9b
:wrench: Move new_line_at_end to the printing spec
ronisbr Jun 27, 2025
39ad931
:sparkles: Overload show method for PrettyTable
ronisbr Jun 27, 2025
3df19dc
:bug: [Text] Do not use color if display does not support
ronisbr Jul 3, 2025
9ab4cc0
:wrench: Improve backend identification in show
ronisbr Jul 3, 2025
3f7de5a
:books: [Text] Add more examples
ronisbr Jul 3, 2025
c9f0dd5
:wrench: row_label_alignemnt => row_label_column_alignment
ronisbr Jul 3, 2025
4f67c93
:sparkles: Add support to Dicts
ronisbr Jul 3, 2025
c05c7c4
:books: Update README.md
ronisbr Jul 3, 2025
11aaefe
:books: [HTML] Fix documentation
ronisbr Jul 3, 2025
20183be
:books: Update CHANGELOG.md
ronisbr Jul 3, 2025
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
38 changes: 38 additions & 0 deletions .github/workflows/ci-v3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI-v3
on:
pull_request:
branches:
- v3
push:
branches:
- v3
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10'
- '1' # This automatically expands to the latest stable 1.x release.
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
PrettyTables.jl Changelog
=========================

Version 3.0.0
-------------

- ![BREAKING][badge-breaking] This new version contains many breaking changes. The API was
almost entirely redesigned to improve the package maintainability and to add new features.
Please, check the documentation for more details.

Version 2.4.0
-------------

- ![Info][badge-info] Bump StringManipulation.jl version.
- ![Deprecation][badge-deprecation] Drop support for Julia versions lower than 1.10.

Version 2.3.3
-------------

- ![Info][badge-info] Bump StringManipulation.jl version.
- ![Deprecation][badge-deprecation] Drop support for Julia versions lower than 1.10.

Version 2.3.2
-------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019-2024: Ronan Arraes Jardim Chagas
Copyright (c) 2019-2025: Ronan Arraes Jardim Chagas

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
StringManipulation = "892a3eda-7b42-436c-8928-eab12a02cf0e"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Expand All @@ -22,6 +23,7 @@ Markdown = "1.10"
OffsetArrays = "1"
PrecompileTools = "1"
Printf = "1.10"
REPL = "1.10"
Reexport = "0.2, 1"
StringManipulation = "0.4"
Tables = "0.2, 1"
Expand Down
135 changes: 106 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
[![DOI](https://zenodo.org/badge/165340490.svg)](https://zenodo.org/doi/10.5281/zenodo.10015722)

This package has the purpose to print data in matrices in a human-readable format. It was
inspired in the functionality provided by https://ozh.github.io/ascii-tables/
This package has the purpose to print data in matrices using different backends. It was
orizinally inspired in the functionality provided by
[ASCII Tables](https://ozh.github.io/ascii-tables/).

**PrettyTables.jl** allows to print the data together with some table sections. They can be
modified by the user to obtain the desired output. The sections currently available are:

![Table Design](./docs/src/assets/table_design.png)

This design is heavily inspired by the R's package [gt](https://github.com/rstudio/gt/) but
the API is highly different due to the differences between the R and Julia languages.

## Installation

Expand All @@ -19,42 +28,110 @@ julia> Pkg.add("PrettyTables")

## Example

We present in the following an example showing some of the features available in
**PrettyTables.jl**.

```julia
julia> using PrettyTables
julia> using PrettyTables, StyledStrings

# == Creating the Table ====================================================================

julia> v1_t = 0:5:20

julia> v1_a = ones(length(v1_t)) * 1.0

julia> v1_v = @. 0 + v1_a * v1_t

julia> v1_d = @. 0 + v1_a * v1_t^2 / 2

julia> v2_t = 0:5:20

julia> v2_a = ones(length(v2_t)) * 0.75

julia> v2_v = @. 0 + v2_a * v2_t

julia> v2_d = @. 0 + v2_a * v2_t^2 / 2

julia> t = 0:1:20
0:1:20
julia> table = [
v1_t v1_a v1_v v1_d
v2_t v2_a v2_v v2_d
];

julia> data = hcat(t, ones(length(t) ), t, 0.5.*t.^2);
# == Configuring the Table =================================================================

julia> header = (
["Time", "Acceleration", "Velocity", "Distance"],
[ "s", "[m / s²]", "[m / s]", "[m]"]
)
(["Time", "Acceleration", "Velocity", "Distance"], ["s", "[m / s²]", "[m / s]", "[m]"])
julia> title = "Table 1. Data obtained from the test procedure."

julia> hl_p = Highlighter(
(data, i, j) -> (j == 4) && (data[i, j] > 9),
crayon"blue bold"
);
julia> subtitle = "Comparison between two vehicles"

julia> hl_v = Highlighter(
(data, i, j) -> (j == 3) && (data[i, j] > 9),
crayon"red bold"
);
julia> column_labels = [
[EmptyCells(2), MultiColumn(2, "Estimated Data")],
["Time (s)", "Acceleration", "Velocity", "Position"],
]

julia> units = [
styled"{(foreground=gray):[s]}",
styled"{(foreground=gray):[m / s²]}",
styled"{(foreground=gray):[m / s]}",
styled"{(foreground=gray):[m]}",
]

julia> push!(column_labels, units)

julia> merge_column_label_cells = :auto

julia> row_group_labels = [
1 => "Vehicle #1",
6 => "Vehicle #2"
]

julia> summary_rows = [
(data, j) -> maximum(@views data[ 1:5, j]),
(data, j) -> maximum(@views data[6:10, j]),
]

julia> summary_row_labels = [
"Max. for Vehicle #1",
"Max. for Vehicle #2",
]

julia> footnotes = [
(:column_label, 1, 3) => "Estimated data based on the acceleration measurement."
]

julia> highlighters = [
TextHighlighter((data, i, j) -> (j == 3) && (data[i, j] > 10), crayon"fg:red bold")
TextHighlighter((data, i, j) -> (j == 4) && (data[i, j] > 10), crayon"fg:blue bold")
]

julia> table_format = TextTableFormat(;
# Remove vertical lines.
@text__no_vertical_lines
)

julia> style = TextTableStyle(
column_label = crayon"bold",
first_line_merged_column_label = crayon"fg:yellow bold underline",
footnote = crayon"fg:cyan",
row_group_label = crayon"fg:magenta bold",
subtitle = crayon"italics",
title = crayon"fg:yellow bold",
)

julia> hl_10 = Highlighter(
(data, i, j) -> (i == 10),
crayon"fg:white bold bg:dark_gray"
);
# == Printing the Table ====================================================================

julia> pretty_table(
data;
formatters = ft_printf("%5.2f", 2:4),
header = header,
header_crayon = crayon"yellow bold",
highlighters = (hl_10, hl_p, hl_v),
tf = tf_unicode_rounded
table;
column_labels,
footnotes,
highlighters,
merge_column_label_cells,
row_group_labels,
style,
subtitle,
summary_row_labels,
summary_rows,
table_format,
title,
)
```

Expand Down
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"

[compat]
Documenter = "1"
33 changes: 19 additions & 14 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@ makedocs(
format = Documenter.HTML(
prettyurls = !("local" in ARGS),
canonical = "https://ronisbr.github.io/PrettyTables.jl/stable/",
size_threshold_warn = 1024 * 1024 * 1024,
size_threshold = 10 * 1024 * 1024 * 1024,
),
sitename = "Pretty Tables",
authors = "Ronan Arraes Jardim Chagas",
warnonly = [:missing_docs, :cross_references],
pages = [
"Home" => "index.md",
"Usage" => "man/usage.md",
"Back Ends" => Any[
"Text" => "man/text_backend.md",
"HTML" => "man/html_backend.md",
"LaTeX" => "man/latex_backend.md",
"Markdown" => "man/markdown_backend.md",
"Home" => "index.md",
"Quick Start" => "man/quick_start.md",
"Usage" => "man/usage.md",
"Back Ends" => Any[
"Text" => Any[
"Text Backend" => "man/text/text_backend.md",
"Pre-defined Formats" => "man/text/predefined_formats.md",
"Examples" => "man/text/text_examples.md",
],
"HTML" => "man/html/html_backend.md",
"LaTeX" => Any[
"LaTeX Backend" => "man/latex/latex_backend.md",
"Examples" => "man/latex/latex_examples.md",
],
"Markdown" => "man/markdown/markdown_backend.md",
],
"Alignment" => "man/alignment.md",
"Formatters" => "man/formatters.md",
"Examples" => Any[
"Text Back End" => "man/text_examples.md",
"HTML Back End" => "man/html_examples.md",
],
"Library" => "lib/library.md",
"Library" => "lib/library.md",
]
)

Expand Down
Binary file added docs/src/assets/table_design.key
Binary file not shown.
Binary file added docs/src/assets/table_design.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading