I am generating PDF documentation from rst files using sphinx, latex and latexpdf. The rst files include wide tables with long table titles using "csv-table". I would like the table title to print in one long line instead of wrapping. How can I set the width of the table title to match the width of the table and control the title alignment (e.g. left vs center)?
Note - the width of the table is fills the width of the pdf output page as desired. The width and alignment of the table title is the issue.
I've tried searching sphinx documentation and online for ways to update the rst files or the conf.py file. Not sure where to look next.
Here is what I have in the rst file:
.. csv-table:: Very long table title that is shorter than the width of the table
:file: filename.csv
:header-rows: 1
:class: longtable
:widths: 30 70
Note, my tex file already has the following line:
\caption{Very long table title that is shorter than the width of the table
)\strut}\label{\detokenize{foo:id1}}\\*[\sphinxlongtablecapskipadjust]
filename.csv has:
I am not sure where to look next.
I have a conf.py file with:
This seemed like it might be a place to set the table title character width, but I don't see any way to do that in the documentation for latex_elements under: http://www.sphinx-doc.org/en/1.8/usage/configuration.html
I am using Sphinx version 1.8.
– AJK Mar 26 '19 at 18:31