I am adding a line (\hline) between each table row by tweaking the latex
writer in the sphinx distribution. Do you guys have advice on the right
place to make these changes so I am not modifying the Sphinx distribution?
I don't think I can do this with a latex stylesheet, but my latex
knowledge is limited so I may be mistaken. Is this a case of writing an
extension and overloading a function in the latex builder?
I appreciate the input,
Chip
> I do not think that constructing the table using this syntax implies
> that a there should be a line between each row.
> There are several different ways to make a table in RST, but at the end
> of the day they are all just tables. My understanding is that there is
> no difference between your table and one constructed like this once they
> have been been parsed and put into the doctree.
>======== ==== =====
> r1, c1 c2 ...
>======== ==== =====
> r2
> r3
> r4
>========= ==== =====
True.
> So it comes down to just a matter of personal preference when you are
> writing documentation.
However, while you can style the table with CSS in the html output, some
aspects of the table style are "hardcoded" in the latex writer and cannot
be configured "arbitrarily". There are currently the pre-defined table
classes (unfortunately called cssclasses in Sphinx):
From http://docutils.sf.net/docs/user/config.html#latex2e-writer
table_style
Specify the drawing of separation lines.
* "standard" lines around and between cells.
* "booktabs" a line above and below the table and one after the head.
* "borderless".
Günter
>> From http://docutils.sf.net/docs/user/config.html#latex2e-writer
So it seems like the Sphinx latex writer is based on a really old version of
the Docutils one.
Günter