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

Removing LaTeX column borders for automatic colspec #6740

Open
jessetan opened this issue Oct 16, 2019 · 3 comments
Open

Removing LaTeX column borders for automatic colspec #6740

jessetan opened this issue Oct 16, 2019 · 3 comments
Labels
builder:latex type:enhancement enhance or introduce a new feature

Comments

@jessetan
Copy link
Contributor

I can specify .. tabularcolumns:: JJ before a two-column table to make both columns justified and autosizing, without a vertical line between the columns.

It would be nice if there was a way to do this for all tables, so that I do not need to write tabularcolumns manually every time.
I've looked into the templates used to generate the LaTeX code for tables and I don't think I can provide my own template to do this.
The template contains \begin{tabulary}{\linewidth}[t]<%= table.get_colspec() -%> and table.get_colspec() already adds the pipe | characters which define the vertical lines.

@jessetan jessetan added the type:enhancement enhance or introduce a new feature label Oct 16, 2019
@tk0miya
Copy link
Member

tk0miya commented Oct 16, 2019

+0; I understand some people prefers tables not having vertical line.

@tk0miya tk0miya added this to the 2.3.0 milestone Oct 16, 2019
@jfbu
Copy link
Contributor

jfbu commented Oct 17, 2019

If you use {*{10}{J}} in the template in place of <%= table.get_colspec() -%> you should get working solution. Because if there are less than 10 columns, then the extra specifiers are ignored. I am assuming here never more than 10 columns. Replace 10 by large enough numbers. Or simply use {JJJJJJJJJJ} or with more J's.

This issue is also possibly related to PR #6666 which is about using booktabs package which implements the possibly majoritarian view among LaTeX influencers about not using vertical lines.

@dllu
Copy link

dllu commented May 12, 2020

Until this is merged, a workaround is to hide vertical lines by making them white or changing the width of the lines. You can do this using a .sty file with this method: https://tex.stackexchange.com/questions/543679/globally-styling-vertical-and-horizontal-rules-in-both-tabular-and-longtable/543689

@tk0miya tk0miya modified the milestones: 3.1.0, 3.2.0 May 30, 2020
@tk0miya tk0miya modified the milestones: 3.2.0, 4.0.0 Jul 26, 2020
@tk0miya tk0miya modified the milestones: 4.0.0, 4.1.0 Mar 8, 2021
@tk0miya tk0miya modified the milestones: 4.1.0, 4.2.0 Jul 10, 2021
@tk0miya tk0miya modified the milestones: 4.2.0, 4.3.0 Sep 12, 2021
@tk0miya tk0miya modified the milestones: 4.3.0, 4.4.0 Nov 8, 2021
@tk0miya tk0miya removed this from the 4.4.0 milestone Jan 15, 2022
@tk0miya tk0miya added this to the 4.5.0 milestone Jan 15, 2022
@tk0miya tk0miya modified the milestones: 4.5.0, 5.0.0 Mar 27, 2022
@tk0miya tk0miya modified the milestones: 5.0.0, 5.x May 2, 2022
@AA-Turner AA-Turner modified the milestones: 5.x, some future version May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder:latex type:enhancement enhance or introduce a new feature
Projects
None yet
Development

No branches or pull requests

5 participants