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

tabularray #247

Open
JEAN71 opened this issue Sep 27, 2023 · 7 comments
Open

tabularray #247

JEAN71 opened this issue Sep 27, 2023 · 7 comments

Comments

@JEAN71
Copy link

JEAN71 commented Sep 27, 2023

Is it possible to have huxtable use tabularray instead of tabularx.

@hughjonesd
Copy link
Owner

If you bothered to make the case for it, maybe?

@JEAN71
Copy link
Author

JEAN71 commented Sep 27, 2023

Sorry, first time posting request on github.
tabularray is much more customizable than tabularx. It is also easier to code as you can define a bunch of options in the header of the table. example such as background of particular rows, columns, etc..
for example the following
\newcommand{\mycommand}[1]{$\left( #1 \right)$}
\begin{document}
\begin{tblr}{row{even}={ cmd={\mycommand}}, column{2}={bg=red, fg=white}}
Hello&Hello&Hello\
world!&world!& world
\end{tblr}

will put each of the elements in the second row in parenthesis and make the background of the second column red with foreground white.
This is just one simple example of its flexibility

@hughjonesd
Copy link
Owner

OK. What advantages does it bring huxtable, though? Like, what new features can I implement? Being easy to code isn't really relevant because the tabularx code is already done...

@JEAN71
Copy link
Author

JEAN71 commented Sep 27, 2023

I guess the biggest advantage is that if huxtable includes an additional option that can go into the header of the table, users can customize their tables as they please (for example like above). it can also take care of longtable through its own longtblr environment which huxtable is lacking right now.

@hughjonesd
Copy link
Owner

OK. I think all I can say is, I'd be open to a pull request, with no guarantees - it depends how intrusive the changes would be. The longtblr would indeed be nice.

@JEAN71
Copy link
Author

JEAN71 commented Sep 27, 2023

Ok, thanks and great. Do I do this? sorry I am really not that familiar with github.

@hughjonesd
Copy link
Owner

hughjonesd commented Sep 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants