Is this problem resolved?
On Wednesday, December 4, 2019 at 8:57:16 AM UTC+8 Jim Fehrle wrote:
> IIUC "colspec" is used to control whether vertical lines appear in the
> table. For example the default "{|T|T|T|}" gives vertical lines while
> "{TTT}" omits them. In sphinx/writers/latex.py, Table.get_colspec() will
> use self.colspec, if set, as the column specification, but I can't figure
> out how to set that value from Python using docutils. Hardcoding the value
> in latex.py to "{TTT}" does indeed get rid of the vertical lines.
>
> Here's what I have at the moment:
>
> self.table = nodes.table(classes=["prodn"], colspec="{TTT}")
>
> widths = [1, 1, 100]
>
> tgroup = nodes.tgroup(cols=len(widths), colspec="{TTT}")
>
> for width in widths:
>
> tgroup += nodes.colspec(colwidth=width)
>
> self.tbody = nodes.tbody(colspec="{TTT}")
>
>
>
> <table classes="prodn" colspec="{TTT}">
> <tgroup cols="3" colspec="{TTT}">
> <colspec colwidth="1"/>
> <colspec colwidth="1"/>
> <colspec colwidth="100"/>
> <tbody colspec="{TTT}">
>
>
>
> For the horizontal lines, I don't even see an option to control this. The
> "\hline"s appear to be hard coded.
>
> Any suggestions?
>
> I'd consider submitting a Spinx PR to support these, if necessary. Provided
> it's not a large change.
>
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/627a5ca2-57ae-48d4-a8e5-1704f7c2d3acn%40googlegroups.com.