On 11/25/26 1:11 PM, Gavin Smith wrote:
On Mon, Nov 23, 2026 at 02:18:49PM -0800, Raymond Toy wrote:
It would be nice if texinfo could produce borders for tables. This is easy
to do in HTML with some CSS, but pdf don’t have that option.
Here is an image of a pdf table that would be easier to read if there were
borders separating each row and column.
This is not a high priority to me; it’s just a minor wish item. I rarely
look at the pdf and much prefer the HTML output.
It seems like there could be a large scope for customizing the formatting
of tables - making it more dangerous to start, so I would like to try to
keep the possibilities for customization for texinfo.tex to a minimum.
Yes, there is a huge scope for how the borders could be formatted. For
me, thin vertical and horizontal lines would be good enough.
Horizontal lines are easier to implement (and would be enough in most
cases - I think it's more common only to have horizontal lines in tables
in than both horizontal and vertical lines).
Horizontal lines does cover most of the cases, but I do have some tables
where vertical lines would be helpful too. The examples I have were
created by AI. If I were doing them by hand, I would have made the table
columns different so they’re easier to separate.
This seemed to give good results and may be enough for your needs.
Haven’t tried it, but a horizontal line is mostly good enough.
The other possibility that we may consider having a hook for is for
adding a rule in only three places: at the beginning and end of the table,
and after the heading row. (You could specify both, for example, to
have thicker lines around the table and the header row, and thinner lines
between the rows of the table.)
I hadn’t thought about that but that seems like a good option.
I haven’t done LaTeX docs and tables in forever, so I’ve forgotten all
the things they could do, let alone all packages that are probably
available now for fancy TeX tables.