texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Create tabular code possibly à la `tabularray`

Open dbitouze opened this issue 9 months ago • 4 comments

Describe the feature and the current behavior/state

It would be nice for TXS to create code possibly à la tabularray:

  • via its tabular wizard,
  • via copy-paste from a spreadsheet.

Who will benefit with this feature?

All the people who, for their tables, are looking a nice regular syntax such as the one provided by tabularray.

Any Other info

OK, there's the very complete and powerful online LaTeX Table Editor, but it would be nice if the user didn't have to leave TXS, at least for simple tables like those provided by its wizard (there's no question here of trying to be as powerful as LaTeX Table Editor).

dbitouze avatar Jun 02 '25 15:06 dbitouze

so, the request is just to change the environment to "tblr" ?

sunderme avatar Jun 03 '25 15:06 sunderme

so, the request is just to change the environment to "tblr" ?

Unfortunately no. AFAICS, what needs to be reworked is:

  • the columns alignment drop-down list and code,
  • the left, right, top and bottom borders code,
  • the merge columns code.

dbitouze avatar Jun 03 '25 17:06 dbitouze

why would we need change borders code ? the old code still works fine. column alignment offers more candidates, but still normal preamble is just fine same with merge

sunderme avatar Jun 03 '25 18:06 sunderme

why would we need change borders code ? the old code still works fine.

Indeed but I had in mind the new interface which doesn't clutter the data of the tables.

column alignment offers more candidates, but still normal preamble is just fine

Indeed but the new syntax is cleaner.

same with merge

With tabularray Version 2025A (2025-03-11), \multicolumn cannot be used:

! Package tabularray Error: \multicolumn is obsolete; use \SetCell instead.

dbitouze avatar Jun 03 '25 18:06 dbitouze